aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools
diff options
context:
space:
mode:
authorJens Timmerman <jens.timmerman@ugent.be>2016-06-24 17:30:02 +0200
committerJens Timmerman <jens.timmerman@ugent.be>2016-07-25 16:14:53 +0200
commite2124c84b83e8ad6adb3dd8e8ed846eea4f7601f (patch)
treeb0972d3a0d04a0e90346907a3ddf8f0e35192bee /setuptools
parentc4ef24f6bac7b4c12b3cfc71258524185d220fc7 (diff)
downloadexternal_python_setuptools-e2124c84b83e8ad6adb3dd8e8ed846eea4f7601f.tar.gz
external_python_setuptools-e2124c84b83e8ad6adb3dd8e8ed846eea4f7601f.tar.bz2
external_python_setuptools-e2124c84b83e8ad6adb3dd8e8ed846eea4f7601f.zip
pick better names for variables
Diffstat (limited to 'setuptools')
-rwxr-xr-xsetuptools/package_index.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index b7247120..89eb5786 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -602,9 +602,8 @@ class PackageIndex(Environment):
continue
if dist in req and (dist.precedence <= SOURCE_DIST or not source):
- mylocation = self.download(dist.location, tmpdir)
- if os.path.exists(mylocation):
- dist._location = mylocation
+ dist.download_location = self.download(dist.location, tmpdir)
+ if os.path.exists(dist.download_location):
return dist
if force_scan:
@@ -632,7 +631,7 @@ class PackageIndex(Environment):
)
else:
self.info("Best match: %s", dist)
- return dist.clone(location=dist._location)
+ return dist.clone(location=dist.download_location)
def fetch(self, requirement, tmpdir, force_scan=False, source=False):
"""Obtain a file suitable for fulfilling `requirement`