summaryrefslogtreecommitdiff
path: root/setuptools/command/install_scripts.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-16 15:33:09 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-16 15:33:09 -0500
commit921fc3e28378598912d69d3f2a6ebdd090ed3e4e (patch)
tree05f5b2f9825523a64a0f8925dabb1224d3742065 /setuptools/command/install_scripts.py
parent21ebac859dff95cb593180f7fffdf74d8a5e5275 (diff)
downloadpython-setuptools-git-921fc3e28378598912d69d3f2a6ebdd090ed3e4e.tar.gz
Renamed .get_writer to .best and removed boolean argument.
Diffstat (limited to 'setuptools/command/install_scripts.py')
-rwxr-xr-xsetuptools/command/install_scripts.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py
index 722b0566..ad89c5fd 100755
--- a/setuptools/command/install_scripts.py
+++ b/setuptools/command/install_scripts.py
@@ -13,7 +13,7 @@ class install_scripts(orig.install_scripts):
self.no_ep = False
def run(self):
- from setuptools.command.easy_install import ScriptWriter, CommandSpec
+ import setuptools.command.easy_install as ei
self.run_command("egg_info")
if self.distribution.scripts:
@@ -30,14 +30,15 @@ class install_scripts(orig.install_scripts):
ei_cmd.egg_name, ei_cmd.egg_version,
)
bs_cmd = self.get_finalized_command('build_scripts')
- cmd = CommandSpec.from_param(getattr(bs_cmd, 'executable', None))
+ cmd = ei.CommandSpec.from_param(getattr(bs_cmd, 'executable', None))
is_wininst = getattr(
self.get_finalized_command("bdist_wininst"), '_is_running', False
)
+ writer = ei.ScriptWriter
if is_wininst:
- cmd = CommandSpec.from_string("python.exe")
- writer = ScriptWriter.get_writer(force_windows=is_wininst)
- for args in writer.get_args(dist, cmd.as_header()):
+ cmd = ei.CommandSpec.from_string("python.exe")
+ writer = ei.WindowsScriptWriter
+ for args in writer.best().get_args(dist, cmd.as_header()):
self.write_script(*args)
def write_script(self, script_name, contents, mode="t", *ignored):