aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/build_ext.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-09-13 00:15:41 +0200
committerMartin v. Löwis <martin@v.loewis.de>2009-09-13 00:15:41 +0200
commit5bf298f0e8b30f236b76997c66eee38de798f710 (patch)
tree4bd1bc5b8d82a33f48472bb4fd404d22c7d43d90 /setuptools/command/build_ext.py
parent99ab2076b4e84718f9b034ab4e1394fd06d468f3 (diff)
downloadexternal_python_setuptools-5bf298f0e8b30f236b76997c66eee38de798f710.tar.gz
external_python_setuptools-5bf298f0e8b30f236b76997c66eee38de798f710.tar.bz2
external_python_setuptools-5bf298f0e8b30f236b76997c66eee38de798f710.zip
Work around distutils 3.1 breaking ext_map.
--HG-- branch : distribute extra : rebase_source : 47da1d81d1923e23aa70949c2a69000c01f8f81f
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r--setuptools/command/build_ext.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index c0aaa8e8..b837375b 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -111,6 +111,11 @@ class build_ext(_build_ext):
for ext in self.extensions:
fullname = ext._full_name
self.ext_map[fullname] = ext
+
+ # distutils 3.1 will also ask for module names
+ # XXX what to do with conflicts?
+ self.ext_map[fullname.split('.')[-1]] = ext
+
ltd = ext._links_to_dynamic = \
self.shlibs and self.links_to_dynamic(ext) or False
ext._needs_stub = ltd and use_stubs and not isinstance(ext,Library)