Add patch

This commit is contained in:
Michael Droettboom 2018-08-23 12:06:14 -04:00
parent b66d698414
commit 30e82a2d86
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
diff --git a/numpy/distutils/command/install_clib.py b/numpy/distutils/command/install_clib.py
index 662aa00bd..6f51e22ca 100644
--- a/numpy/distutils/command/install_clib.py
+++ b/numpy/distutils/command/install_clib.py
@@ -20,6 +20,9 @@ class install_clib(Command):
def run (self):
build_clib_cmd = get_cmd("build_clib")
build_dir = build_clib_cmd.build_clib
+ if build_dir is None:
+ build_clib_cmd.finalize_options()
+ build_dir = build_clib_cmd.build_clib
# We need the compiler to get the library name -> filename association
if not build_clib_cmd.compiler: