Re: Finalizing Fedora's Switch to Python 3

2017-07-28 Thread John Dennis
I made this comment previously but because I think it's important I'm going to repeat it. Fedora's Python version migration needs to be coordinated with RHEL. Yes I know Fedora is independent of both Red Hat and RHEL but the real world reality is spec files are shared between both. At the

Re: Problems with scripts in a common spec file

2016-05-27 Thread John Dennis
On 05/27/2016 10:10 AM, Tomas Orsava wrote: I think the python2-XXX package in the examples is missing something like this: Requires: %{_bindir}/sample-exec Make sense? I believe there is a misunderstanding. In your first message you said "But the guidelines require the py3 version of the

Re: Problems with scripts in a common spec file

2016-05-26 Thread John Dennis
On 05/26/2016 08:24 AM, Tomas Orsava wrote: Hi, those are very good questions to which you should be able to find answers on the Python RPM Porting Guide [0]. You are right that this should be better covered in the packaging guidelines, sadly the process of changing them is rather problematic

Problems with scripts in a common spec file

2016-05-25 Thread John Dennis
With reference to the guidelines for Python packaging found here: https://fedoraproject.org/wiki/Packaging:Python Specifically the material concerning executables in /usr/bin. In the "Example common spec file" section is this comment. # Must do the python2 install first because the scripts in

Re: Problems with script installation in RPM's

2016-05-12 Thread John Dennis
On 05/11/2016 11:54 AM, Petr Viktorin wrote: On 05/11/2016 05:16 PM, John Dennis wrote: The workaround I came up with is to delay the execution of %py3_build by at least 1 second by inserting a sleep in-between the %py2_build and %py3_build macros in the spec file, like this: %py2_build sleep

Problems with script installation in RPM's

2016-05-11 Thread John Dennis
I've been following the guidelines for Python packaging found here: https://fedoraproject.org/wiki/Packaging:Python in particular the cookbook for supporting both Py2 and Py3. I've discovered two places where things fail to work as expected with respect to script installation. Both of these