Hello Pythonistas,

I've prepared a draft for Python packaging that introduces some new macros that should ease packaging for Fedoras, EPELs and even potential new RHELs, when it comes to python stacks.


I don't do much ifs in specfiles and prefer to leverage git branches for this, so I don't know what bothers you most. The proposal with example spec file is at:

https://fedoraproject.org/wiki/User:Churchyard/Packaging:PythonMustMayMacros

All you have to do to test it, is add the following block to your spec (that won't be needed once this is actually implemented):

    %if 0%{?fedora}
    %global py3_must 1
    %global py3_may 1
    %global py2_may 1
    %endif

    %if 0%{?rhel} &&  0%{?rhel} <= 7
    %global py3_may 1
    %global py2_may 1
    %endif

    %if 0%{?rhel} > 7
    ... (use your best judgment here)
    %endif

Could you please provide feedback? Ask questions?

There is a note at the bottom of the draft about how you could possibly start dropping Python 2 subpackages from Fedora.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org

Reply via email to