summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2008-03-10 16:22:25 +0000
committerphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2008-03-10 16:22:25 +0000
commit09591fd29f190dc42d010de227e66085cd4ba86d (patch)
treed410e7a8b4b5d1d2db2c53a693c17907589ee69a /setuptools/command
parent387d1e7ec739e4e4920d4f64a1fa515390d65f42 (diff)
downloadpython-setuptools-09591fd29f190dc42d010de227e66085cd4ba86d.tar.gz
Support installing pywin32 as an egg, albeit without registering
COM support, shortcuts, etc. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@61341 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/easy_install.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 4467885..dae506b 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -744,8 +744,9 @@ Please make the appropriate changes for your system and try again.
native_libs = []
top_level = {}
def process(src,dst):
+ s = src.lower()
for old,new in prefixes:
- if src.startswith(old):
+ if s.startswith(old):
src = new+src[len(old):]
parts = src.split('/')
dst = os.path.join(egg_tmp, *parts)
@@ -761,7 +762,6 @@ Please make the appropriate changes for your system and try again.
if not src.endswith('.pth'):
log.warn("WARNING: can't process %s", src)
return None
-
# extract, tracking .pyd/.dll->native_libs and .py -> to_compile
unpack_archive(dist_filename, egg_tmp, process)
stubs = []
@@ -1273,7 +1273,7 @@ def get_exe_prefixes(exe_filename):
"""Get exe->egg path translations for a given .exe file"""
prefixes = [
- ('PURELIB/', ''),
+ ('PURELIB/', ''), ('PLATLIB/pywin32_system32', ''),
('PLATLIB/', ''),
('SCRIPTS/', 'EGG-INFO/scripts/')
]
@@ -1290,14 +1290,14 @@ def get_exe_prefixes(exe_filename):
continue
if name.endswith('-nspkg.pth'):
continue
- if parts[0] in ('PURELIB','PLATLIB'):
+ if parts[0].upper() in ('PURELIB','PLATLIB'):
for pth in yield_lines(z.read(name)):
pth = pth.strip().replace('\\','/')
if not pth.startswith('import'):
prefixes.append((('%s/%s/' % (parts[0],pth)), ''))
finally:
z.close()
-
+ prefixes = [(x.lower(),y) for x, y in prefixes]
prefixes.sort(); prefixes.reverse()
return prefixes