aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorBenoit Pierre <benoit.pierre@gmail.com>2019-11-16 23:30:10 +0100
committerBenoit Pierre <benoit.pierre@gmail.com>2019-11-16 23:30:10 +0100
commita1e956b20f11f2d02f5a9855bda37660080184c9 (patch)
tree1f83221e605be161feff5bbea1e1c2fefef33011 /setup.py
parent68dbb703705cdd64e25261a6fcc1c0cc96bcf431 (diff)
downloadexternal_python_setuptools-a1e956b20f11f2d02f5a9855bda37660080184c9.tar.gz
external_python_setuptools-a1e956b20f11f2d02f5a9855bda37660080184c9.tar.bz2
external_python_setuptools-a1e956b20f11f2d02f5a9855bda37660080184c9.zip
Revert "drop easy_install script and associated documentation"
This reverts commit 6e1838a9fb5feb000ba9b6a3c37c8b39d7e872b3.
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(