aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2013-06-20 10:03:23 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2013-06-20 10:03:23 +0200
commit6d6dddc57e58e2387930040dfb56dd270408cb24 (patch)
tree0f7cd7c69cbf5071feb8e2a57ae08a3a78f91fa9 /setup.py
parente548b2ef8b4e81c1111ce9bec459a7e5e0a00bfc (diff)
downloadexternal_python_setuptools-6d6dddc57e58e2387930040dfb56dd270408cb24.tar.gz
external_python_setuptools-6d6dddc57e58e2387930040dfb56dd270408cb24.tar.bz2
external_python_setuptools-6d6dddc57e58e2387930040dfb56dd270408cb24.zip
Add support for SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT variable.
Support for old DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT variable is kept temporarily for backward compatibility. --HG-- extra : source : eb58c3fe7c0881cbb28de1c523f083ad8e7f427d
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 8986e949..fcf61e75 100755
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,8 @@ from setuptools.command.test import test as _test
scripts = []
console_scripts = ["easy_install = setuptools.command.easy_install:main"]
-if os.environ.get("DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT") is None:
+if os.environ.get("SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT") in (None, "", "0") and \
+ os.environ.get("DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT") in (None, "", "0"):
console_scripts.append("easy_install-%s = setuptools.command.easy_install:main" % sys.version[:3])
# specific command that is used to generate windows .exe files