[Patches] [ python-Patches-458898 ] --python-build for install

noreply@sourceforge.net noreply@sourceforge.net
Sun, 28 Jul 2002 04:07:26 -0700


Patches item #458898, was opened at 2001-09-05 22:58
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=458898&group_id=5470

Category: Distutils and setup.py
Group: None
Status: Open
>Resolution: Out of Date
Priority: 5
Submitted By: Gustavo Niemeyer (niemeyer)
Assigned to: Michael Hudson (mwh)
Summary: --python-build for install

Initial Comment:
Sometimes, being able to install python tools without
having python installed is desirable. When building an
RPM package of python, for example, one may want to
build/install IDLE as well, including it in a
subpackage. Indeed, we're doing this with a couple of
python tools here at Conectiva. Unfortunately, we have
a egg-chicken problem when doing this. You need python
installed in your system before you install tools. This
limitation may be observed in the file
Lib/distutils/sysconfig.py. It looks for Makefile in
the final installation directory, for example.

This patch adds a new option to dist-utils' install
command: --python-build. When used, python will look
for these files in the python build directory specified
trough the option.



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-07-28 13:07

Message:
Logged In: YES 
user_id=21627

It appears that the patch is outdated; set_python_build is
no longer.
Is the patch still needed?

----------------------------------------------------------------------

Comment By: Gustavo Niemeyer (niemeyer)
Date: 2002-01-31 15:18

Message:
Logged In: YES 
user_id=7887

About..

1) Sorry.. I'll take care to add comments to the file next 
time. The bottom one is newer.

2) For now, a local option seems to be ok. If other 
commands start using it (what seems unprobable right now), 
we may turn it into a global option without any drawbacks, 
since global options are acceptable anywhere.


----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2002-01-21 11:45

Message:
Logged In: YES 
user_id=6656

Ta.  Some random comments:
(1) it's not obvious from this page which of the two patches
attached is the newer.  This may be sf's fault, but...
(2) might it be better to make this a global distutils
option?  It seems a bit fragile at the moment -- we'd need
to change things if, say, build_ext started to depend on
python_build.
Would, say
$ python setup.py --python-build install
be better?

I dunno, I don't really understand how options chase around
distutils yet... 

----------------------------------------------------------------------

Comment By: Gustavo Niemeyer (niemeyer)
Date: 2002-01-19 01:02

Message:
Logged In: YES 
user_id=7887

Here is a new patch including your suggestions.

Thank you!!


----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2002-01-17 18:49

Message:
Logged In: YES 
user_id=6656

Hey!  This patch is less than six months old.  Virtually
fresh :|

Some comments:  are you sure you can get away with only
honouring --python-build in install?  I think build_scripts
needs it too (now, anyway, maybe not when you wrote the patch).

Also, the mod to install.finalize_options() is in the wrong
place wrt. the surrouding comments.  Can you fix this?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=458898&group_id=5470