aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-09-13 14:28:34 +0200
committerMartin v. Löwis <martin@v.loewis.de>2009-09-13 14:28:34 +0200
commit3c6ebb2ab608930ea3d1e54476344a990526e64a (patch)
treeedfddb93275be90c0e2effd551e3669bfbcd1347 /setup.py
parent5bf298f0e8b30f236b76997c66eee38de798f710 (diff)
parent28c9b94a4da7a469bb726309bce461dd0843e744 (diff)
downloadexternal_python_setuptools-3c6ebb2ab608930ea3d1e54476344a990526e64a.tar.gz
external_python_setuptools-3c6ebb2ab608930ea3d1e54476344a990526e64a.tar.bz2
external_python_setuptools-3c6ebb2ab608930ea3d1e54476344a990526e64a.zip
Merge upstream changes.
--HG-- branch : distribute extra : rebase_source : 4f43f59bf581c692bfbe4b45a8567b089fa0173a
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index d91ea069..b7fb986b 100755
--- a/setup.py
+++ b/setup.py
@@ -44,12 +44,13 @@ scripts = []
# 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 _being_installed():
# easy_install marker
- if (len(sys.argv) == 5 and sys.argv[2] == 'bdist_egg' and
- sys.argv[3] == '--dist-dir'):
- return True
- return 'install' in sys.argv[1:]
+ return 'install' in sys.argv[1:] or _easy_install_marker()
if _being_installed():
from distribute_setup import before_install