[X2Go-Commits] [pyhoca-gui] 08/08: pyhoca-gui.spec: remove pycache handling from the files list.

git-admin at x2go.org git-admin at x2go.org
Thu Aug 24 06:53:23 CEST 2023


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-gui.

commit 0d9a36530896f75f74733db25e37951207c50665
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Aug 24 06:52:09 2023 +0200

    pyhoca-gui.spec: remove pycache handling from the files list.
    
    Python-2-variants don't have the concept of __pycache__ directories at
    all, so using %pycache_only there is redundant.
    
    Python-3-variants sprinkle __pycache__ directories wherever there are
    .py files, which means that they are conveniently contained in the
    "pyhoca" subdirectory of sitelib.
    
    Older *SuSE versions, including Leap, just ignored files or directories
    in the %files list that do not exist, but Tumbleweed is throwing an
    error if you try to include a file or directory that does not exist.
    
    The fix is easy: don't try to include the non-existent __pycache__
    top-level directory.
---
 debian/changelog | 10 ++++++++++
 pyhoca-gui.spec  | 10 ----------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2322bf8..4079c5e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,16 @@ pyhoca-gui (0.6.1.2-0x2go1) UNRELEASED; urgency=medium
     - man/man1/pyhoca-gui.1: pre-release date update.
   * pyhoca-gui.spec:
     + Drop Python 2 support for OpenSuSE Leap 15.4+ and Tumbleweed (and ALP).
+    + Remove pycache handling from the files list. Python-2-variants don't
+      have the concept of __pycache__ directories at all, so using
+      %pycache_only there is redundant. Python-3-variants sprinkle __pycache__
+      directories wherever there are .py files, which means that they are
+      conveniently contained in the "pyhoca" subdirectory of sitelib. Older
+      *SuSE versions, including Leap, just ignored files or directories in the
+      %files list that do not exist, but Tumbleweed is throwing an error if
+      you try to include a file or directory that does not exist. The fix is
+      easy: don't try to include the non-existent __pycache__ top-level
+      directory.
 
  -- X2Go Release Manager <git-admin at x2go.org>  Thu, 02 Jan 2020 13:14:06 +0100
 
diff --git a/pyhoca-gui.spec b/pyhoca-gui.spec
index 1cbdb05..ef4ddec 100644
--- a/pyhoca-gui.spec
+++ b/pyhoca-gui.spec
@@ -306,7 +306,6 @@ fi
 %if ( 0%{?sle_version} && 0%{?sle_version} >= 120300 && 0%{?is_opensuse} ) || ( 0%{?suse_version} > 1500 )
 %{python2_sitelib}/pyhoca/
 %{python2_sitelib}/PyHoca_GUI*
-%pycache_only %{python2_sitelib}/__pycache__
 %else
 %{python_sitelib}/pyhoca/
 %{python_sitelib}/PyHoca_GUI*
@@ -319,15 +318,6 @@ fi
 %if 0%{?with_python3}
 %{python3_sitelib}/pyhoca/
 %{python3_sitelib}/PyHoca_GUI*
-%if 0%{?suse_version}
-%if ( 0%{?sle_version} && 0%{?sle_version} >= 120300 && 0%{?is_opensuse} ) || ( 0%{?suse_version} > 1500 )
-%if ( 0%{?sle_version} >= 150000 ) || ( 0%{?suse_version} > 1500 )
-%pycache_only %{python3_sitelib}/pyhoca/wxgui/__pycache__
-%else
-%pycache_only %{python3_sitelib}/__pycache__
-%endif
-%endif
-%endif
 %endif
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/PyHoca/

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git


More information about the x2go-commits mailing list