diff options
author | tarek <none@none> | 2009-09-08 13:12:44 +0200 |
---|---|---|
committer | tarek <none@none> | 2009-09-08 13:12:44 +0200 |
commit | 89e9dfcd6d1d97f8439844a80e66c7c5a9dfaae3 (patch) | |
tree | f7a91a864a41080a94603b33062b8308a1bb60a2 /setup.py | |
parent | ae8f6226eacfce9c5519f562c750b9db7aa98bdf (diff) | |
download | external_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-x | setup.py | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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) |