Suite sparse compilation fix for 5.7.0 and 5.7.1 (#15289)

Suite-sparse 5.7.0 and 5.7.1 need separate make and make install run to be able to compile, too
This commit is contained in:
Mathias Anselmann 2020-03-03 12:06:58 +01:00 committed by GitHub
parent dc4e43682c
commit 518d1439c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,8 +131,7 @@ def install(self, spec, prefix):
# In those SuiteSparse versions calling "make install" in one go is
# not possible, mainly because of GraphBLAS. Thus compile first and
# install in a second run.
if (self.spec.version >= Version('5.4.0') and
self.spec.version <= Version('5.6.0')):
if '@5.4.0:' in self.spec:
make('default', *make_args)
make('install', *make_args)