summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Smillie <83249606+jamessmillie@users.noreply.github.com>2024-04-16 16:40:15 -0600
committerGitHub <noreply@github.com>2024-04-16 16:40:15 -0600
commit309d3aa1ecf163f219ee0fb5db4d0dd91b28560a (patch)
tree9d55b747b70d8bf32c2aac42970c84225ad5bd87
parentfeff11f914cc76a52835a9e1ca62fc904be36ce1 (diff)
downloadspack-309d3aa1ecf163f219ee0fb5db4d0dd91b28560a.tar.gz
spack-309d3aa1ecf163f219ee0fb5db4d0dd91b28560a.tar.bz2
spack-309d3aa1ecf163f219ee0fb5db4d0dd91b28560a.tar.xz
spack-309d3aa1ecf163f219ee0fb5db4d0dd91b28560a.zip
Python package: fix install of static libs on Windows (#43564)
-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)