
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
23 lines
940 B
Python
23 lines
940 B
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 RRviennacl(RPackage):
|
|
"""'ViennaCL' C++ Header Files.
|
|
|
|
'ViennaCL' is a free open-source linear algebra library for computations on
|
|
many-core architectures (GPUs, MIC) and multi-core CPUs. The library is
|
|
written in C++ and supports 'CUDA', 'OpenCL', and 'OpenMP' (including
|
|
switches at runtime). I have placed these libraries in this package as a
|
|
more efficient distribution system for CRAN. The idea is that you can write
|
|
a package that depends on the 'ViennaCL' library and yet you do not need to
|
|
distribute a copy of this code with your package."""
|
|
|
|
cran = "RViennaCL"
|
|
|
|
version('1.7.1.8', sha256='adcc74537337582153d5b11d281e391e91a7f3afae116aa1b9a034ffd11b0252')
|