diff options
author | Steven Knight <knight@baldmt.com> | 2002-05-09 19:41:07 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-05-09 19:41:07 (GMT) |
commit | 98902d34f726fe64d69a344d5e8c77765937b1a3 (patch) | |
tree | 84b5198aa499eb8724b1bf116bfdf27b63062e77 /src/setup.py | |
parent | 3155d672bfd0eeaf3089c21d002c114b99c1b777 (diff) | |
download | SCons-98902d34f726fe64d69a344d5e8c77765937b1a3.zip SCons-98902d34f726fe64d69a344d5e8c77765937b1a3.tar.gz SCons-98902d34f726fe64d69a344d5e8c77765937b1a3.tar.bz2 |
Add some help to setup.py if distutils isn't installed on the local system.
Diffstat (limited to 'src/setup.py')
-rw-r--r-- | src/setup.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/setup.py b/src/setup.py index b84f41a..8104e6d 100644 --- a/src/setup.py +++ b/src/setup.py @@ -33,8 +33,18 @@ if head: os.chdir(head) sys.argv[0] = tail -from distutils.core import setup -from distutils.command.install_lib import install_lib +try: + from distutils.core import setup + from distutils.command.install_lib import install_lib +except ImportError: + sys.stderr.write("""Could not import distutils. + +Building or installing SCons from this package requires that the Python +distutils be installed. See the README or README.txt file from this +package for instructions on where to find distutils for installation on +your system, or on how to install SCons from a different package. +""") + sys.exit(1) class my_install_lib(install_lib): def finalize_options(self): |