aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authortarek@MacZiade-2.local <tarek@MacZiade-2.local>2009-08-04 01:51:24 +0200
committertarek@MacZiade-2.local <tarek@MacZiade-2.local>2009-08-04 01:51:24 +0200
commitb934c406ef9371ad36a23e608dcd752b8c311946 (patch)
treebd286a65bc2f012f2709e6d956e155d2a4bcd39f /setup.py
parent8d37ba24ed17b6531c86c42e22d178e1e50a22a2 (diff)
downloadexternal_python_setuptools-b934c406ef9371ad36a23e608dcd752b8c311946.tar.gz
external_python_setuptools-b934c406ef9371ad36a23e608dcd752b8c311946.tar.bz2
external_python_setuptools-b934c406ef9371ad36a23e608dcd752b8c311946.zip
added a post install function that ensures setuptools is faked even if not previously present
--HG-- branch : distribute extra : rebase_source : 3254ab2ca1f771dd24a6d93a28ca87ca375fe65b
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index be15f6b4..51e99a83 100755
--- a/setup.py
+++ b/setup.py
@@ -16,10 +16,10 @@ 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:]:
- from bootstrap import fake_setuptools
- fake_setuptools()
+ from bootstrap import before_install
+ before_install()
-setup(
+dist = setup(
name="distribute",
version=VERSION,
description="Download, build, install, upgrade, and uninstall Python "
@@ -99,3 +99,8 @@ setup(
Topic :: Utilities""".splitlines() if f.strip()],
scripts = scripts,
)
+if 'install' in sys.argv[1:]:
+ from bootstrap import after_install
+ after_install(dist)
+
+