summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/netcdf-c/package.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/var/spack/repos/builtin/packages/netcdf-c/package.py b/var/spack/repos/builtin/packages/netcdf-c/package.py
index 01f2acf425..e7ce1696a8 100644
--- a/var/spack/repos/builtin/packages/netcdf-c/package.py
+++ b/var/spack/repos/builtin/packages/netcdf-c/package.py
@@ -5,16 +5,6 @@
from spack import *
-import numbers
-
-
-def is_integral(x):
- """Any integer value"""
- try:
- return isinstance(int(x), numbers.Integral) and not isinstance(x, bool)
- except ValueError:
- return False
-
class NetcdfC(AutotoolsPackage):
"""NetCDF (network Common Data Form) is a set of software libraries and
@@ -76,22 +66,6 @@ class NetcdfC(AutotoolsPackage):
# variant('cdmremote', default=False,
# description='Enable CDM Remote support')
- # These variants control the number of dimensions (i.e. coordinates and
- # attributes) and variables (e.g. time, entity ID, number of coordinates)
- # that can be used in any particular NetCDF file.
- variant(
- 'maxdims',
- default=1024,
- description='Defines the maximum dimensions of NetCDF files.',
- values=is_integral
- )
- variant(
- 'maxvars',
- default=8192,
- description='Defines the maximum variables of NetCDF files.',
- values=is_integral
- )
-
# The patch for 4.7.0 touches configure.ac. See force_autoreconf below.
depends_on('autoconf', type='build', when='@4.7.0')
depends_on('automake', type='build', when='@4.7.0')
@@ -157,20 +131,6 @@ class NetcdfC(AutotoolsPackage):
# The patch for 4.7.0 touches configure.ac.
return self.spec.satisfies('@4.7.0')
- def patch(self):
- try:
- max_dims = int(self.spec.variants['maxdims'].value)
- max_vars = int(self.spec.variants['maxvars'].value)
- except (ValueError, TypeError):
- raise TypeError('NetCDF variant values max[dims|vars] must be '
- 'integer values.')
-
- ff = FileFilter(join_path('include', 'netcdf.h'))
- ff.filter(r'^(#define\s+NC_MAX_DIMS\s+)\d+(.*)$',
- r'\1{0}\2'.format(max_dims))
- ff.filter(r'^(#define\s+NC_MAX_VARS\s+)\d+(.*)$',
- r'\1{0}\2'.format(max_vars))
-
def configure_args(self):
cflags = []
cppflags = []