From b9e23adff55624ba2c3527c9f807ec7962b58c5f Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 27 Sep 2015 08:07:30 -0400 Subject: Backed out changeset 38b415c244b8 --- setuptools/command/easy_install.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'setuptools/command/easy_install.py') 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: @@ -774,10 +774,6 @@ class easy_install(Command): self._load_template(dev_path) % locals()) 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): """ -- cgit v1.2.1