py-numpy: Add the setting to use fujitsu-ssl2 (#22604)
* py-numpy: Add the setting to use fujitsu-ssl2 * py-numpy: Fix for comments
This commit is contained in:
parent
9d42381d38
commit
a63a3c1d3d
@ -254,6 +254,28 @@ def write_library_dirs(f, dirs):
|
||||
write_library_dirs(f, lapack_lib_dirs)
|
||||
f.write('include_dirs = {0}\n'.format(lapack_header_dirs))
|
||||
|
||||
if '^fujitsu-ssl2' in spec:
|
||||
if spec.satisfies('+blas'):
|
||||
f.write('[blas]\n')
|
||||
f.write('libraries = {0}\n'.format(spec['blas'].libs.names[0]))
|
||||
write_library_dirs(f, blas_lib_dirs)
|
||||
f.write('include_dirs = {0}\n'.format(blas_header_dirs))
|
||||
f.write(
|
||||
"extra_link_args = {0}\n".format(
|
||||
self.spec["blas"].libs.ld_flags
|
||||
)
|
||||
)
|
||||
if spec.satisfies('+lapack'):
|
||||
f.write('[lapack]\n')
|
||||
f.write('libraries = {0}\n'.format(spec['lapack'].libs.names[0]))
|
||||
write_library_dirs(f, lapack_lib_dirs)
|
||||
f.write('include_dirs = {0}\n'.format(lapack_header_dirs))
|
||||
f.write(
|
||||
"extra_link_args = {0}\n".format(
|
||||
self.spec["lapack"].libs.ld_flags
|
||||
)
|
||||
)
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
# Tell numpy which BLAS/LAPACK libraries we want to use.
|
||||
# https://github.com/numpy/numpy/pull/13132
|
||||
|
Loading…
Reference in New Issue
Block a user