aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authortarek <none@none>2009-09-08 13:12:44 +0200
committertarek <none@none>2009-09-08 13:12:44 +0200
commit89e9dfcd6d1d97f8439844a80e66c7c5a9dfaae3 (patch)
treef7a91a864a41080a94603b33062b8308a1bb60a2 /setup.py
parentae8f6226eacfce9c5519f562c750b9db7aa98bdf (diff)
downloadexternal_python_setuptools-89e9dfcd6d1d97f8439844a80e66c7c5a9dfaae3.tar.gz
external_python_setuptools-89e9dfcd6d1d97f8439844a80e66c7c5a9dfaae3.tar.bz2
external_python_setuptools-89e9dfcd6d1d97f8439844a80e66c7c5a9dfaae3.zip
easy_install Distribute now calls the setuptools fake machinery fixes #40
--HG-- branch : distribute extra : rebase_source : abcd8e82c2de583da133b160ba9e31248d5ae264
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 10502748..59a3bfa2 100755
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,14 @@ scripts = []
# if we are installing Distribute using "python setup.py install"
# we need to get setuptools out of the way
-if 'install' 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:]
+
+if _being_installed():
from distribute_setup import before_install
before_install()
@@ -100,7 +107,8 @@ dist = setup(
Topic :: Utilities""".splitlines() if f.strip()],
scripts = scripts,
)
-if 'install' in sys.argv[1:]:
+
+if _being_installed():
from distribute_setup import after_install
after_install(dist)