flake8 fixes
This commit is contained in:
parent
987fb137f9
commit
9ea4f80f15
@ -430,12 +430,14 @@ def fix_darwin_install_name(path):
|
|||||||
subprocess.Popen(["install_name_tool", "-change", dep, loc, lib], stdout=subprocess.PIPE).communicate()[0] # NOQA: ignore=E501
|
subprocess.Popen(["install_name_tool", "-change", dep, loc, lib], stdout=subprocess.PIPE).communicate()[0] # NOQA: ignore=E501
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
def to_lib_name(library):
|
def to_lib_name(library):
|
||||||
"""Transforms a path to the library /path/to/lib<name>.xyz into <name>
|
"""Transforms a path to the library /path/to/lib<name>.xyz into <name>
|
||||||
"""
|
"""
|
||||||
# Assume libXYZ.suffix
|
# Assume libXYZ.suffix
|
||||||
return os.path.basename(library)[3:].split(".")[0]
|
return os.path.basename(library)[3:].split(".")[0]
|
||||||
|
|
||||||
|
|
||||||
def to_link_flags(library):
|
def to_link_flags(library):
|
||||||
"""Transforms a path to a <library> into linking flags -L<dir> -l<name>.
|
"""Transforms a path to a <library> into linking flags -L<dir> -l<name>.
|
||||||
|
|
||||||
|
@ -23,7 +23,9 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
import os, sys
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
class Hypre(Package):
|
class Hypre(Package):
|
||||||
"""Hypre is a library of high performance preconditioners that
|
"""Hypre is a library of high performance preconditioners that
|
||||||
@ -37,7 +39,7 @@ class Hypre(Package):
|
|||||||
version('2.10.0b', '768be38793a35bb5d055905b271f5b8e')
|
version('2.10.0b', '768be38793a35bb5d055905b271f5b8e')
|
||||||
|
|
||||||
# hypre does not know how to build shared libraries on Darwin
|
# hypre does not know how to build shared libraries on Darwin
|
||||||
variant('shared', default=sys.platform!='darwin', description="Build shared library version (disables static library)")
|
variant('shared', default=(sys.platform != 'darwin'), description="Build shared library version (disables static library)")
|
||||||
# SuperluDist have conflicting headers with those in Hypre
|
# SuperluDist have conflicting headers with those in Hypre
|
||||||
variant('internal-superlu', default=True, description="Use internal Superlu routines")
|
variant('internal-superlu', default=True, description="Use internal Superlu routines")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user