summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-03-10 13:16:49 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-03-10 13:16:49 -0400
commitcfd4a052e4f899269435180f87a1615417513385 (patch)
tree4dc823e8c99065916442d766add3bfd3d4216826 /setup.py
parentc1767ecf01540e87f89451a1d5fe9ff2ce1266d9 (diff)
downloadpython-setuptools-git-cfd4a052e4f899269435180f87a1615417513385.tar.gz
Removed more distribute-specific, anti-setuptools code in setup.py
--HG-- branch : Setuptools-Distribute merge extra : source : 8efeb91ad396dc12014a3992fc458cdb1fc35206
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/setup.py b/setup.py
index 23146fcc..d21ff023 100755
--- a/setup.py
+++ b/setup.py
@@ -107,27 +107,16 @@ class test(_test):
f.close()
-# if we are installing Distribute using "python setup.py install"
-# we need to get setuptools out of the way
-def _easy_install_marker():
- return (len(sys.argv) == 5 and sys.argv[2] == 'bdist_egg' and
- sys.argv[3] == '--dist-dir' and 'egg-dist-tmp-' in sys.argv[-1])
-
def _buildout_marker():
command = os.environ.get('_')
if command:
return 'buildout' in os.path.basename(command)
def _being_installed():
- if os.environ.get('DONT_PATCH_SETUPTOOLS') is not None:
- return False
if _buildout_marker():
# Installed by buildout, don't mess with a global setuptools.
return False
- # easy_install marker
- if "--help" in sys.argv[1:] or "-h" in sys.argv[1:]: # Don't bother doing anything if they're just asking for help
- return False
- return 'install' in sys.argv[1:] or _easy_install_marker()
+ return 'install' in sys.argv[1:]
if _being_installed():
from ez_setup import _before_install