py-numpy: set openblas symbol_suffix in site.cfg (#37134)

* py-numpy: set openblas `symbol_suffix` in site.cfg

This writes the correct `symbol_suffix` variant value from the `openblas` in the spec into the `site.cfg`. Fixes #37133.

* py-numpy: fix style

* py-numpy: handle symbol_suffix == "none"
This commit is contained in:
Wouter Deconinck 2023-04-23 08:27:26 -05:00 committed by GitHub
parent 8143c086a0
commit a3354a547f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,6 +269,9 @@ def write_library_dirs(f, dirs):
f.write("libraries = {0}\n".format(lapackblas_lib_names))
write_library_dirs(f, lapackblas_lib_dirs)
f.write("include_dirs = {0}\n".format(lapackblas_header_dirs))
symbol_suffix = spec["openblas"].variants["symbol_suffix"].value
if symbol_suffix != "none":
f.write("symbol_suffix = {0}\n".format(symbol_suffix))
if "^libflame" in spec or "^amdlibflame" in spec:
f.write("[flame]\n")