summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/python/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index 76d97525c5..feae7fd8d0 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -545,7 +545,8 @@ class Python(Package):
copy(lib, prefix)
else:
copy(lib, prefix.DLLs)
- static_libraries = glob.glob("%s\\*.lib")
+ static_libraries = glob.glob("%s\\*.lib" % build_root)
+ os.makedirs(prefix.libs, exist_ok=True)
for lib in static_libraries:
copy(lib, prefix.libs)