diff options
author | Thomas Heller <theller@ctypes.org> | 2002-04-25 17:26:37 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2002-04-25 17:26:37 (GMT) |
commit | 378498dad6fd218bf4563fedc274561c49b26606 (patch) | |
tree | 45a70ce95f58111f9445ee0e0cedee049b2870e0 /Lib | |
parent | e65008038eccdcef396b0b2c09c8b4d72cf9b915 (diff) | |
download | cpython-378498dad6fd218bf4563fedc274561c49b26606.zip cpython-378498dad6fd218bf4563fedc274561c49b26606.tar.gz cpython-378498dad6fd218bf4563fedc274561c49b26606.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/build_ext.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 91fee5e..ddbd03e 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -167,6 +167,11 @@ class build_ext (Command): else: 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 if os.name == 'os2': @@ -177,7 +182,9 @@ class build_ext (Command): if sys.platform[:6] == 'cygwin': 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")) + self.library_dirs.append(os.path.join(sys.prefix, "lib", + "python" + sys.version[:3], + "config")) else: # building python standard extensions self.library_dirs.append('.') |