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.

作者 dmalcolm
收信人 dmalcolm
日期 2012-05-10.19:47:33
SpamBayes Score -1.0
Marked as misclassified
Message-id <1336679254.12.0.498386228703.issue14774@psf.upfronthosting.co.za>
In-reply-to
内容
When building from source, if I create multiple configuration directories and build from there e.g.:

mkdir configs
cd configs
mkdir config-A
cd config-A
../../configure
make
cd ..
mkdir config-B
cd config-B
../../configure --enable-shared
make
cd ../config-A
./python -c "import sysconfig; print(sysconfig.get_config_var('CONFIG_ARGS')

then sysconfig's settings are the same for *every* config, reflecting those of the last build (config-B above, rathern than those of config-A).

This turns out to be due to this:
   ./python -SE -m sysconfig --generate-posix-vars
This generates $(srcdir)/Lib/_sysconfigdata.py for whichever config was last

Is there a way of fixing this whilst keeping it a python file?  Or do we need to build from a C file, perhaps?
历史
日期 用户 动作 参数
2012-05-10 19:47:34dmalcolm修改recipients: + dmalcolm
2012-05-10 19:47:34dmalcolm修改messageid: <1336679254.12.0.498386228703.issue14774@psf.upfronthosting.co.za>
2012-05-10 19:47:33dmalcolm链接issue14774 messages
2012-05-10 19:47:33dmalcolm创建