We need a separate ticket where we can keep track of all of the python changes that are flying around.
Currently I've sort of written up ticket:534, but that sort of expanded into multiple things. The proper implementation, where the %python_provide macro hides the details, will follow when the macros exist.
I have also removed the two initial admons and the note about mumpy/gtk at the end.
Other currently open python-related tickets:
ticket:542 - Forbidding -OO in py<3.5. Needs one vote. ticket:281 - Has become sort of a catch-all for new python macros
Basically we're at the stage where various macros appear to have consensus among the python folks, and we just need to wait until they make it into the appropriate packages so that people can use them. It should be easy to drop them into redhat-rpm-macros and get that pushed out. I sincerely hope that it's possible to drop them into epel-rpm-macros as well and get rid of some of the EPEL-related boilerplate that so many packages carry.
The proposed macros as I understand them:
I'm looking at https://fedoraproject.org/w/index.php?title=User:Tomspur/Packaging:Python to see how these macros are used.
And since I'm looking at this, a couple of other macros come to mind:
And a question. This note is present:
Instead of making two copies of the source tree, you can build for both python2 and python3 from one directory if the source already supports this.
How common is this? If it's common we may want to optimize for that case.
This isn't a real ticket. My bad.
Going to move back to needinfo, hopefully it won't get back to meeting and/or I'll remember not to put it on the schedule.
I'm using the single directory build now in a couple places - definitely should get more mention - make default unless separate py3 changes are needed.
If you need to manually invoke 2to3 it doesn't work. I think it would be good to have a spec example for different directories. +1 for having it default though.
I added a draft which uses a single-srpm single-dir spec file by default at https://fedorahosted.org/fpc/ticket/552#comment:1.
All of the pending work is done now, though there are a few additional things I'd to see happen in the future. Those will appear in different tickets, though. Closing this one out.
Metadata Update from @tomspur: - Issue assigned to james
Log in to comment on this ticket.