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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com