diff options
| author | PJ Eby <distutils-sig@python.org> | 2006-04-24 20:52:59 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2006-04-24 20:52:59 +0000 |
| commit | 5d58a66433ecc5466830402ba85ee4ded5aee53f (patch) | |
| tree | c2493e37a3995d7862fedeec17d2ba9bb14ee9c2 /setuptools/dist.py | |
| parent | bf06e18f4b16510cf37a4778b250e551079599bd (diff) | |
| download | python-setuptools-bitbucket-5d58a66433ecc5466830402ba85ee4ded5aee53f.tar.gz | |
Backport 'module' fixes to 0.6
Diffstat (limited to 'setuptools/dist.py')
| -rw-r--r-- | setuptools/dist.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index b1ebeb47..724d5c5d 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -624,10 +624,12 @@ class Distribution(_Distribution): 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 @@ for module in distutils.dist, distutils.core, distutils.cmd: - - class Feature: """A subset of the distribution that can be excluded if unneeded/wanted |
