diff options
author | PJ Eby <distutils-sig@python.org> | 2008-08-21 21:38:38 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2008-08-21 21:38:38 +0000 |
commit | 8b2b15294e2c3cafe791d329c3089e0631902381 (patch) | |
tree | 5b1ea958c1b955073bdc10909ced7637042314d8 /setuptools/command/build_ext.py | |
parent | 325788292c835751386a952941cfd613e773638f (diff) | |
download | external_python_setuptools-8b2b15294e2c3cafe791d329c3089e0631902381.tar.gz external_python_setuptools-8b2b15294e2c3cafe791d329c3089e0631902381.tar.bz2 external_python_setuptools-8b2b15294e2c3cafe791d329c3089e0631902381.zip |
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)
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4065963
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r-- | setuptools/command/build_ext.py | 6 |
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 |