Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-19 Thread Tarek Ziadé
On Thu, Nov 19, 2009 at 12:04 PM, M.-A. Lemburg wrote: [..] > BTW: There's already a Tools/scripts/h2py.py we could use for > converting pyconfig.h into a Python file. Good to know, > For the Makefile > we could use the distutils Makefile parser to add the extra > values. Yes, there's also a py

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-19 Thread Tarek Ziadé
On Thu, Nov 19, 2009 at 11:04 AM, Antoine Pitrou wrote: > Tarek Ziadé gmail.com> writes: >> >> So what I am proposing is to inject those values in a private dict in >> the new sysconfig.py module, >> that can be read through the get_config_vars / get_config_var APIs. >> >> This means that sysconf

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-19 Thread M.-A. Lemburg
Tarek Ziadé wrote: > On Mon, Nov 16, 2009 at 8:15 PM, Toshio Kuratomi wrote: > [..] >> I've brought the issue of Makefile and pyconfig.h being needed for distutils >> to the attention of every new Fedora python maintainer since the package >> split was made. The current maintainer, David Malcolm,

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-19 Thread Antoine Pitrou
Tarek Ziadé gmail.com> writes: > > So what I am proposing is to inject those values in a private dict in > the new sysconfig.py module, > that can be read through the get_config_vars / get_config_var APIs. > > This means that sysconfig.py will be added as "sysconfig.py.in" This means you have t

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-19 Thread Christian Heimes
Tarek Ziadé wrote: > Now for the format problem, I agree that it seems more robust to > pre-process the variables > and inject them in the stdlib when ./configure is run. > > I am not sure what is the best strategy here, but I would rather not > add yet another > configuration file (wether its an

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-19 Thread Tarek Ziadé
On Mon, Nov 16, 2009 at 10:09 PM, David Malcolm wrote: [..] >> >> $ dpkg -S /usr/lib/python2.5/config/Makefile >> python2.5: /usr/lib/python2.5/config/Makefile > For what it's worth, this is fixed in Fedora as of python-2.6.4-2.fc13 ; > the bug tracking it was: > https://bugzilla.redhat.com/show_b

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-19 Thread Tarek Ziadé
On Mon, Nov 16, 2009 at 8:15 PM, Toshio Kuratomi wrote: [..] > I've brought the issue of Makefile and pyconfig.h being needed for distutils > to the attention of every new Fedora python maintainer since the package > split was made.  The current maintainer, David Malcolm, agrees that > distutils.s

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-16 Thread David Malcolm
On Sun, 2009-11-15 at 12:42 +, Antoine Pitrou wrote: > Tarek Ziadé gmail.com> writes: > > > > This cannot work on all platforms, when our Makefile is not shipped > > with python but python-devel. (like Fedora) > > This practice is stupid anyway, because it means you have to install > python-

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-16 Thread Andrew McNabb
On Sun, Nov 15, 2009 at 03:35:00AM +0100, Christian Heimes wrote: > > Do we really want to change distutils to solve a problem of a third > party packaging system when the problem was created by the very same > third party in the first place? In other words: Should you spend your > precious develo

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-16 Thread Floris Bruynooghe
On Sun, Nov 15, 2009 at 11:27:29PM -0500, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Tarek Ziadé wrote: > > On Sun, Nov 15, 2009 at 3:35 AM, Christian Heimes wrote: > > [..] > >> Do we really want to change distutils to solve a problem of a third > >> party packaging

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-16 Thread Toshio Kuratomi
On Sun, Nov 15, 2009 at 02:31:45PM +0100, Georg Brandl wrote: > Antoine Pitrou schrieb: > > Tarek Ziadé gmail.com> writes: > >> > >> This cannot work on all platforms, when our Makefile is not shipped > >> with python but python-devel. (like Fedora) > > > > This practice is stupid anyway, becaus

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-15 Thread Nick Coghlan
Tres Seaver wrote: > Tarek Ziadé wrote: >> I didn't know the split story went like this. I took it like the >> "natural" split everyone >> agreed on, and I saw this distutils <-> Makefile link like something to fix. > >> So, it sounds like a bad idea now :) > > Parsing the Makefile at runtime see

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tarek Ziadé wrote: > On Sun, Nov 15, 2009 at 3:35 AM, Christian Heimes wrote: > [..] >> Do we really want to change distutils to solve a problem of a third >> party packaging system when the problem was created by the very same >> third party in the f

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-15 Thread Brett Cannon
On Sun, Nov 15, 2009 at 05:31, Georg Brandl wrote: > Antoine Pitrou schrieb: >> Tarek Ziadé gmail.com> writes: >>> >>> This cannot work on all platforms, when our Makefile is not shipped >>> with python but python-devel. (like Fedora) >> >> This practice is stupid anyway, because it means you hav

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-15 Thread David Cournapeau
On Sun, Nov 15, 2009 at 10:32 PM, Tarek Ziadé wrote: > > Ok. Fair enough, I'll work with them this way. Although packagers should certainly fix the problems they introduce in the first place, the second suggestion in the bug report would be useful, independently on how linux distributions packag

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-15 Thread Tarek Ziadé
On Sun, Nov 15, 2009 at 4:02 AM, Terry Reedy wrote: > Christian Heimes wrote: >> >> Tarek Ziadé wrote: >>> >>> 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 mod

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-15 Thread Georg Brandl
Antoine Pitrou schrieb: > Tarek Ziadé gmail.com> writes: >> >> This cannot work on all platforms, when our Makefile is not shipped >> with python but python-devel. (like Fedora) > > This practice is stupid anyway, because it means you have to install > python-devel even to install pure Python pa

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-15 Thread Tarek Ziadé
On Sun, Nov 15, 2009 at 3:35 AM, Christian Heimes wrote: [..] > Do we really want to change distutils to solve a problem of a third > party packaging system when the problem was created by the very same > third party in the first place? In other words: Should you spend your > precious development

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-15 Thread Antoine Pitrou
Tarek Ziadé gmail.com> writes: > > This cannot work on all platforms, when our Makefile is not shipped > with python but python-devel. (like Fedora) This practice is stupid anyway, because it means you have to install python-devel even to install pure Python packages with setuptools/distribute.

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-14 Thread Terry Reedy
Christian Heimes wrote: Tarek Ziadé wrote: 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 sh

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-14 Thread Christian Heimes
Tarek Ziadé wrote: > 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

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-14 Thread Tarek Ziadé
2009/11/15 "Martin v. Löwis" : >> The problem is that the main python distribution ("python") is not >> working as advertised since >> it contains distutils, which requires "python-devel" to work. >> >> This implies that "python" has a dependency on "python-devel", which >> does not make sense >> a

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-14 Thread Martin v. Löwis
> The problem is that the main python distribution ("python") is not > working as advertised since > it contains distutils, which requires "python-devel" to work. > > This implies that "python" has a dependency on "python-devel", which > does not make sense > anymore for linux distros to have two

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-14 Thread Tarek Ziadé
On Sun, Nov 15, 2009 at 2:41 AM, Arfrever Frehtes Taifersar Arahesis wrote: [..] >> >> 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. I need to investigate on these, thx

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-14 Thread Tarek Ziadé
2009/11/15 "Martin v. Löwis" : >> 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 >>

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-14 Thread Arfrever Frehtes Taifersar Arahesis
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 Makefi

Re: [Python-Dev] buildtime vs runtime in Distutils

2009-11-14 Thread Martin v. Löwis
> 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

[Python-Dev] buildtime vs runtime in Distutils

2009-11-14 Thread Tarek Ziadé
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 Fedo