Mailing List Archive

python/dist/src/Lib/distutils/command build_ext.py,1.79,1.80
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv14688

Modified Files:
build_ext.py
Log Message:
Append the PC specific include 'PC' and library 'PCBuild' directories
under NT - this allows distutils to work with the CVS version or the
source distribution.

Wrap a long line.


Index: build_ext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/build_ext.py,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** build_ext.py 31 Jan 2002 18:56:00 -0000 1.79
--- build_ext.py 25 Apr 2002 17:26:37 -0000 1.80
***************
*** 168,171 ****
--- 168,176 ----
self.build_temp = os.path.join(self.build_temp, "Release")

+ # Append the source distribution include and library directories,
+ # this allows distutils on windows to work in the source tree
+ self.include_dirs.append(os.path.join(sys.exec_prefix, 'PC'))
+ self.library_dirs.append(os.path.join(sys.exec_prefix, 'PCBuild'))
+
# OS/2 (EMX) doesn't support Debug vs Release builds, but has the
# import libraries in its "Config" subdirectory
***************
*** 178,182 ****
if string.find(sys.executable, sys.exec_prefix) != -1:
# building third party extensions
! self.library_dirs.append(os.path.join(sys.prefix, "lib", "python" + sys.version[:3], "config"))
else:
# building python standard extensions
--- 183,189 ----
if string.find(sys.executable, sys.exec_prefix) != -1:
# building third party extensions
! self.library_dirs.append(os.path.join(sys.prefix, "lib",
! "python" + sys.version[:3],
! "config"))
else:
# building python standard extensions