[Python-Dev] buildtime vs runtime in Distutils

Arfrever Frehtes Taifersar Arahesis arfrever.fta at gmail.com
Sun Nov 15 02:41:18 CET 2009


2009-11-15 02:21:41 Tarek Ziadé napisał(a):
> Hello,
> 
> http://bugs.python.org/issue4359 reminds me that Distutils reads build
> files like Makefile or pyconfig.h to get some environment
> variables through the sysconfig module at *runtime*.
> 
> This cannot work on all platforms, when our Makefile is not shipped
> with python but python-devel. (like Fedora)
> 
> Since I am already working on the refactoring of this
> distutils/sysconfig module, so it lands in a stdlib module together
> with some
> elements from site.py (see a previous mail on the topic, and my
> tarek_sysconfig branch - work in progress),
> 
> I was wondering if we couldn't make this module a template, and inject
> at its beginning new values extracted from Makefile and pyconfig.h.
> 
> This could happen when "configure" is called,

It seems to be a good idea. You should create a .py.in file and use
AC_SUBST and AC_CONFIG_FILES macros in configure.in.

-- 
Arfrever Frehtes Taifersar Arahesis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/python-dev/attachments/20091115/3fd81593/attachment.pgp>


More information about the Python-Dev mailing list