[Python-checkins] r65962 - sandbox/trunk/setuptools/setuptools/command/build_ext.py

phillip.eby python-checkins at python.org
Thu Aug 21 23:37:58 CEST 2008


Author: phillip.eby
Date: Thu Aug 21 23:37:58 2008
New Revision: 65962

Log:
Ensure that _full_name is set on all shared libs before extensions
are checked for shared lib usage.  (problem reported by Andi Vajda)


Modified:
   sandbox/trunk/setuptools/setuptools/command/build_ext.py

Modified: sandbox/trunk/setuptools/setuptools/command/build_ext.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/build_ext.py	(original)
+++ sandbox/trunk/setuptools/setuptools/command/build_ext.py	Thu Aug 21 23:37:58 2008
@@ -107,7 +107,9 @@
         if self.shlibs:
             self.setup_shlib_compiler()
         for ext in self.extensions:
-            fullname = ext._full_name = self.get_ext_fullname(ext.name)
+            ext._full_name = self.get_ext_fullname(ext.name)
+        for ext in self.extensions:
+            fullname = ext._full_name
             self.ext_map[fullname] = ext
             ltd = ext._links_to_dynamic = \
                 self.shlibs and self.links_to_dynamic(ext) or False
@@ -119,8 +121,6 @@
             if ltd and use_stubs and os.curdir not in ext.runtime_library_dirs:
                 ext.runtime_library_dirs.append(os.curdir)
 
-
-
     def setup_shlib_compiler(self):
         compiler = self.shlib_compiler = new_compiler(
             compiler=self.compiler, dry_run=self.dry_run, force=self.force


More information about the Python-checkins mailing list