[Checkins] SVN: zc.buildout/branches/gary-support-system-python/src/zc/buildout/easy_install.py make the script paths prettier, with less code.
Gary Poster
gary.poster at canonical.com
Wed Aug 5 09:30:00 EDT 2009
Log message for revision 102499:
make the script paths prettier, with less code.
Changed:
U zc.buildout/branches/gary-support-system-python/src/zc/buildout/easy_install.py
-=-
Modified: zc.buildout/branches/gary-support-system-python/src/zc/buildout/easy_install.py
===================================================================
--- zc.buildout/branches/gary-support-system-python/src/zc/buildout/easy_install.py 2009-08-05 12:46:29 UTC (rev 102498)
+++ zc.buildout/branches/gary-support-system-python/src/zc/buildout/easy_install.py 2009-08-05 13:29:59 UTC (rev 102499)
@@ -1082,17 +1082,14 @@
postponed.append(location)
elif location in site_packages:
postponed.append(location)
+ site_packages.remove(location)
elif location not in postponed:
path.append(location)
path.extend(postponed)
path.extend(extra_paths)
# now we add in all paths
if include_site_packages:
- # err a bit on the side of cleanliness, avoiding dupes just to look
- # pretty.
- for location in site_packages:
- if location not in path:
- path.append(location)
+ path.extend(site_packages) # these are the remaining site_packages
path.extend(stdlib)
path = map(realpath, path)
return path
More information about the Checkins
mailing list