summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_src.py
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2009-03-02 21:11:31 +0000
committerStefan van der Walt <stefan@sun.ac.za>2009-03-02 21:11:31 +0000
commit7170d0a8b85ee38da227c2db26f470750b6e1509 (patch)
tree0b11d022213b76cfcc16e7f10184c3727b7c8dea /numpy/distutils/command/build_src.py
parent553a30079c37ebecf8a37b9ee1fbf219d1d09053 (diff)
downloadnumpy-7170d0a8b85ee38da227c2db26f470750b6e1509.tar.gz
Python 3000 fixes for 2to3 [patch by James Watson].
Diffstat (limited to 'numpy/distutils/command/build_src.py')
-rw-r--r--numpy/distutils/command/build_src.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/distutils/command/build_src.py b/numpy/distutils/command/build_src.py
index f0d0a3b57..4ba3f0a9a 100644
--- a/numpy/distutils/command/build_src.py
+++ b/numpy/distutils/command/build_src.py
@@ -465,7 +465,8 @@ class build_src(build_ext.build_ext):
if not (f2py_sources or f_sources):
return new_sources
- map(self.mkpath, target_dirs)
+ for d in target_dirs:
+ self.mkpath(d)
f2py_options = extension.f2py_options + self.f2py_opts
@@ -632,7 +633,9 @@ class build_src(build_ext.build_ext):
if skip_swig:
return new_sources + py_files
- map(self.mkpath, target_dirs)
+ for d in target_dirs:
+ self.mkpath(d)
+
swig = self.swig or self.find_swig()
swig_cmd = [swig, "-python"]
if is_cpp: