]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport fdrake's
authorMichael W. Hudson <mwh@python.net>
Mon, 7 Oct 2002 10:38:33 +0000 (10:38 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 7 Oct 2002 10:38:33 +0000 (10:38 +0000)
commitc01f360a4a166afdc4f4ab67167ba41d68aed170
tree38ff62b1e9ef30f7898f090c501292dd6f4977fa
parent5e40e74bbe77c0f9a2bc16ed19b5a2c83345c960
Backport fdrake's
    revision 1.88 of setup.py
    revision 1.46 of Lib/distutils/sysconfig.py

When using a Python that has not been installed to build 3rd-party
modules, distutils does not understand that the build version of the
source tree is needed.

This patch fixes distutils.sysconfig to understand that the running
Python is part of the build tree and needs to use the appropriate
"shape" of the tree. This does not assume anything about the current
directory, so can be used to build 3rd-party modules using Python's
build tree as well.

This is useful since it allows us to use a non-installed debug-mode
Python with 3rd-party modules for testing. It as the side-effect that
set_python_build() is no longer needed (the hack which was added to
allow distutils to be used to build the "standard" extension modules).

This closes SF patch #547734.
Lib/distutils/sysconfig.py
setup.py