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

numpy-svn@scip... numpy-svn@scip...
Wed Feb 18 11:23:49 CST 2009


Author: cdavid
Date: 2009-02-18 11:23:42 -0600 (Wed, 18 Feb 2009)
New Revision: 6381

Modified:
   branches/coremath/numpy/core/setup.py
Log:
Avoid using dir to avoid shadowing dir builtin.

Modified: branches/coremath/numpy/core/setup.py
===================================================================
--- branches/coremath/numpy/core/setup.py	2009-02-18 17:23:16 UTC (rev 6380)
+++ branches/coremath/numpy/core/setup.py	2009-02-18 17:23:42 UTC (rev 6381)
@@ -171,9 +171,9 @@
 
     def generate_config_h(ext, build_dir):
         target = join(build_dir,header_dir,'config.h')
-        dir = os.path.dirname(target)
-        if not os.path.exists(dir):
-            os.makedirs(dir)
+        d = os.path.dirname(target)
+        if not os.path.exists(d):
+            os.makedirs(d)
         if newer(__file__,target):
             config_cmd = config.get_config_cmd()
             log.info('Generating %s',target)
@@ -270,9 +270,9 @@
     def generate_numpyconfig_h(ext, build_dir):
         """Depends on config.h: generate_config_h has to be called before !"""
         target = join(build_dir,header_dir,'numpyconfig.h')
-        dir = os.path.dirname(target)
-        if not os.path.exists(dir):
-            os.makedirs(dir)
+        d = os.path.dirname(target)
+        if not os.path.exists(d):
+            os.makedirs(d)
         if newer(__file__,target):
             config_cmd = config.get_config_cmd()
             log.info('Generating %s',target)



More information about the Numpy-svn mailing list