[Numpy-svn] r4132 - trunk/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Tue Sep 25 09:56:36 CDT 2007


Author: cookedm
Date: 2007-09-25 09:56:33 -0500 (Tue, 25 Sep 2007)
New Revision: 4132

Modified:
   trunk/numpy/distutils/__init__.py
Log:
Back out pearu's r4101 that added a warning about importing distutils before numpy.distutils. This warning triggered when setuptools was imported first.


Modified: trunk/numpy/distutils/__init__.py
===================================================================
--- trunk/numpy/distutils/__init__.py	2007-09-25 11:32:19 UTC (rev 4131)
+++ trunk/numpy/distutils/__init__.py	2007-09-25 14:56:33 UTC (rev 4132)
@@ -1,22 +1,6 @@
 
 from __version__ import version as __version__
 
-# Check that distutils has not been imported before.
-import sys
-if 'distutils' in sys.modules:
-    sys.stderr.write('''\
-********************************************************
-WARNING!WARNING!WARNING!WARNING!WARNING!WARNING!WARNING!
-
-distutils has been imported before numpy.distutils
-and now numpy.distutils cannot apply all of its
-customizations to distutils effectively.
-
-To avoid this warning, make sure that numpy.distutils
-is imported *before* distutils.
-********************************************************
-''')
-
 # Must import local ccompiler ASAP in order to get
 # customized CCompiler.spawn effective.
 import ccompiler



More information about the Numpy-svn mailing list