summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2008-08-21 21:38:38 +0000
committerPJ Eby <distutils-sig@python.org>2008-08-21 21:38:38 +0000
commit4981b7d0596fcbc7c41ed992a62c6759370f79ac (patch)
tree5b1ea958c1b955073bdc10909ced7637042314d8
parent32908f48737f974d510a7cd8b790f698a9a52956 (diff)
downloadpython-setuptools-bitbucket-4981b7d0596fcbc7c41ed992a62c6759370f79ac.tar.gz
Ensure that _full_name is set on all shared libs before extensions
are checked for shared lib usage. (problem reported by Andi Vajda) (backport from trunk)
-rw-r--r--setuptools/command/build_ext.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index c9ae4d7d..c0aaa8e8 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -107,7 +107,9 @@ class build_ext(_build_ext):
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 @@ class build_ext(_build_ext):
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