Issue 458898: --python-build for install (original) (raw)

Created on 2001-09-05 20:58 by niemeyer, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-2.2-pythonbuild.patch niemeyer,2002-01-19 00:02
Messages (7)
msg37489 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2001-09-05 20:58
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.
msg37490 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-01-17 17:49
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?
msg37491 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2002-01-19 00:02
Logged In: YES user_id=7887 Here is a new patch including your suggestions. Thank you!!
msg37492 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-01-21 10:45
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...
msg37493 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2002-01-31 14:18
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.
msg37494 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-07-28 11:07
Logged In: YES user_id=21627 It appears that the patch is outdated; set_python_build is no longer. Is the patch still needed?
msg37495 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-10-07 13:25
Logged In: YES user_id=21627 Rejecting the patch since there was no response.
History
Date User Action Args
2022-04-10 16:04:25 admin set github: 35123
2001-09-05 20:58:46 niemeyer create