aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetuptools/command/easy_install.py10
-rwxr-xr-xsetuptools/command/install_scripts.py2
-rw-r--r--setuptools/tests/test_easy_install.py2
3 files changed, 7 insertions, 7 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 9eb74159..5c50dbe2 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -745,7 +745,7 @@ Please make the appropriate changes for your system and try again.
def install_wrapper_scripts(self, dist):
if not self.exclude_scripts:
- for args in ScriptWriter._gen_args(dist):
+ for args in ScriptWriter.get_args(dist):
self.write_script(*args)
def install_script(self, dist, script_name, script_text, dev_path=None):
@@ -921,7 +921,7 @@ Please make the appropriate changes for your system and try again.
# delete entry-point scripts to avoid duping
self.delete_blockers(
[os.path.join(script_dir, args[0]) for args in
- ScriptWriter._gen_args(dist)]
+ ScriptWriter.get_args(dist)]
)
# Build .egg file from tmpdir
bdist_egg.make_zipfile(
@@ -1876,10 +1876,10 @@ class ScriptWriter(object):
@classmethod
def get_script_args(cls, dist, executable=sys_executable, wininst=False):
# for backward compatibility
- warnings.warn("Use _gen_args", DeprecationWarning)
+ warnings.warn("Use get_args", DeprecationWarning)
writer = cls.get_writer(wininst)
header = cls.get_script_header("", executable, wininst)
- return writer._gen_args(dist, header)
+ return writer.get_args(dist, header)
@classmethod
def get_script_header(cls, script_text, executable=sys_executable, wininst=False):
@@ -1889,7 +1889,7 @@ class ScriptWriter(object):
return cls.get_header(script_text, executable)
@classmethod
- def _gen_args(cls, dist, header=None):
+ def get_args(cls, dist, header=None):
"""
Yield write_script() argument tuples for a distribution's entrypoints
"""
diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py
index 138e4ea2..1717e1cf 100755
--- a/setuptools/command/install_scripts.py
+++ b/setuptools/command/install_scripts.py
@@ -39,7 +39,7 @@ class install_scripts(orig.install_scripts):
executable = "python.exe"
writer = ScriptWriter.get_writer(force_windows=is_wininst)
header = ScriptWriter.get_header("", nt_quote_arg(executable))
- for args in writer._gen_args(dist, header):
+ for args in writer.get_args(dist, header):
self.write_script(*args)
def write_script(self, script_name, contents, mode="t", *ignored):
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 5d1068ea..f919ae20 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -83,7 +83,7 @@ class TestEasyInstallTest:
def test_get_script_args(self):
dist = FakeDist()
- args = next(ScriptWriter._gen_args(dist))
+ args = next(ScriptWriter.get_args(dist))
name, script = itertools.islice(args, 2)
assert script == WANTED