Update of /cvsroot/pywin32/pywin32
In directory sc8-pr-cvs1:/tmp/cvs-serv28037
Modified Files:
setup_win32all_core.py
Log Message:
Now this code is run as each extension is build, the compiler has
already found all its dirs - so no need to look in environ["LIB"]
Index: setup_win32all_core.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/setup_win32all_core.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** setup_win32all_core.py 11 Nov 2003 07:32:05 -0000 1.15
--- setup_win32all_core.py 11 Nov 2003 07:38:25 -0000 1.16
***************
*** 148,157 ****
def _why_cant_build_extension(self, ext):
# Return None, or a reason it can't be built.
- common_dirs = self.compiler.library_dirs
- common_dirs += os.environ.get("LIB").split(os.pathsep)
for lib in ext.libraries:
if self.found_libraries.has_key(lib.lower()):
continue
! for dir in common_dirs + ext.library_dirs:
if os.path.isfile(os.path.join(dir, lib + ".lib")):
self.found_libraries[lib.lower()] = True
--- 148,155 ----
def _why_cant_build_extension(self, ext):
# Return None, or a reason it can't be built.
for lib in ext.libraries:
if self.found_libraries.has_key(lib.lower()):
continue
! for dir in self.compiler.library_dirs + ext.library_dirs:
if os.path.isfile(os.path.join(dir, lib + ".lib")):
self.found_libraries[lib.lower()] = True
|