From 2695971e550c4601a7243adb5907db3eb1900827 Mon Sep 17 00:00:00 2001 From: Anatoly Techtonik Date: Tue, 12 Apr 2011 12:15:11 +0000 Subject: setup.py: clean up distutils imports, as it's a standard module for Python 2.x --- src/setup.py | 25 ++++++++----------------- 1 file 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 -- cgit v0.12