From da3d5f36862b916941da87d86e13cb74c874ccec Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 23 Sep 2018 11:52:50 -0400 Subject: Replace redundant code with call of that code. --- setuptools/command/easy_install.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'setuptools/command') 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): -- cgit v1.2.1