[Python-checkins] python/dist/src setup.py,1.87,1.88

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Tue, 04 Jun 2002 08:28:23 -0700


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

Modified Files:
	setup.py 
Log Message:
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.87
retrieving revision 1.88
diff -C2 -d -r1.87 -r1.88
*** setup.py	22 May 2002 16:46:15 -0000	1.87
--- setup.py	4 Jun 2002 15:28:21 -0000	1.88
***************
*** 823,826 ****
  # --install-platlib
  if __name__ == '__main__':
-     sysconfig.set_python_build()
      main()
--- 823,825 ----