Commit 0ac1f691 authored by Jason R. Coombs's avatar Jason R. Coombs

Merged in hollobon/distribute (pull request #29)

--HG--
branch : distribute
extra : rebase_source : d3bb70b440414ad17925221b536a10106aece4e4
parents e0ea74d3 36d2b289
......@@ -1522,7 +1522,10 @@ def get_exe_prefixes(exe_filename):
if name.endswith('-nspkg.pth'):
continue
if parts[0].upper() in ('PURELIB','PLATLIB'):
for pth in yield_lines(z.read(name)):
contents = z.read(name)
if sys.version_info >= (3,):
contents = contents.decode()
for pth in yield_lines(contents):
pth = pth.strip().replace('\\','/')
if not pth.startswith('import'):
prefixes.append((('%s/%s/' % (parts[0],pth)), ''))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment