diff options
author | xoviat <xoviat@users.noreply.github.com> | 2018-01-03 13:14:42 -0600 |
---|---|---|
committer | xoviat <xoviat@users.noreply.github.com> | 2018-01-03 13:14:42 -0600 |
commit | b77135184329a5e7b10c505b6eabe7b1d5a54d70 (patch) | |
tree | 22691eaa09cc222016143873852c21e14b4bcd05 | |
parent | 7f745255ee7ceb6b81ac7e79153ec64f7dfe3ff4 (diff) | |
download | numpy-b77135184329a5e7b10c505b6eabe7b1d5a54d70.tar.gz |
BUG: skip the extra-dll directory when there are no DLLS
When the gfortran functionality is not used,
we don't want to enable the __config__
functionality. This mistake was put in as an earlier
optimization but led to failures with conda.
-rw-r--r-- | numpy/distutils/command/build_ext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py index eca62fff4..f6bd81b6c 100644 --- a/numpy/distutils/command/build_ext.py +++ b/numpy/distutils/command/build_ext.py @@ -274,9 +274,9 @@ class build_ext (old_build_ext): shared_lib_dir = os.path.join(pkg_root, '.libs') if not self.inplace: shared_lib_dir = os.path.join(self.build_lib, shared_lib_dir) - if not os.path.isdir(shared_lib_dir): - os.makedirs(shared_lib_dir) for fn in os.listdir(self.extra_dll_dir): + if not os.path.isdir(shared_lib_dir): + os.makedirs(shared_lib_dir) if not fn.lower().endswith('.dll'): continue runtime_lib = os.path.join(self.extra_dll_dir, fn) |