aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-11-23 14:16:53 -0500
committerGitHub <noreply@github.com>2019-11-23 14:16:53 -0500
commite44d9bcd4288bed098f09b24c3667ef02621699d (patch)
tree9d47f5b97523580de6fa2dc449f6ca630226503b /setup.py
parente31c9f0c37e545022f5c0cdacd28ab4432b1a6df (diff)
parent4188aba5265e9b7145b1c5ed10c8e0ae769f70b4 (diff)
downloadexternal_python_setuptools-e44d9bcd4288bed098f09b24c3667ef02621699d.tar.gz
external_python_setuptools-e44d9bcd4288bed098f09b24c3667ef02621699d.tar.bz2
external_python_setuptools-e44d9bcd4288bed098f09b24c3667ef02621699d.zip
Merge pull request #1909 from benoit-pierre/resurrect_easy_install_script
Revert "drop easy_install script and associated documentation"
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 59efc237..d97895fc 100755
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,22 @@ def read_commands():
return command_ns['__all__']
+def _gen_console_scripts():
+ yield "easy_install = setuptools.command.easy_install:main"
+
+ # Gentoo distributions manage the python-version-specific scripts
+ # themselves, so those platforms define an environment variable to
+ # suppress the creation of the version-specific scripts.
+ var_names = (
+ 'SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT',
+ 'DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT',
+ )
+ if any(os.environ.get(var) not in (None, "", "0") for var in var_names):
+ return
+ tmpl = "easy_install-{shortver} = setuptools.command.easy_install:main"
+ yield tmpl.format(shortver='{}.{}'.format(*sys.version_info))
+
+
package_data = dict(
setuptools=['script (dev).tmpl', 'script.tmpl', 'site-patch.py'],
)
@@ -109,6 +125,9 @@ setup_params = dict(
"depends.txt = setuptools.command.egg_info:warn_depends_obsolete",
"dependency_links.txt = setuptools.command.egg_info:overwrite_arg",
],
+ "console_scripts": list(_gen_console_scripts()),
+ "setuptools.installation":
+ ['eggsecutable = setuptools.command.easy_install:bootstrap'],
},
dependency_links=[
pypi_link(