aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-09-27 08:07:30 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-09-27 08:07:30 -0400
commitb9e23adff55624ba2c3527c9f807ec7962b58c5f (patch)
tree4392e99da2f24ac1199d7640acea491f751df620 /setuptools/command/easy_install.py
parentbc3389a6048b23871e50eaab20d8df06ba3ff53d (diff)
downloadexternal_python_setuptools-b9e23adff55624ba2c3527c9f807ec7962b58c5f.tar.gz
external_python_setuptools-b9e23adff55624ba2c3527c9f807ec7962b58c5f.tar.bz2
external_python_setuptools-b9e23adff55624ba2c3527c9f807ec7962b58c5f.zip
Backed out changeset 38b415c244b8
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 2faff4c2..45d180bb 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -766,7 +766,7 @@ class easy_install(Command):
def install_script(self, dist, script_name, script_text, dev_path=None):
"""Generate a legacy script wrapper and install it"""
- spec = self._requirement_spec(dist)
+ spec = str(dist.as_requirement())
is_script = is_python_script(script_text, script_name)
if is_script:
@@ -775,10 +775,6 @@ class easy_install(Command):
self.write_script(script_name, _to_ascii(script_text), 'b')
@staticmethod
- def _requirement_spec(dist):
- return str(dist.as_requirement())
-
- @staticmethod
def _load_template(dev_path):
"""
There are a couple of template scripts in the package. This