aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-09-23 11:52:50 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-09-23 11:52:50 -0400
commitda3d5f36862b916941da87d86e13cb74c874ccec (patch)
tree67e9b4481ba81286b48394e6f4ac154691ae838c /setuptools/command
parent8c355d7c2f20feaf85c2ee5a96e993826e62bbd4 (diff)
downloadexternal_python_setuptools-da3d5f36862b916941da87d86e13cb74c874ccec.tar.gz
external_python_setuptools-da3d5f36862b916941da87d86e13cb74c874ccec.tar.bz2
external_python_setuptools-da3d5f36862b916941da87d86e13cb74c874ccec.zip
Replace redundant code with call of that code.
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/easy_install.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index a1470f6d..3da601b7 100644
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -2088,9 +2088,7 @@ class ScriptWriter:
warnings.warn("Use get_header", DeprecationWarning, stacklevel=2)
if wininst:
executable = "python.exe"
- cmd = cls.command_spec_class.best().from_param(executable)
- cmd.install_options(script_text)
- return cmd.as_header()
+ return cls.get_header(script_text, executable)
@classmethod
def get_args(cls, dist, header=None):