This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients alexis, eric.araujo, tarek
Date 2011-10-06.15:42:41
SpamBayes Score 1.4321877e-14
Marked as misclassified No
Message-id <1317915762.54.0.969795427533.issue13116@psf.upfronthosting.co.za>
In-reply-to
Content
Some people (hi Ronny :) want to use a setup hook to get the version from the VCS, but the setup.cfg file in sdists and bdists should be fully static, because getting the VCS info is not possible and maybe for other reasons too (not requiring development dependencies for example, the same argument that makes people include generated HTML docs in sdists).

The way to handle that seems simple: sdist runs setup hooks and writes back the modified config object to the setup.cfg file that’s included in sdists and bdists.  Command hooks are unaffected, as are post/pre install/remove hooks (to be added in #12416).

Another idea would be to split global hooks into two kinds.  The code would run the volatile hooks, write the modified config as setup.cfg for *dists, and then run regular hooks.  Users installing a *dist will execute the regular hooks.
History
Date User Action Args
2011-10-06 15:42:42eric.araujosetrecipients: + eric.araujo, tarek, alexis
2011-10-06 15:42:42eric.araujosetmessageid: <1317915762.54.0.969795427533.issue13116@psf.upfronthosting.co.za>
2011-10-06 15:42:41eric.araujolinkissue13116 messages
2011-10-06 15:42:41eric.araujocreate