[New-bugs-announce] [issue13116] setup.cfg in [sb]dists should be static

Éric Araujo report at bugs.python.org
Thu Oct 6 17:42:42 CEST 2011


New submission from Éric Araujo <merwok at netwok.org>:

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.

----------
assignee: tarek
components: Distutils2
messages: 145021
nosy: alexis, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: setup.cfg in [sb]dists should be static
versions: 3rd party, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13116>
_______________________________________


More information about the New-bugs-announce mailing list