From b934c406ef9371ad36a23e608dcd752b8c311946 Mon Sep 17 00:00:00 2001 From: "tarek@MacZiade-2.local" Date: Tue, 4 Aug 2009 01:51:24 +0200 Subject: added a post install function that ensures setuptools is faked even if not previously present --HG-- branch : distribute extra : rebase_source : 3254ab2ca1f771dd24a6d93a28ca87ca375fe65b --- setup.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'setup.py') 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) + + -- cgit v1.2.1