[Numpy-svn] r6383 - branches/coremath/numpy/core

numpy-svn@scip... numpy-svn@scip...
Wed Feb 18 11:24:30 CST 2009


Author: cdavid
Date: 2009-02-18 11:24:24 -0600 (Wed, 18 Feb 2009)
New Revision: 6383

Modified:
   branches/coremath/numpy/core/setup.py
Log:
Remote unused code.

Modified: branches/coremath/numpy/core/setup.py
===================================================================
--- branches/coremath/numpy/core/setup.py	2009-02-18 17:24:03 UTC (rev 6382)
+++ branches/coremath/numpy/core/setup.py	2009-02-18 17:24:24 UTC (rev 6383)
@@ -285,20 +285,9 @@
             log.info('Generating %s',target)
             testcode = generate_numpyconfig_code(target)
 
-            from distutils import sysconfig
-            python_include = sysconfig.get_python_inc()
-            python_h = join(python_include, 'Python.h')
-            if not os.path.isfile(python_h):
-                raise SystemError,\
-                      "Non-existing %s. Perhaps you need to install"\
-                      " python-dev|python-devel." % (python_h)
-
-            config.numpy_include_dirs
             result = config_cmd.try_run(testcode,
-                                include_dirs = [python_include] + \
-                                                       config.numpy_include_dirs,
-                                        library_dirs = default_lib_dirs)
-
+                        include_dirs=config.numpy_include_dirs,
+                        library_dirs=default_lib_dirs)
             if not result:
                 raise SystemError,"Failed to generate numpy configuration. "\
                       "See previous error messages for more information."



More information about the Numpy-svn mailing list