aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-11 10:18:38 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-11 10:18:38 -0500
commit2f7d95690e53fe92a82b055b82c4dc02b6a3339c (patch)
tree3d06c5c48e12c41d4548ee835a9663d00dccd026 /setuptools/package_index.py
parentcd28f4e0eddf3f571cb0efe05a23fa4a7a254de7 (diff)
downloadexternal_python_setuptools-2f7d95690e53fe92a82b055b82c4dc02b6a3339c.tar.gz
external_python_setuptools-2f7d95690e53fe92a82b055b82c4dc02b6a3339c.tar.bz2
external_python_setuptools-2f7d95690e53fe92a82b055b82c4dc02b6a3339c.zip
Extract variables for improved documentation.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 5adb8c2b..36231f11 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -367,7 +367,9 @@ class PackageIndex(Environment):
# format is not recognized; punt
return
- for dist in find_distributions(os.path.join(path, lines[0])):
+ egg_path, setup_path = lines
+
+ for dist in find_distributions(os.path.join(path, egg_path)):
dist.location = os.path.join(path, *lines)
dist.precedence = SOURCE_DIST
self.add(dist)