summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Techtonik <techtonik@gmail.com>2011-04-12 12:15:11 (GMT)
committerAnatoly Techtonik <techtonik@gmail.com>2011-04-12 12:15:11 (GMT)
commit2695971e550c4601a7243adb5907db3eb1900827 (patch)
treeb2babf81ac800d2d4bcbb44c9c820a647f8d0ab4
parent2d738d1672cdbb497ace9f50dcaed8b9632508e4 (diff)
downloadSCons-2695971e550c4601a7243adb5907db3eb1900827.zip
SCons-2695971e550c4601a7243adb5907db3eb1900827.tar.gz
SCons-2695971e550c4601a7243adb5907db3eb1900827.tar.bz2
setup.py: clean up distutils imports, as it's a standard module for Python 2.x
-rw-r--r--src/setup.py25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/setup.py b/src/setup.py
index 4cf32c4..c745820 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -51,23 +51,14 @@ if not sys.platform == 'win32':
else:
is_win32 = 1
-try:
- import distutils
- import distutils.core
- import distutils.command.install
- import distutils.command.install_data
- import distutils.command.install_lib
- import distutils.command.install_scripts
- import distutils.command.build_scripts
-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)
+
+import distutils
+import distutils.core
+import distutils.command.install
+import distutils.command.install_data
+import distutils.command.install_lib
+import distutils.command.install_scripts
+import distutils.command.build_scripts
_install = distutils.command.install.install
_install_data = distutils.command.install_data.install_data