[issue15298] _sysconfigdata is generated in srcdir, not builddir

Richard Oudkerk report at bugs.python.org
Wed Sep 5 12:55:03 CEST 2012


Richard Oudkerk added the comment:

If sysconfig._generate_posix_vars() creates the build directory and pybuilddir.txt (instead of setup.py) then it could write _sysconfigdata.py in the correct place.  Then setup.py would not have to mess with its own sys.path.

One issue with having _sysconfigdata.py in the build dir is that distutils copies it (along with everything else in the build dir) to .../lib/python3.x/lib-dynload.  So I think Matthias' patch results in two copies of _sysconfigdata.py being installed (plus __pycache__/_sysconfigdata.pyc).

----------
nosy: +sbt

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


More information about the Python-bugs-list mailing list