[Python-checkins] python/dist/src setup.py,1.73.4.9,1.73.4.10

mwh@users.sourceforge.net mwh@users.sourceforge.net
Mon, 07 Oct 2002 03:38:35 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv2787

Modified Files:
      Tag: release22-maint
	setup.py 
Log Message:
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.



Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.73.4.9
retrieving revision 1.73.4.10
diff -C2 -d -r1.73.4.9 -r1.73.4.10
*** setup.py	30 Sep 2002 14:42:29 -0000	1.73.4.9
--- setup.py	7 Oct 2002 10:38:33 -0000	1.73.4.10
***************
*** 790,793 ****
  # --install-platlib
  if __name__ == '__main__':
-     sysconfig.set_python_build()
      main()
--- 790,792 ----