Skip to content

Commit

Permalink
BUG: skip the extra-dll directory when there are no DLLS
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
xoviat committed Jan 3, 2018
1 parent 7f74525 commit b771351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/distutils/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ def run(self):
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)
Expand Down

0 comments on commit b771351

Please sign in to comment.