[Python-checkins] r45695 - sandbox/trunk/setuptools/setuptools/dist.py
phillip.eby
python-checkins at python.org
Mon Apr 24 22:50:19 CEST 2006
Author: phillip.eby
Date: Mon Apr 24 22:50:18 2006
New Revision: 45695
Modified:
sandbox/trunk/setuptools/setuptools/dist.py
Log:
Catch 'module' names in internal module name list as well.
Modified: sandbox/trunk/setuptools/setuptools/dist.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/dist.py (original)
+++ sandbox/trunk/setuptools/setuptools/dist.py Mon Apr 24 22:50:18 2006
@@ -624,10 +624,12 @@
for ext in self.ext_modules or ():
if isinstance(ext,tuple):
- name,buildinfo = ext
- yield name
+ name, buildinfo = ext
else:
- yield ext.name
+ name = ext.name
+ if name.endswith('module'):
+ name = name[:-6]
+ yield name
# Install it throughout the distutils
for module in distutils.dist, distutils.core, distutils.cmd:
@@ -652,8 +654,6 @@
-
-
class Feature:
"""A subset of the distribution that can be excluded if unneeded/wanted
More information about the Python-checkins
mailing list