Python package: fix install of static libs on Windows (#43564)

This commit is contained in:
James Smillie 2024-04-16 16:40:15 -06:00 committed by GitHub
parent feff11f914
commit 309d3aa1ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -545,7 +545,8 @@ def win_installer(self, prefix):
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)