#663 New python egg macros
Closed: Fixed None by orion. Opened 2 years ago by orion.

I've introduced two new macros to python-rpm-macros: %py{,2,3}_build_egg and %py{,2,3}_install_egg to implement the instructions here: https://fedoraproject.org/wiki/Packaging:Python_Eggs#Multiple_Versions

Changes suggested are here: https://fedoraproject.org/w/index.php?title=PackagingDrafts%3APython_Eggs&diff=current&oldid=480154

Also, it seems like the setuptools docs mentions the {{{requires}}} method, so it seems like the caveats could be removed.

The changes seem reasonable to me, but looking at that document I see it needs a cleanup. I have moved the EL5-specific stuff elsewhere and removed some outdated cruft from the spec examples.

Could we use these new macros elsewhere in the document to simplify some of the longer command lines there?

Also, what Fedora releases have these new macros? Do we need to include any specific version caveats?

I think we can replace the whole == Providing Egg Metadata Using Setuptools == section with:

'''When upstream uses setuptools to provide egg metadata it will be automatically built and installed
when you use the %py{2,3}_build and %py{2,3}_install macros.'''

Once we're happy with the macros, they will go out to all releases.

We discussed this at this weeks meeting (http://meetbot.fedoraproject.org/fedora-meeting-1/2016-12-08/fpc.2016-12-08-17.00.txt):

  • 663 New python egg macros (geppetto, 17:35:06)

  • ACTION: New python egg macros (+1:6, 0:0, -1:0) (geppetto,

  • 663 New python egg macros (geppetto, 18:13:13)

  • LINK: https://fedoraproject.org/wiki/Packaging:Python_Eggs (tibbs,
  • Python sig needs to look at the page (geppetto, 18:24:33)

Written up. Announcement text:

The Python Egg guidelines were update to better match current Python packaging and to mention the %py*_install_egg macros.

Metadata Update from @tibbs:
- Issue assigned to tibbs

2 years ago

Login to comment on this ticket.