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 | 847ce20a9390a14d3c415d9127db4bf9b86af3cb (patch) | |
| tree | c2493e37a3995d7862fedeec17d2ba9bb14ee9c2 /setuptools/command/easy_install.py | |
| parent | 3f6ffbc76c79adac2905221aef8f03bef28999f7 (diff) | |
| download | python-setuptools-git-847ce20a9390a14d3c415d9127db4bf9b86af3cb.tar.gz | |
Backport 'module' fixes to 0.6
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045696
Diffstat (limited to 'setuptools/command/easy_install.py')
| -rwxr-xr-x | setuptools/command/easy_install.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 3507d4ed..b7a30a11 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -745,7 +745,6 @@ Please make the appropriate changes for your system and try again. to_compile = [] native_libs = [] top_level = {} - def process(src,dst): for old,new in prefixes: if src.startswith(old): @@ -754,6 +753,7 @@ Please make the appropriate changes for your system and try again. dst = os.path.join(egg_tmp, *parts) dl = dst.lower() if dl.endswith('.pyd') or dl.endswith('.dll'): + parts[-1] = bdist_egg.strip_module(parts[-1]) top_level[os.path.splitext(parts[0])[0]] = 1 native_libs.append(src) elif dl.endswith('.py') and old!='SCRIPTS/': @@ -770,11 +770,11 @@ Please make the appropriate changes for your system and try again. for res in native_libs: if res.lower().endswith('.pyd'): # create stubs for .pyd's parts = res.split('/') - resource, parts[-1] = parts[-1], parts[-1][:-1] + resource = parts[-1] + parts[-1] = bdist_egg.strip_module(parts[-1])+'.py' pyfile = os.path.join(egg_tmp, *parts) to_compile.append(pyfile); stubs.append(pyfile) bdist_egg.write_stub(resource, pyfile) - self.byte_compile(to_compile) # compile .py's bdist_egg.write_safety_flag(os.path.join(egg_tmp,'EGG-INFO'), bdist_egg.analyze_egg(egg_tmp, stubs)) # write zip-safety flag |
