
Explicitly import package utilities in all packages, and corresponding fallout. This includes: * rename `spack.package` to `spack.package_base` * rename `spack.pkgkit` to `spack.package` * update all packages in builtin, builtin_mock and tutorials to include `from spack.package import *` * update spack style * ensure packages include the import * automatically add the new import and remove any/all imports of `spack` and `spack.pkgkit` from packages when using `--fix` * add support for type-checking packages with mypy when SPACK_MYPY_CHECK_PACKAGES is set in the environment * fix all type checking errors in packages in spack upstream * update spack create to include the new imports * update spack repo to inject the new import, injection persists to allow for a deprecation period Original message below: As requested @adamjstewart, update all packages to use pkgkit. I ended up using isort to do this, so repro is easy: ```console $ isort -a 'from spack.pkgkit import *' --rm 'spack' ./var/spack/repos/builtin/packages/*/package.py $ spack style --fix ``` There were several line spacing fixups caused either by space manipulation in isort or by packages that haven't been touched since we added requirements, but there are no functional changes in here. * [x] add config to isort to make sure this is maintained going forward
38 lines
1.7 KiB
Python
38 lines
1.7 KiB
Python
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class RHdf5r(RPackage):
|
|
"""Interface to the 'HDF5' Binary Data Format.
|
|
|
|
'HDF5' is a data model, library and file format for storing and managing
|
|
large amounts of data. This package provides a nearly feature complete,
|
|
object oriented wrapper for the 'HDF5' API
|
|
<https://support.hdfgroup.org/HDF5/doc/RM/RM_H5Front.html> using R6
|
|
classes. Additionally, functionality is added so that 'HDF5' objects behave
|
|
very similar to their corresponding R counterparts."""
|
|
|
|
cran = "hdf5r"
|
|
|
|
version('1.3.5', sha256='87b75173ab226a9fbaa5b28289349f3c56b638629560a172994b8f9323c1622f')
|
|
version('1.3.3', sha256='a0f83cbf21563e81dbd1a1bd8379623ed0c9c4df4e094c75013abfd7a5271545')
|
|
version('1.2.0', sha256='58813e334fd3f9040038345a7186e5cb02090898883ac192477a76a5b8b4fe81')
|
|
|
|
depends_on('r@3.2.2:', type=('build', 'run'))
|
|
depends_on('r-r6', type=('build', 'run'))
|
|
depends_on('r-bit64', type=('build', 'run'))
|
|
depends_on('hdf5@1.8.13:+hl')
|
|
depends_on('pkgconfig', type='build')
|
|
|
|
# The configure script in the package uses the hdf5 h5cc compiler wrapper
|
|
# in the PATH to configure hdf5. That works fine if hdf5 was built with
|
|
# autotools but the hdf5 package in Spack is built with cmake. The compiler
|
|
# wrapper built with cmake does not support the '-show' or '-showconfig'
|
|
# flags. The following patch replaces those commands in the configure
|
|
# script with pkg-config commands.
|
|
patch('configure.patch')
|