Spack packages now PEP8 compliant.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class Hdf(Package):
|
||||
"""HDF4 (also known as HDF) is a library and multi-object
|
||||
file format for storing and managing data between machines."""
|
||||
@@ -41,10 +42,9 @@ class Hdf(Package):
|
||||
depends_on("szip", when='+szip')
|
||||
depends_on("zlib")
|
||||
|
||||
|
||||
def url_for_version(self, version):
|
||||
return "https://www.hdfgroup.org/ftp/HDF/releases/HDF" + str(version) + "/src/hdf-" + str(version) + ".tar.gz"
|
||||
|
||||
return "https://www.hdfgroup.org/ftp/HDF/releases/HDF" + str(
|
||||
version) + "/src/hdf-" + str(version) + ".tar.gz"
|
||||
|
||||
def install(self, spec, prefix):
|
||||
config_args = [
|
||||
@@ -52,9 +52,9 @@ def install(self, spec, prefix):
|
||||
'--prefix=%s' % prefix,
|
||||
'--with-jpeg=%s' % spec['jpeg'].prefix,
|
||||
'--with-zlib=%s' % spec['zlib'].prefix,
|
||||
'--disable-netcdf', # must be disabled to build NetCDF with HDF4 support
|
||||
'--disable-netcdf', # must be disabled to build NetCDF with HDF4
|
||||
'--enable-fortran',
|
||||
'--disable-shared', # fortran and shared libraries are not compatible
|
||||
'--disable-shared', # fortran and shared libs are not compatible
|
||||
'--enable-static',
|
||||
'--enable-production'
|
||||
]
|
||||
|
Reference in New Issue
Block a user