repo_name
stringlengths 6
97
| path
stringlengths 3
341
| text
stringlengths 8
1.02M
|
|---|---|---|
player1537-forks/spack
|
var/spack/repos/builtin/packages/chatterbug/package.py
|
<gh_stars>10-100
# 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 import *
class Chatterbug(MakefilePackage):
"""A suite of communication-intensive proxy applications that mimic
commonly found communication patterns in HPC codes. These codes can be
used as synthetic codes for benchmarking, or for trace generation using
Score-P / OTF2.
"""
tags = ['proxy-app']
homepage = "https://chatterbug.readthedocs.io"
git = "https://github.com/LLNL/chatterbug.git"
version('develop', branch='master')
version('1.0', tag='v1.0')
variant('scorep', default=False, description='Build with Score-P tracing')
depends_on('mpi')
depends_on('scorep', when='+scorep')
@property
def build_targets(self):
targets = []
targets.append('MPICXX = {0}'.format(self.spec['mpi'].mpicxx))
return targets
def build(self, spec, prefix):
if "+scorep" in spec:
make('WITH_OTF2=YES')
else:
make()
def install(self, spec, prefix):
if "+scorep" in spec:
make('WITH_OTF2=YES', 'PREFIX=' + spec.prefix, 'install')
else:
make('PREFIX=' + spec.prefix, 'install')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/argon2/package.py
|
<gh_stars>10-100
# 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 import *
class Argon2(MakefilePackage):
"""Argon2 is a password-hashing function that summarizes the state
of the art in the design of memory-hard functions and can be used
to hash passwords for credential storage, key derivation, or other
applications."""
homepage = "https://password-hashing.net/"
url = "https://github.com/P-H-C/phc-winner-argon2/archive/20190702.tar.gz"
version('20190702', sha256='daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c')
version('20171227', sha256='eaea0172c1f4ee4550d1b6c9ce01aab8d1ab66b4207776aa67991eb5872fdcd8')
version('20161029', sha256='fe0049728b946b58b94cc6db89b34e2d050c62325d16316a534d2bedd78cd5e7')
def install(self, spec, prefix):
make('PREFIX={0}'.format(prefix), 'install', 'LIBRARY_REL=lib')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-fastdigest/package.py
|
<filename>var/spack/repos/builtin/packages/r-fastdigest/package.py
# 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 import *
class RFastdigest(RPackage):
"""Fast, Low Memory-Footprint Digests of R Objects.
Provides an R interface to Bob Jenkin's streaming, non-cryptographic
'SpookyHash' hash algorithm for use in digest-based comparisons of R
objects. 'fastdigest' plugs directly into R's internal serialization
machinery, allowing digests of all R objects the serialize() function
supports, including reference-style objects via custom hooks. Speed is high
and scales linearly by object size; memory usage is constant and
negligible."""
cran = "fastdigest"
maintainers = ['dorton21']
version('0.6-3', sha256='62a04aa39f751cf9bb7ff43cadb3c1a8d2270d7f3e8550a2d6ca9e1d8ca09a09')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/formetis/package.py
|
<gh_stars>10-100
# 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 import *
class Formetis(CMakePackage):
"""Automated Fortran bindings to METIS and ParMETIS."""
homepage = "https://github.com/swig-fortran/formetis"
url = "https://github.com/swig-fortran/formetis/archive/refs/tags/v0.0.1.tar.gz"
maintainers = ['sethrj']
version('0.0.2', sha256='0067c03ca822f4a3955751acb470f21eed489256e2ec5ff24741eb2b638592f1')
variant('mpi', default=False, description='Enable ParMETIS support')
variant('shared', default=True, description='Build shared libraries')
variant('swig', default=False,
description='Regenerate source files using SWIG')
depends_on('metis@5:')
depends_on('parmetis', when='+mpi')
depends_on('mpi', when='+mpi')
depends_on('swig@4.0.2-fortran', when='+swig')
# Using non-standard int sizes requires regenerating the C/Fortran
# interface files with SWIG
conflicts('~swig', when='^metis+int64')
conflicts('~swig', when='^metis+real64')
def cmake_args(self):
from_variant = self.define_from_variant
args = [
from_variant('FORMETIS_USE_MPI', 'mpi'),
from_variant('BUILD_SHARED_LIBS', 'shared'),
from_variant('FORMETIS_USE_SWIG', 'swig'),
self.define('FORMETIS_BUILD_EXAMPLES', False),
]
return args
examples_src_dir = 'example'
@run_after('install')
def setup_smoke_tests(self):
"""Copy the example source files after the package is installed to an
install test subdirectory for use during `spack test run`."""
self.cache_extra_test_sources([self.examples_src_dir])
@property
def cached_tests_work_dir(self):
"""The working directory for cached test sources."""
return join_path(self.test_suite.current_test_cache_dir,
self.examples_src_dir)
def test(self):
"""Perform stand-alone/smoke tests on the installed package."""
cmake_args = [
self.define('CMAKE_PREFIX_PATH', self.prefix),
self.define('CMAKE_Fortran_COMPILER', self.compiler.fc),
self.define('METIS_ROOT', self.spec['metis'].prefix),
]
if '+mpi' in self.spec:
cmake_args.append(
self.define('ParMETIS_ROOT', self.spec['parmetis'].prefix))
cmake_args.append(self.cached_tests_work_dir)
self.run_test("cmake", cmake_args,
purpose="test: calling cmake",
work_dir=self.cached_tests_work_dir)
self.run_test("make", [],
purpose="test: building the tests",
work_dir=self.cached_tests_work_dir)
self.run_test('metis', [], [],
purpose="test: checking the installation",
installed=False,
work_dir=self.cached_tests_work_dir)
|
player1537-forks/spack
|
lib/spack/external/attr/converters.py
|
<reponame>player1537-forks/spack<filename>lib/spack/external/attr/converters.py
"""
Commonly useful converters.
"""
from __future__ import absolute_import, division, print_function
from ._compat import PY2
from ._make import NOTHING, Factory, pipe
if not PY2:
import inspect
import typing
__all__ = [
"pipe",
"optional",
"default_if_none",
]
def optional(converter):
"""
A converter that allows an attribute to be optional. An optional attribute
is one which can be set to ``None``.
Type annotations will be inferred from the wrapped converter's, if it
has any.
:param callable converter: the converter that is used for non-``None``
values.
.. versionadded:: 17.1.0
"""
def optional_converter(val):
if val is None:
return None
return converter(val)
if not PY2:
sig = None
try:
sig = inspect.signature(converter)
except (ValueError, TypeError): # inspect failed
pass
if sig:
params = list(sig.parameters.values())
if params and params[0].annotation is not inspect.Parameter.empty:
optional_converter.__annotations__["val"] = typing.Optional[
params[0].annotation
]
if sig.return_annotation is not inspect.Signature.empty:
optional_converter.__annotations__["return"] = typing.Optional[
sig.return_annotation
]
return optional_converter
def default_if_none(default=NOTHING, factory=None):
"""
A converter that allows to replace ``None`` values by *default* or the
result of *factory*.
:param default: Value to be used if ``None`` is passed. Passing an instance
of `attr.Factory` is supported, however the ``takes_self`` option
is *not*.
:param callable factory: A callable that takes no parameters whose result
is used if ``None`` is passed.
:raises TypeError: If **neither** *default* or *factory* is passed.
:raises TypeError: If **both** *default* and *factory* are passed.
:raises ValueError: If an instance of `attr.Factory` is passed with
``takes_self=True``.
.. versionadded:: 18.2.0
"""
if default is NOTHING and factory is None:
raise TypeError("Must pass either `default` or `factory`.")
if default is not NOTHING and factory is not None:
raise TypeError(
"Must pass either `default` or `factory` but not both."
)
if factory is not None:
default = Factory(factory)
if isinstance(default, Factory):
if default.takes_self:
raise ValueError(
"`takes_self` is not supported by default_if_none."
)
def default_if_none_converter(val):
if val is not None:
return val
return default.factory()
else:
def default_if_none_converter(val):
if val is not None:
return val
return default
return default_if_none_converter
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-nitransforms/package.py
|
# 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 import *
class PyNitransforms(PythonPackage):
"""NiTransforms -- Neuroimaging spatial transforms in Python."""
homepage = "https://github.com/poldracklab/nitransforms"
pypi = "nitransforms/nitransforms-21.0.0.tar.gz"
version('21.0.0', sha256='9e326a1ea5d5c6577219f99d33c1a680a760213e243182f370ce7e6b2476103a')
version('20.0.0rc5', sha256='650eb12155f01fae099298445cc33721b9935d9c880f54ec486ec4adf3bffe6e')
depends_on('python@3.7:', type=('build', 'run'))
depends_on('py-setuptools@42.0:', type='build')
depends_on('py-setuptools-scm+toml@3.4:', type='build')
depends_on('py-setuptools-scm-git-archive', type='build')
depends_on('py-toml', type='build')
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-scipy', type=('build', 'run'))
depends_on('py-nibabel@3.0:', type=('build', 'run'))
depends_on('py-h5py', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-cvxopt/package.py
|
# 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 import *
class PyCvxopt(PythonPackage):
"""CVXOPT is a free software package for convex optimization based on the
Python programming language."""
homepage = "https://cvxopt.org/"
pypi = "cvxopt/cvxopt-1.1.9.tar.gz"
version('1.2.5', sha256='94ec8c36bd6628a11de9014346692daeeef99b3b7bae28cef30c7490bbcb2d72')
version('1.1.9', sha256='8f157e7397158812cabd340b68546f1baa55a486ed0aad8bc26877593dc2983d')
variant('gsl', default=False, description='Use GSL random number generators for constructing random matrices')
variant('fftw', default=False, description='Install the cvxopt.fftw interface to FFTW')
variant('glpk', default=False, description='Enable support for the linear programming solver GLPK')
# variant('mosek', default=False, description='Enable support for the linear, second-order cone, and quadratic programming solvers in MOSEK') # noqa
variant('dsdp', default=False, description='Enable support for the semidefinite programming solver DSDP')
# Required dependencies
depends_on('python@2.7:', type=('build', 'link', 'run'))
depends_on('python@2.7:3.7', type=('build', 'link', 'run'), when='@:1.1.9')
depends_on('py-setuptools', type='build')
depends_on('blas')
depends_on('lapack')
depends_on('suite-sparse')
# Optional dependencies
depends_on('gsl', when='+gsl')
depends_on('fftw', when='+fftw')
depends_on('glpk', when='+glpk')
# depends_on('mosek@8:', when='+mosek')
depends_on('dsdp@5.8:', when='+dsdp')
def setup_build_environment(self, env):
spec = self.spec
# BLAS/LAPACK Libraries
# Default names of BLAS and LAPACK libraries
env.set('CVXOPT_BLAS_LIB', ';'.join(spec['blas'].libs.names))
env.set('CVXOPT_LAPACK_LIB', ';'.join(spec['lapack'].libs.names))
# Directory containing BLAS and LAPACK libraries
env.set('CVXOPT_BLAS_LIB_DIR', spec['blas'].libs.directories[0])
# SuiteSparse Libraries
# Directory containing SuiteSparse libraries
env.set('CVXOPT_SUITESPARSE_LIB_DIR',
spec['suite-sparse'].libs.directories[0])
# Directory containing SuiteSparse header files
env.set('CVXOPT_SUITESPARSE_INC_DIR',
spec['suite-sparse'].headers.directories[0])
# GSL Libraries
if '+gsl' in spec:
env.set('CVXOPT_BUILD_GSL', 1)
# Directory containing libgsl
env.set('CVXOPT_GSL_LIB_DIR', spec['gsl'].libs.directories[0])
# Directory containing the GSL header files
env.set('CVXOPT_GSL_INC_DIR', spec['gsl'].headers.directories[0])
else:
env.set('CVXOPT_BUILD_GSL', 0)
# FFTW Libraries
if '+fftw' in spec:
env.set('CVXOPT_BUILD_FFTW', 1)
# Directory containing libfftw3
env.set('CVXOPT_FFTW_LIB_DIR', spec['fftw'].libs.directories[0])
# Directory containing fftw.h
env.set('CVXOPT_FFTW_INC_DIR', spec['fftw'].headers.directories[0])
else:
env.set('CVXOPT_BUILD_FFTW', 0)
# GLPK Libraries
if '+glpk' in spec:
env.set('CVXOPT_BUILD_GLPK', 1)
# Directory containing libglpk
env.set('CVXOPT_GLPK_LIB_DIR', spec['glpk'].libs.directories[0])
# Directory containing glpk.h
env.set('CVXOPT_GLPK_INC_DIR', spec['glpk'].headers.directories[0])
else:
env.set('CVXOPT_BUILD_GLPK', 0)
# DSDP Libraries
if '+dsdp' in spec:
env.set('CVXOPT_BUILD_DSDP', 1)
# Directory containing libdsdp
env.set('CVXOPT_DSDP_LIB_DIR', spec['dsdp'].libs.directories[0])
# Directory containing dsdp5.h
env.set('CVXOPT_DSDP_INC_DIR', spec['dsdp'].headers.directories[0])
@run_after('install')
@on_package_attributes(run_tests=True)
def install_test(self):
"""Test that the installation was successful."""
python('-m', 'unittest', 'discover', '-s', 'tests')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-rainbow/package.py
|
# 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)
class RRainbow(RPackage):
"""Bagplots, Boxplots and Rainbow Plots for Functional Data.
Visualizing functional data and identifying functional outliers."""
cran = 'rainbow'
version('3.6', sha256='63d1246f88a498f3db0321b46a552163631b288a25b24400935db41326636e87')
depends_on('r@3.4.0:', type=('build', 'run'))
depends_on('r-pcapp', type=('build', 'run'))
depends_on('r-mass', type=('build', 'run'))
depends_on('r-hdrcde', type=('build', 'run'))
depends_on('r-cluster', type=('build', 'run'))
depends_on('r-colorspace', type=('build', 'run'))
depends_on('r-ks', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/libtirpc/package.py
|
# 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 import *
class Libtirpc(AutotoolsPackage):
"""Libtirpc is a port of Suns Transport-Independent RPC library to Linux.
"""
homepage = "https://sourceforge.net/projects/libtirpc/"
url = "https://sourceforge.net/projects/libtirpc/files/libtirpc/1.1.4/libtirpc-1.1.4.tar.bz2/download"
version('1.2.6', sha256='4278e9a5181d5af9cd7885322fdecebc444f9a3da87c526e7d47f7a12a37d1cc')
version('1.1.4', sha256='2ca529f02292e10c158562295a1ffd95d2ce8af97820e3534fe1b0e3aec7561d')
depends_on('krb5')
provides('rpc')
# Remove -pipe flag to compiler in Makefiles when using nvhpc
patch('libtirpc-remove-pipe-flag-for-nvhpc.patch', when='%nvhpc')
# FIXME: build error on macOS
# auth_none.c:81:9: error: unknown type name 'mutex_t'
conflicts('platform=darwin', msg='Does not build on macOS')
@property
def headers(self):
hdrs = find_all_headers(self.prefix.include)
# libtirpc puts headers under include/tirpc, but some codes (e.g. hdf)
# do not expect a tirpc component. Since some might, we return
# both prefix.include.tirpc and prefix.include as header paths
if hdrs:
hdrs.directories = [self.prefix.include.tirpc, self.prefix.include]
return hdrs or None
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/libcudf/package.py
|
<gh_stars>1-10
# 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 import *
class Libcudf(CMakePackage):
"""Built based on the Apache Arrow columnar memory format,
cuDF is a GPU DataFrame library for loading, joining,
aggregating, filtering, and otherwise manipulating data."""
homepage = "https://rapids.ai"
url = "https://github.com/rapidsai/cudf/archive/v0.15.0.tar.gz"
version('0.15.0', sha256='2570636b72cce4c52f71e36307f51f630e2f9ea94a1abc018d40ce919ba990e4')
depends_on('cmake@3.14:', type='build')
depends_on('cuda@10.0:')
depends_on('boost')
depends_on('arrow+cuda+orc+parquet')
depends_on('librmm')
depends_on('dlpack')
root_cmakelists_dir = 'cpp'
def cmake_args(self):
args = []
# args.append('-DGPU_ARCHES')
args.append('-DUSE_NVTX=ON')
args.append('-DBUILD_BENCHMARKS=OFF')
args.append('-DDISABLE_DEPRICATION_WARNING=ON')
args.append('-DPER_THREAD_DEFAULT_STREAM=OFF')
return args
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/mbedtls/package.py
|
# 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 import *
class Mbedtls(MakefilePackage):
"""mbed TLS (formerly known as PolarSSL) makes it trivially easy for
developers to include cryptographic and SSL/TLS capabilities in
their (embedded) products, facilitating this functionality with a
minimal coding footprint.
"""
homepage = "https://tls.mbed.org"
url = "https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.2.1.tar.gz"
maintainers = ['mwkrentel', 'haampie']
version('3.1.0', sha256='64d01a3b22b91cf3a25630257f268f11bc7bfa37981ae6d397802dd4ccec4690')
version('3.0.0', sha256='377d376919be19f07c7e7adeeded088a525be40353f6d938a78e4f986bce2ae0')
version('2.28.0', sha256='f644248f23cf04315cf9bb58d88c4c9471c16ca0533ecf33f86fb7749a3e5fa6')
version('2.27.0', sha256='4f6a43f06ded62aa20ef582436a39b65902e1126cbbe2fb17f394e9e9a552767')
version('2.24.0', sha256='b5a779b5f36d5fc4cba55faa410685f89128702423ad07b36c5665441a06a5f3')
version('2.16.12', sha256='0afb4a4ce5b771f2fb86daee786362fbe48285f05b73cd205f46a224ec031783')
version('2.16.11', sha256='51bb9685c4f4ff9255da5659ff346b89dcaf129e3ba0f3b2b0c48a1a7495e701')
version('2.16.9', sha256='b7ca99ee10551b5b13242b7effebefd2a5cc38c287e5f5be1267d51ee45effe3', deprecated=True)
version('2.16.7', sha256='4786b7d1676f5e4d248f3a7f2d28446876d64962634f060ff21b92c690cfbe86', deprecated=True)
version('2.16.1', sha256='daf0d40f3016c34eb42d1e4b3b52be047e976d566aba8668977723c829af72f3', deprecated=True)
version('2.7.19', sha256='3da12b1cebe1a25da8365d5349f67db514aefcaa75e26082d7cb2fa3ce9608aa')
version('2.7.10', sha256='42b19b30b86a798bdb69c5da2f8bbd7d72ffede9a35b888ab986a29480f9dc3e', deprecated=True)
version('2.3.0', sha256='1614ee70be99a18ca8298148308fb725aad4ad31c569438bb51655a4999b14f9', deprecated=True)
version('2.2.1', sha256='32819c62c20e8740a11b49daa5d09ac6f179edf120a87ac559cd63120b66b699', deprecated=True)
version('2.2.0', sha256='75494361e412444b38ebb9c908b7e17a5fb582eb9c3fadb2fe9b21e96f1bf8cb', deprecated=True)
version('2.1.4', sha256='a0ee4d3dd135baf67a3cf5ad9e70d67575561704325d6c93d8f087181f4db338', deprecated=True)
version('2.1.3', sha256='94da4618d5a518b99f7914a5e348be436e3571113d9a9978d130725a1fc7bfac', deprecated=True)
version('1.3.16', sha256='0c2666222b66cf09c4630fa60a715aafd7decb1a09933b75c0c540b0625ac5df', deprecated=True)
variant('pic', default=False, description='Compile with position independent code.')
variant('build_type', default='Release', description='Build type',
values=('Debug', 'Release', 'RelWithDebInfo', 'MinSizeRel'))
variant('libs', default='static', values=('shared', 'static'),
multi=True, description='What libraries to build')
depends_on('perl', type='test')
depends_on('python@3:', type='test', when='@3:')
depends_on('python@:2', type='test', when='@:2')
# See https://github.com/ARMmbed/mbedtls/pull/5126
# and the 2.x backport: https://github.com/ARMmbed/mbedtls/pull/5133
patch('fix-dt-needed-shared-libs.patch', when='@2.7:2.27,3.0.0')
build_type_to_flags = {
'Debug': '-O0 -g',
'Release': '-O3',
'RelWithDebInfo': '-O2 -g',
'MinSizeRel': '-Os',
}
# TODO: Can't express this in spack right now; but we can live with
# libs=shared building both shared and static libs.
# conflicts('libs=shared', msg='Makefile build cannot build shared libs only now')
def flag_handler(self, name, flags):
# Compile with PIC, if requested.
if name == 'cflags':
build_type = self.spec.variants['build_type'].value
flags.append(self.build_type_to_flags[build_type])
if self.spec.variants['pic'].value:
flags.append(self.compiler.cc_pic_flag)
return (None, flags, None)
def setup_build_environment(self, env):
if 'shared' in self.spec.variants['libs'].value:
env.set('SHARED', 'yes')
def build(self, spec, prefix):
make('no_test')
def install(self, spec, prefix):
make('install', 'DESTDIR={0}'.format(prefix))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-maps/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class RMaps(RPackage):
"""Draw Geographical Maps.
Display of maps. Projection code and larger maps are in separate packages
('mapproj' and 'mapdata')."""
cran = "maps"
version('3.4.0', sha256='7918ccb2393ca19589d4c4e77d9ebe863dc6317ebfc1ff41869dbfaf439f5747')
version('3.3.0', sha256='199afe19a4edcef966ae79ef802f5dcc15a022f9c357fcb8cae8925fe8bd2216')
version('3.2.0', sha256='437abeb4fa4ad4a36af6165d319634b89bfc6bf2b1827ca86c478d56d670e714')
version('3.1.1', sha256='972260e5ce9519ecc09b18e5d7a28e01bed313fadbccd7b06c571af349cb4d2a')
depends_on('r@3.0.0:', type=('build', 'run'))
depends_on('r@3.5.0:', type=('build', 'run'), when='@3.4.0:')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-ipycanvas/package.py
|
<filename>var/spack/repos/builtin/packages/py-ipycanvas/package.py<gh_stars>10-100
# 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 import *
class PyIpycanvas(PythonPackage):
"""Interactive Canvas in Jupyter."""
homepage = "https://github.com/martinRenou/ipycanvas"
pypi = "ipycanvas/ipycanvas-0.9.0.tar.gz"
version('0.10.2', sha256='a02c494834cb3c60509801172e7429beae837b3cb6c61d3becf8b586c5a66004')
version('0.9.0', sha256='f29e56b93fe765ceace0676c3e75d44e02a3ff6c806f3b7e5b869279f470cc43')
depends_on('python@3.5:', type=('build', 'run'))
depends_on('py-setuptools@40.8:', type='build')
# TODO: replace this after concretizer learns how to concretize separate build deps
depends_on('py-jupyter-packaging7', type='build')
# depends_on('py-jupyter-packaging@0.7.0:0.7', type='build')
depends_on('py-jupyterlab@3.0:3', type='build')
depends_on('py-ipywidgets@7.6:', type=('build', 'run'))
depends_on('pil@6:', type=('build', 'run'))
depends_on('py-numpy', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/jsonnet/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class Jsonnet(MakefilePackage):
"""A data templating language for app and tool developers based on JSON"""
homepage = "https://jsonnet.org/"
git = "https://github.com/google/jsonnet.git"
url = "https://github.com/google/jsonnet/archive/refs/tags/v0.18.0.tar.gz"
maintainers = ["jcpunk"]
version("master", branch="master")
version("0.18.0", sha256sum="85c240c4740f0c788c4d49f9c9c0942f5a2d1c2ae58b2c71068107bc80a3ced4")
version("0.17.0", sha256sum="076b52edf888c01097010ad4299e3b2e7a72b60a41abbc65af364af1ed3c8dbe")
conflicts("%gcc@:5.4.99", when="@0.18.0:")
variant("python", default=False, description="Provide Python bindings for jsonnet")
extends("python", when="+python")
depends_on("py-setuptools", type=("build",), when="+python")
depends_on("py-pip", type=("build",), when="+python")
depends_on("py-wheel", type=("build",), when="+python")
@property
def install_targets(self):
return ["PREFIX={0}".format(self.prefix), "install"]
@run_after("install")
def python_install(self):
if "+python" in self.spec:
args = std_pip_args + ["--prefix=" + self.prefix, "."]
pip(*args)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/ghost/package.py
|
<gh_stars>10-100
# 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 import *
class Ghost(CMakePackage, CudaPackage):
"""GHOST: a General, Hybrid and Optimized Sparse Toolkit.
This library provides highly optimized building blocks for implementing
sparse iterative eigenvalue and linear solvers multi- and manycore
clusters and on heterogenous CPU/GPU machines. For an iterative solver
library using these kernels, see the phist package.
"""
homepage = "https://www.bitbucket.org/essex/ghost/"
git = "https://bitbucket.org/essex/ghost/ghost.git"
version('develop', branch='devel')
variant('shared', default=True,
description='Enables the build of shared libraries')
variant('mpi', default=True,
description='enable/disable MPI')
variant('scotch', default=False,
description='enable/disable matrix reordering with PT-SCOTCH')
variant('zoltan', default=False,
description='enable/disable matrix reordering with Zoltan')
# ###################### Dependencies ##########################
# Everything should be compiled position independent (-fpic)
depends_on('cmake@3.5:', type='build')
depends_on('hwloc')
depends_on('blas')
depends_on('mpi', when='+mpi')
depends_on('scotch', when='+scotch')
depends_on('zoltan', when='+zoltan')
def cmake_args(self):
spec = self.spec
# note: we require the cblas_include_dir property from the blas
# provider, this is implemented at least for intel-mkl and
# netlib-lapack
args = [self.define_from_variant('GHOST_ENABLE_MPI', 'mpi'),
self.define_from_variant('GHOST_USE_CUDA', 'cuda'),
self.define_from_variant('GHOST_USE_SCOTCH', 'scotch'),
self.define_from_variant('GHOST_USE_ZOLTAN', 'zoltan'),
self.define_from_variant('BUILD_SHARED_LIBS', 'shared'),
'-DCBLAS_INCLUDE_DIR:STRING=%s'
% format(spec['blas'].headers.directories[0]),
'-DBLAS_LIBRARIES=%s'
% spec['blas:c'].libs.joined(';')
]
return args
def check(self):
make('test')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/xerces-c/package.py
|
# 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)
import sys
from spack import *
class XercesC(AutotoolsPackage):
"""Xerces-C++ is a validating XML parser written in a portable subset of
C++. Xerces-C++ makes it easy to give your application the ability to read
and write XML data. A shared library is provided for parsing, generating,
manipulating, and validating XML documents using the DOM, SAX, and SAX2
APIs."""
homepage = "https://xerces.apache.org/xerces-c"
url = "https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.2.1.tar.bz2"
version('3.2.3', sha256='45c2329e684405f2b8854ecbddfb8d5b055cdf0fe4d35736cc352c504989bbb6')
version('3.2.2', sha256='1f2a4d1dbd0086ce0f52b718ac0fa4af3dc1ce7a7ff73a581a05fbe78a82bce0')
version('3.2.1', sha256='a36b6e162913ec218cfb84772d2535d43c3365355a601d45d4b8ce11f0ece0da')
version('3.1.4', sha256='9408f12c1628ecf80730bedbe8b2caad810edd01bb4c66f77b60c873e8cc6891')
version('3.1.3', sha256='fc5e5e0247b108b8d64d75aeb124cabdee9b7fcd725a89fe2242b4637b25c1fa')
# Whilst still using Autotools, can use full cxxstd with 'default'
# If build is moved to CMake, then will also need a patch to Xerces-C's
# CMakeLists.txt as a specific standard cannot be forced
variant('cxxstd',
default='default',
values=('default', '98', '11', '14', '17'),
multi=False,
description='Use the specified C++ standard when building')
variant('netaccessor',
default='curl',
# todo: add additional values (platform-specific)
# 'socket', 'cfurl', 'winsock'
values=('curl', 'none'),
multi=False,
description='Net Accessor (used to access network resources')
# It's best to be explicit about the transcoder or else xerces may
# choose another value.
if sys.platform == 'darwin':
default_transcoder = 'macos'
elif sys.platform.startswith('win') or sys.platform == 'cygwin':
default_transcoder = 'windows'
else:
default_transcoder = 'gnuiconv'
variant('transcoder', default=default_transcoder,
values=('gnuiconv', 'iconv', 'icu', 'macos', 'windows'),
multi=False,
description='Use the specified transcoder')
depends_on('iconv', type='link', when='transcoder=gnuiconv')
depends_on('icu4c', type='link', when='transcoder=icu')
depends_on('curl', when='netaccessor=curl')
# Pass flags to configure. This is necessary for CXXFLAGS or else
# the xerces default will override the spack wrapper.
def flag_handler(self, name, flags):
spec = self.spec
# Need to pass -std flag explicitly
if name == 'cxxflags' and spec.variants['cxxstd'].value != 'default':
flags.append(getattr(self.compiler,
'cxx{0}_flag'.format(
spec.variants['cxxstd'].value)))
# There is no --with-pkg for gnuiconv.
if name == 'ldflags' and 'transcoder=gnuiconv' in spec:
flags.append(spec['iconv'].libs.ld_flags)
return (None, None, flags)
def configure_args(self):
spec = self.spec
args = []
if 'netaccessor=curl' in spec:
args.append('--enable-netaccessor-curl')
else:
args.append('--disable-network')
if 'transcoder=gnuiconv' in spec:
args.append('--enable-transcoder-gnuiconv')
if 'transcoder=iconv' in spec:
args.append('--enable-transcoder-iconv')
if 'transcoder=icu' in spec:
args.append('--enable-transcoder-icu')
args.append('--with-icu=%s' % spec['icu4c'].prefix)
if 'transcoder=macos' in spec:
args.append('--enable-transcoder-macosunicodeconverter')
if 'transcoder=windows' in spec:
args.append('--enable-transcoder-windows')
return args
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/mpfr/package.py
|
# 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 import *
class Mpfr(AutotoolsPackage, GNUMirrorPackage):
"""The MPFR library is a C library for multiple-precision
floating-point computations with correct rounding."""
homepage = "https://www.mpfr.org/"
gnu_mirror_path = "mpfr/mpfr-4.0.2.tar.bz2"
version('4.1.0', sha256='feced2d430dd5a97805fa289fed3fc8ff2b094c02d05287fd6133e7f1f0ec926')
version('4.0.2', sha256='c05e3f02d09e0e9019384cdd58e0f19c64e6db1fd6f5ecf77b4b1c61ca253acc')
version('4.0.1', sha256='a4d97610ba8579d380b384b225187c250ef88cfe1d5e7226b89519374209b86b')
version('4.0.0', sha256='6aa31fbf3bd1f9f95bcfa241590a9d11cb0f874e2bb93b99c9e2de8eaea6d5fd')
version('3.1.6', sha256='cf4f4b2d80abb79e820e78c8077b6725bbbb4e8f41896783c899087be0e94068')
version('3.1.5', sha256='ca498c1c7a74dd37a576f353312d1e68d490978de4395fa28f1cbd46a364e658')
version('3.1.4', sha256='d3103a80cdad2407ed581f3618c4bed04e0c92d1cf771a65ead662cc397f7775')
version('3.1.3', sha256='f63bb459157cacd223caac545cb816bcdb5a0de28b809e7748b82e9eb89b0afd')
version('3.1.2', sha256='79c73f60af010a30a5c27a955a1d2d01ba095b72537dab0ecaad57f5a7bb1b6b')
# mpir is a drop-in replacement for gmp
depends_on('gmp@4.1:') # 4.2.3 or higher is recommended
depends_on('gmp@5.0:', when='@4.0.0:') # https://www.mpfr.org/mpfr-4.0.0/
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('autoconf-archive', when='@4.0.2:', type='build')
depends_on('texinfo', when='@4.1.0', type='build')
force_autoreconf = True
# Check the Bugs section of old release pages for patches.
# https://www.mpfr.org/mpfr-X.Y.Z/#bugs
patches = {
'4.0.2': '3f80b836948aa96f8d1cb9cc7f3f55973f19285482a96f9a4e1623d460bcccf0',
'4.0.1': '5230aab653fa8675fc05b5bdd3890e071e8df49a92a9d58c4284024affd27739',
'3.1.6': '7a6dd71bcda4803d6b89612706a17b8816e1acd5dd9bf1bec29cf748f3b60008',
'3.1.5': '1ae14fb3a54ae8e0faed20801970255b279eee9e5ac624891ab5d29727f0bc04',
'3.1.4': '113705d5333ef0d0ad3eb136a85404ba6bd1cc524dece5ce902c536aa2e29903',
'3.1.3': '4152a780b3cc6e9643283e59093b43460196d0fea9302d8c93b2496f6679f4e4',
'3.1.2': '1b9fdb515efb09a506a01e1eb307b1464455f5ca63d6c193db3a3da371ab3220',
}
for ver, checksum in patches.items():
patch('https://www.mpfr.org/mpfr-{0}/allpatches'.format(ver),
when='@' + ver, sha256=checksum)
def flag_handler(self, name, flags):
# Work around macOS Catalina / Xcode 11 code generation bug
# (test failure t-toom53, due to wrong code in mpn/toom53_mul.o)
if self.spec.satisfies('os=catalina') and name == 'cflags':
flags.append('-fno-stack-check')
return (flags, None, None)
def configure_args(self):
args = [
'--with-gmp=' + self.spec['gmp'].prefix,
]
return args
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-cachecontrol/package.py
|
# 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 import *
class PyCachecontrol(PythonPackage):
"""CacheControl is a port of the caching algorithms in httplib2
for use with requests session object."""
homepage = "https://github.com/ionrock/cachecontrol"
pypi = "CacheControl/CacheControl-0.12.10.tar.gz"
version('0.12.10', sha256='d8aca75b82eec92d84b5d6eb8c8f66ea16f09d2adb09dbca27fe2d5fc8d3732d')
variant('filecache', default=False, description='Add lockfile dependency')
depends_on('python@3.6:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-requests', type=('build', 'run'))
depends_on('py-msgpack@0.5.2:', type=('build', 'run'))
depends_on('py-lockfile@0.9:', when='+filecache', type='run')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-satellite/package.py
|
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/r-satellite/package.py
# 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 import *
class RSatellite(RPackage):
"""Handling and Manipulating Remote Sensing Data.
Herein, we provide a broad variety of functions which are useful for
handling, manipulating, and visualizing satellite-based remote sensing
data. These operations range from mere data import and layer handling (eg
subsetting), over Raster* typical data wrangling (eg crop, extend), to more
sophisticated (pre-)processing tasks typically applied to satellite imagery
(eg atmospheric and topographic correction). This functionality is
complemented by a full access to the satellite layers' metadata at any
stage and the documentation of performed actions in a separate log file.
Currently available sensors include Landsat 4-5 (TM), 7 (ETM+), and 8
(OLI/TIRS Combined), and additional compatibility is ensured for the
Landsat Global Land Survey data set."""
cran = "satellite"
version('1.0.4', sha256='99e79577a70489930c32da46ac26453af53e21c2d3a99f51fbf1f55f2d80dc7c')
version('1.0.2', sha256='6447476bd31216e5abe504221e465677954d07419b4174ab4f4e4f7a197969c5')
depends_on('r@2.10:', type=('build', 'run'))
depends_on('r-raster', type=('build', 'run'))
depends_on('r-plyr', type=('build', 'run'))
depends_on('r-rcpp@0.10.3:', type=('build', 'run'))
depends_on('r-terra', type=('build', 'run'), when='@1.0.4:')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-viridis/package.py
|
# 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 import *
class RViridis(RPackage):
"""Colorblind-Friendly Color Maps for R.
Color maps designed to improve graph readability for readers with common
forms of color blindness and/or color vision deficiency. The color maps are
also perceptually-uniform, both in regular form and also when converted to
black-and-white for printing. This package also contains 'ggplot2' bindings
for discrete and continuous color and fill scales. A lean version of the
package called 'viridisLite' that does not include the 'ggplot2' bindings
can be found at <https://cran.r-project.org/package=viridisLite>."""
cran = "viridis"
version('0.6.2', sha256='69b58cd1d992710a08b0b227fd0a9590430eea3ed4858099412f910617e41311')
version('0.5.1', sha256='ddf267515838c6eb092938133035cee62ab6a78760413bfc28b8256165701918')
version('0.5.0', sha256='fea477172c1e11be40554545260b36d6ddff3fe6bc3bbed87813ffb77c5546cd')
version('0.4.0', sha256='93d2ded68ed7cec5633c260dbc47051416147aae074f29ebe135cc329250b00e')
depends_on('r@2.10:', type=('build', 'run'))
depends_on('r-viridislite@0.3.0:', type=('build', 'run'))
depends_on('r-viridislite@0.4.0:', type=('build', 'run'), when='@0.6.2:')
depends_on('r-ggplot2@1.0.1:', type=('build', 'run'))
depends_on('r-gridextra', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/ignite/package.py
|
# 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 import *
class Ignite(Package):
"""
Apache Ignite is a memory-centric distributed database, caching, and
processing platform for transactional, analytical, and streaming
workloads delivering in-memory speeds at petabyte scale.
"""
homepage = "https://ignite.apache.org/"
url = "https://archive.apache.org/dist/ignite/2.6.0/apache-ignite-hadoop-2.6.0-bin.zip"
version('2.6.0', sha256='be40350f301a308a0ab09413a130d421730bf253d200e054b82a7d0c275c69f2')
version('2.5.0', sha256='00bd35b6c50754325b966d50c7eee7067e0558f3d52b3dee27aff981b6da38be')
version('2.4.0', sha256='3d4f44fbb1c46731cf6ad4acce26da72960b292b307221cec55057b4f305abd9')
version('2.3.0', sha256='aae162c3df243592f7baa0d63b9bf60a7bdb00c7198f43e75b0a777a6fe5b639')
version('2.2.0', sha256='e4c150f59b11e14fdf4f663cf6f2c433dd55c17720221c89f3c67b9868177bd3')
depends_on('java', type='run')
def install(self, spec, prefix):
install_tree('.', prefix)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-arcgis/package.py
|
# 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 import *
class PyArcgis(PythonPackage):
"""ArcGIS API for Python."""
homepage = "https://developers.arcgis.com/python/"
pypi = "arcgis/arcgis-1.8.4.tar.gz"
version('1.8.4', sha256='f1445dac25d3d4c03755d716c74a0930881c6be3cd36d22c6ff5ac754f9842d7')
depends_on('py-setuptools', type='build')
depends_on('py-six', type=('build', 'run'))
depends_on('py-ipywidgets@7:', type=('build', 'run'))
depends_on('py-widgetsnbextension@3:', type=('build', 'run'))
depends_on('py-pandas@1:', type=('build', 'run'))
depends_on('py-numpy@1.16.2:', type=('build', 'run'))
depends_on('py-matplotlib', type=('build', 'run'))
depends_on('py-keyring@19:', type=('build', 'run'))
depends_on('py-lerc', type=('build', 'run'))
depends_on('py-ujson@3:', type=('build', 'run'))
depends_on('py-jupyterlab', type=('build', 'run'))
depends_on('py-python-certifi-win32', type=('build', 'run'))
depends_on('py-pyshp@2:', type=('build', 'run'))
depends_on('py-requests', type=('build', 'run'))
depends_on('py-requests-oauthlib', type=('build', 'run'))
depends_on('py-requests-toolbelt', type=('build', 'run'))
depends_on('py-requests-ntlm', type=('build', 'run'))
def global_options(self, spec, prefix):
return ['--conda-install-mode']
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/nlohmann-json-schema-validator/package.py
|
# 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 import *
class NlohmannJsonSchemaValidator(CMakePackage):
"""JSON schema validator for JSON for Modern C++"""
homepage = "https://github.com/pboettch/json-schema-validator"
url = "https://github.com/pboettch/json-schema-validator/archive/2.1.0.tar.gz"
git = "https://github.com/pboettch/json-schema-validator.git"
version('master', branch='master')
version('2.1.0', sha256='83f61d8112f485e0d3f1e72d51610ba3924b179926a8376aef3c038770faf202')
version('2.0.0', sha256='ca8e4ca5a88c49ea52b5f5c2a08a293dbf02b2fc66cb8c09d4cce5810ee98b57')
version('1.0.0', sha256='4bdcbf6ce98eda993d8a928dbe97a03f46643395cb872af875a908156596cc4b')
depends_on('cmake@3.2:', type='build')
depends_on('nlohmann-json')
def cmake_args(self):
args = ['-DBUILD_SHARED_LIBS:BOOL=ON']
return args
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/ftgl/package.py
|
# 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 import *
class Ftgl(CMakePackage):
"""Library to use arbitrary fonts in OpenGL applications."""
homepage = "https://github.com/frankheckenbach/ftgl"
git = "https://github.com/frankheckenbach/ftgl.git"
version('master', branch='master')
version('2.4.0', commit='<PASSWORD>')
version('2.3.1', commit='<PASSWORD>')
# FIXME: Doc generation is broken in upstream build system
# variant('doc', default=False, description='Build the documentation')
variant('shared', default=True, description='Build as a shared library')
depends_on('cmake@2.8:', type='build')
# depends_on('doxygen', type='build', when='+doc') -- FIXME, see above
depends_on('pkgconfig', type='build')
depends_on('gl')
depends_on('glu')
depends_on('freetype@2.0.9:')
# Fix oversight in CMakeLists
patch('remove-ftlibrary-from-sources.diff', when='@:2.4.0')
def cmake_args(self):
spec = self.spec
args = ['-DBUILD_SHARED_LIBS={0}'.format(spec.satisfies('+shared'))]
if 'darwin' in self.spec.architecture:
args.append('-DCMAKE_MACOSX_RPATH=ON')
return args
# FIXME: See doc variant comment
# @run_after('build')
# def build_docs(self):
# if '+doc' in self.spec:
# cmake = self.spec['cmake'].command
# cmake('--build', '../spack-build', '--target', 'doc')
#
# @run_after('install')
# def install_docs(self):
# if '+doc' in self.spec:
# cmake = self.spec['cmake'].command
# cmake('--install', '../spack-build', '--target', 'doc')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-sfheaders/package.py
|
<gh_stars>10-100
# 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 import *
class RSfheaders(RPackage):
"""Converts Between R Objects and Simple Feature Objects.
Converts between R and Simple Feature 'sf' objects, without depending on
the Simple Feature library. Conversion functions are available at both the
R level, and through 'Rcpp'."""
cran = "sfheaders"
version('0.4.0', sha256='86bcd61018a0491fc8a1e7fb0422c918296287b82be299a79ccee8fcb515e045')
depends_on('r-geometries@0.2.0:', type=('build', 'run'))
depends_on('r-rcpp', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-svglite/package.py
|
# 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 import *
class RSvglite(RPackage):
"""An 'SVG' Graphics Device.
A graphics device for R that produces 'Scalable Vector Graphics'. 'svglite'
is a fork of the older 'RSvgDevice' package."""
cran = "svglite"
version('2.0.0', sha256='76e625fe172a5b7ce99a67b6d631b037b3f7f0021cfe15f2e15e8851b89defa5')
depends_on('r+X', type=('build', 'run'))
depends_on('r@3.0.0:', type=('build', 'run'))
depends_on('r-systemfonts@1.0.0:', type=('build', 'run'))
depends_on('r-cpp11', type=('build', 'run'))
depends_on('libpng')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-dotcall64/package.py
|
<gh_stars>10-100
# 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 import *
class RDotcall64(RPackage):
"""Enhanced Foreign Function Interface Supporting Long
Vectors.
Provides .C64(), which is an enhanced version of .C() and .Fortran() from
the foreign function interface. .C64() supports long vectors, arguments of
type 64-bit integer, and provides a mechanism to avoid unnecessary copies
of read-only and write-only arguments. This makes it a convenient and fast
interface to C/C++ and Fortran code."""
cran = "dotCall64"
version('1.0-1', sha256='f10b28fcffb9453b1d8888a72c8fd2112038b5ac33e02a481492c7bd249aa5c6')
version('1.0-0', sha256='69318dc6b8aecc54d4f789c8105e672198363b395f1a764ebaeb54c0473d17ad')
depends_on('r@3.1:', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/libpfm4/package.py
|
# 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 import *
class Libpfm4(MakefilePackage):
"""libpfm4 is a userspace library to help
setup performance events for use with
the perf_events Linux kernel interface."""
homepage = "http://perfmon2.sourceforge.net"
url = "https://downloads.sourceforge.net/project/perfmon2/libpfm4/libpfm-4.8.0.tar.gz"
maintainers = ['mwkrentel']
version('4.11.0', sha256='5da5f8872bde14b3634c9688d980f68bda28b510268723cc12973eedbab9fecc')
version('4.10.1', sha256='c61c575378b5c17ccfc5806761e4038828610de76e2e34fac9f7fa73ba844b49')
version('4.9.0', sha256='db0fbe8ee28fd9beeb5d3e80b7cb3b104debcf6a9fcf5cb8b882f0662c79e4e2')
version('4.8.0', sha256='9193787a73201b4254e3669243fd71d15a9550486920861912090a09f366cf68')
# Fails to build libpfm4 with intel compiler version 16 and 17
conflicts('%intel@16:17')
# Set default optimization level (-O2) if not specified.
def flag_handler(self, name, flags):
if name == 'cflags':
for flag in flags:
if flag.startswith('-O'):
break
else:
flags.append('-O2')
return (flags, None, None)
# Remove -Werror from CFLAGS. Given the large space of platform,
# compiler, version, we don't want to fail the build over a stray
# warning.
def patch(self):
filter_file('-Werror', '', 'config.mk')
@property
def install_targets(self):
return ['DESTDIR={0}'.format(self.prefix),
'LIBDIR=/lib',
'INCDIR=/include',
'MANDIR=/man',
'LDCONFIG=true',
'install']
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/fish/package.py
|
<filename>var/spack/repos/builtin/packages/fish/package.py
# 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)
class Fish(CMakePackage):
"""fish is a smart and user-friendly command line shell for OS X, Linux, and
the rest of the family.
"""
homepage = 'https://fishshell.com/'
url = 'https://github.com/fish-shell/fish-shell/releases/download/3.3.1/fish-3.3.1.tar.xz'
git = 'https://github.com/fish-shell/fish-shell.git'
list_url = homepage
maintainers = ['funnell']
version('master', branch='master')
version('3.3.1', sha256='b5b4ee1a5269762cbbe993a4bd6507e675e4100ce9bbe84214a5eeb2b19fae89')
version('3.1.2', sha256='d5b927203b5ca95da16f514969e2a91a537b2f75bec9b21a584c4cd1c7aa74ed')
version('3.1.0', sha256='e5db1e6839685c56f172e1000c138e290add4aa521f187df4cd79d4eab294368')
version('3.0.0', sha256='ea9dd3614bb0346829ce7319437c6a93e3e1dfde3b7f6a469b543b0d2c68f2cf')
variant('docs', default=False, description='Build documentation')
# https://github.com/fish-shell/fish-shell#dependencies-1
depends_on('cmake@3.2:', type='build')
depends_on('ncurses')
depends_on('pcre2@10.21:')
depends_on('gettext')
depends_on('py-sphinx', when='+docs', type='build')
depends_on('python@3.3:', type='test')
depends_on('py-pexpect', type='test')
# https://github.com/fish-shell/fish-shell/issues/7310
patch('codesign.patch', when='@3.1.2 platform=darwin')
executables = ['^fish$']
@classmethod
def determine_version(cls, exe):
output = Executable(exe)('--version', output=str, error=str)
match = re.search(r'fish, version (\S+)', output)
return match.group(1) if match else None
def url_for_version(self, version):
url = 'https://github.com/fish-shell/fish-shell/releases/download/{0}/fish-{0}.tar.{1}'
if version < Version('3.2.0'):
ext = 'gz'
else:
ext = 'xz'
return url.format(version, ext)
def setup_build_environment(self, env):
env.append_flags('LDFLAGS', self.spec['ncurses'].libs.link_flags)
def cmake_args(self):
args = [
'-DBUILD_SHARED_LIBS=ON',
'-DMAC_CODESIGN_ID=OFF',
'-DPCRE2_LIB=' + self.spec['pcre2'].libs[0],
'-DPCRE2_INCLUDE_DIR=' + self.spec['pcre2'].headers.directories[0],
]
if '+docs' in self.spec:
args.append('-DBUILD_DOCS=ON')
else:
args.append('-DBUILD_DOCS=OFF')
return args
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-pure-eval/package.py
|
# 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 import *
class PyPureEval(PythonPackage):
"""Safely evaluate AST nodes without side effects."""
homepage = "https://github.com/alexmojaki/pure_eval"
git = "https://github.com/alexmojaki/pure_eval.git"
pypi = "pure_eval/pure_eval-0.2.2.tar.gz"
version('master', branch='master')
version('0.2.2', sha256='2b45320af6dfaa1750f543d714b6d1c520a1688dec6fd24d339063ce0aaa9ac3')
depends_on('python@3.5:', type=('build', 'run'))
depends_on('py-setuptools@44:', type='build')
depends_on('py-setuptools-scm+toml@3.4.3:', type='build')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-amelia/package.py
|
# 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 import *
class RAmelia(RPackage):
"""A Program for Missing Data.
A tool that "multiply imputes" missing data in a single cross-section (such
as a survey), from a time series (like variables collected for each year in
a country), or from a time-series-cross-sectional data set (such as
collected by years for each of several countries). Amelia II implements our
bootstrapping-based algorithm that gives essentially the same answers as
the standard IP or EMis approaches, is usually considerably faster than
existing approaches and can handle many more variables. Unlike Amelia I
and other statistically rigorous imputation software, it virtually never
crashes (but please let us know if you find to the contrary!). The program
also generalizes existing approaches by allowing for trends in time series
across observations within a cross-sectional unit, as well as priors that
allow experts to incorporate beliefs they have about the values of missing
cells in their data. Amelia II also includes useful diagnostics of the fit
of multiple imputation models. The program works from the R command line
or via a graphical user interface that does not require users to know R."""
cran = "Amelia"
version('1.8.0', sha256='3ec1d5a68dac601b354227916aa8ec72fa1216b603dd887aae2b24cb69b5995e')
version('1.7.6', sha256='63c08d374aaf78af46c34dc78da719b3085e58d9fabdc76c6460d5193a621bea')
depends_on('r@3.0.2:', type=('build', 'run'))
depends_on('r-rcpp@0.11:', type=('build', 'run'))
depends_on('r-foreign', type=('build', 'run'))
depends_on('r-rcpparmadillo', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/slirp4netns/package.py
|
# 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 import *
class Slirp4netns(AutotoolsPackage):
"""User-mode networking for unprivileged network namespaces"""
homepage = 'https://github.com/rootless-containers/slirp4netns'
url = 'https://github.com/rootless-containers/slirp4netns/archive/v1.1.12.tar.gz'
maintainers = ['bernhardkaindl']
version('1.1.12', sha256='279dfe58a61b9d769f620b6c0552edd93daba75d7761f7c3742ec4d26aaa2962')
depends_on('autoconf', type='build', when='@1.1.12')
depends_on('automake', type='build', when='@1.1.12')
depends_on('libtool', type='build', when='@1.1.12')
depends_on('pkgconfig', type='build')
depends_on('glib')
depends_on('libcap')
depends_on('libseccomp')
depends_on('libslirp')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/hwdata/package.py
|
# 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 import *
class Hwdata(AutotoolsPackage):
"""Hardware identification and configuration data."""
homepage = "https://github.com/vcrhonek/hwdata"
url = "https://github.com/vcrhonek/hwdata/archive/v0.337.tar.gz"
version('0.345', sha256='fafcc97421ba766e08a2714ccc3eebb0daabc99e67d53c2d682721dd01ccf7a7')
version('0.340', sha256='e3a0ef18af6795a362345a2c2c7177be351cb27b4cc0ed9278b7409759258802')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-goftest/package.py
|
# 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 import *
class RGoftest(RPackage):
"""Classical Goodness-of-Fit Tests for Univariate Distributions.
<NAME> and Anderson-Darling tests of goodness-of-fit for
continuous univariate distributions, using efficient algorithms."""
cran = "goftest"
version('1.2-3', sha256='3a5f74b6ae7ece5b294781ae57782abe12375d61789c55ff5e92e4aacf347f19')
version('1.2-2', sha256='e497992666b002b6c6bed73bf05047ad7aa69eb58898da0ad8f1f5b2219e7647')
depends_on('r@3.3:', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/ima-evm-utils/package.py
|
# 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 import *
class ImaEvmUtils(AutotoolsPackage):
"""IMA/EVM control utilities."""
homepage = "https://linux-ima.sourceforge.net"
url = "https://sourceforge.net/projects/linux-ima/files/ima-evm-utils/ima-evm-utils-1.3.2.tar.gz"
version('1.3.2', sha256='c2b206e7f9fbe62a938b7ae59e31906fefae4d5351fe01db739bd8346b75d4a7')
version('1.3.1', sha256='5304271f31a3601a2af5984942d9bd6c7532597c5a97250c9a4524074fc39925')
version('1.3', sha256='62e90e8dc6b131a4f34a356114cdcb5bef844f110abbdd5d8b53c449aecc609f')
version('1.2.1', sha256='ad8471b58c4df29abd51c80d74b1501cfe3289b60d32d1b318618a8fd26c0c0a')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-stdlib-list/package.py
|
<reponame>player1537-forks/spack
# 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)
class PyStdlibList(PythonPackage):
"""This package includes lists of all of the standard libraries
for Python, along with the code for scraping the official Python
docs to get said lists."""
pypi = "stdlib-list/stdlib-list-0.6.0.tar.gz"
version('0.6.0', sha256='133cc99104f5a4e1604dc88ebb393529bd4c2b99ae7e10d46c0b596f3c67c3f0')
depends_on('py-functools32', when="^python@:3.1", type=('build', 'run'))
depends_on('py-setuptools', type='build')
|
player1537-forks/spack
|
var/spack/repos/builtin.mock/packages/cmake-client/package.py
|
<reponame>player1537-forks/spack
# 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)
import os
from spack import *
def check(condition, msg):
"""Raise an install error if condition is False."""
if not condition:
raise InstallError(msg)
class CmakeClient(CMakePackage):
"""A dumy package that uses cmake."""
homepage = 'https://www.example.com'
url = 'https://www.example.com/cmake-client-1.0.tar.gz'
version('1.0', '4cb3ff35b2472aae70f542116d616e63')
variant(
'multi', description='',
values=any_combination_of('up', 'right', 'back').with_default('up')
)
variant('single', description='', default='blue',
values=('blue', 'red', 'green'), multi=False)
variant('truthy', description='', default=True)
callback_counter = 0
flipped = False
run_this = True
check_this_is_none = None
did_something = False
@run_after('cmake')
@run_before('cmake', 'build', 'install')
def increment(self):
self.callback_counter += 1
@run_after('cmake')
@on_package_attributes(run_this=True, check_this_is_none=None)
def flip(self):
self.flipped = True
@run_after('cmake')
@on_package_attributes(does_not_exist=None)
def do_not_execute(self):
self.did_something = True
def setup_build_environment(self, spack_env):
spack_cc # Ensure spack module-scope variable is avaiabl
check(from_cmake == "from_cmake",
"setup_environment couldn't read global set by cmake.")
check(self.spec['cmake'].link_arg == "test link arg",
"link arg on dependency spec not readable from "
"setup_environment.")
def setup_dependent_build_environment(self, spack_env, dspec):
spack_cc # Ensure spack module-scope variable is avaiable
check(from_cmake == "from_cmake",
"setup_dependent_environment couldn't read global set by cmake.")
check(self.spec['cmake'].link_arg == "test link arg",
"link arg on dependency spec not readable from "
"setup_dependent_environment.")
def setup_dependent_package(self, module, dspec):
spack_cc # Ensure spack module-scope variable is avaiable
check(from_cmake == "from_cmake",
"setup_dependent_package couldn't read global set by cmake.")
check(self.spec['cmake'].link_arg == "test link arg",
"link arg on dependency spec not readable from "
"setup_dependent_package.")
def cmake(self, spec, prefix):
assert self.callback_counter == 1
def build(self, spec, prefix):
assert self.did_something is False
assert self.flipped is True
assert self.callback_counter == 3
def install(self, spec, prefix):
assert self.callback_counter == 4
# check that cmake is in the global scope.
global cmake
check(cmake is not None, "No cmake was in environment!")
# check that which('cmake') returns the right one.
cmake = which('cmake')
check(cmake.exe[0].startswith(spec['cmake'].prefix.bin),
"Wrong cmake was in environment: %s" % cmake)
check(from_cmake == "from_cmake",
"Couldn't read global set by cmake.")
check(os.environ['from_cmake'] == 'from_cmake',
"Couldn't read env var set in envieonmnt by dependency")
mkdirp(prefix.bin)
touch(join_path(prefix.bin, 'dummy'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/migrate/package.py
|
# 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 import *
class Migrate(AutotoolsPackage):
"""Migrate estimates effective population sizes and past migration rates
between n population assuming a migration matrix model with asymmetric
migration rates and different subpopulation sizes"""
homepage = "https://popgen.sc.fsu.edu/"
url = "https://popgen.sc.fsu.edu/currentversions/migrate-3.6.11.src.tar.gz"
version('3.6.11', sha256='a9ba06a4e995a45b8d04037f5f2da23e1fe64a2f3565189bdd50c62c6fe01fb8')
variant('mpi', default=False,
description='Build MPI binaries')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('zlib', type='link')
depends_on('openmpi', type=('build', 'link', 'run'), when='+mpi')
configure_directory = 'src'
def configure_args(self):
return ['--with-zlib=system']
def build(self, spec, prefix):
with working_dir('src'):
# this software is written with parts both in C and C++.
# it tries to link using gcc which causes problems, so this package
# explicitly links with g++ (CXX) instead.
# spack's FileFilter/filter_file only work per-line (see docs),
# so the package uses a custom filter by replacing substrings
# in the Makefile.
mfc = ''
with open('Makefile') as m:
mfc = mfc_old = m.read()
# replace linking step
mfc = mfc.replace('$(NAME): $(PRODUCT_DEPENDS)\n\t$(CC)',
'$(NAME): $(PRODUCT_DEPENDS)\n\t$(CXX)')
mfc = mfc.replace('$(MPINAME): $(PRODUCT_DEPENDS)\n\t$(CC)',
'$(MPINAME): $(PRODUCT_DEPENDS)\n\t$(CXX)')
# make sure the replace worked
if (mfc == mfc_old):
raise InstallError('Failed to update linker command')
# don't try to install MPI binaries that aren't there
if '+mpi' not in spec:
line = '$(INSTALL) $(IFLAGS) $(MPINAME) $(INSTALLDIR)'
mfc = mfc.replace(line, '')
# write modified makefile back
with open('Makefile', 'w') as m:
m.write(mfc)
make()
if '+mpi' in spec:
make('mpis')
def install(self, spec, prefix):
mkdirp(prefix.man)
with working_dir('src'):
make('install')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/ember/package.py
|
<gh_stars>10-100
# 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 import *
class Ember(MakefilePackage):
"""
Ember Communication Pattern Library
The Ember suite provides communication patterns in a simplified setting
(simplified by the removal of application calculations, control flow,
etc.).
"""
tags = ['proxy-app', 'ecp-proxy-app']
homepage = "https://sst-simulator.org/SSTPages/SSTElementEmber/"
git = "https://github.com/sstsimulator/ember.git"
url = "https://github.com/sstsimulator/ember/archive/v1.0.0.tar.gz"
version('1.0.0', sha256='5b2a6b8055b46ab3ea2c7baabaf4d280d837bb7c21eba0c9f59e092c6fc1c4a6')
depends_on('mpi')
# TODO: shmem variant disabled due to lack of shmem spackage
def edit(self, spec, prefix):
file = open('Makefile', 'w')
file.write('CC = mpicc\n')
file.write('CFLAGS = -O3 -std=c99\n')
file.write('OSHMEM_CC=cc\n')
file.write('OSHMEM_C_FLAGS=-O3 -g\n')
file.write('export CC CFLAGS OSHMEM_CC OSHMEM_C_FLAGS\n')
file.write('all:\n')
file.write('\t@$(MAKE) -C mpi/halo3d -f Makefile\n')
file.write('\t@$(MAKE) -C mpi/halo3d-26 -f Makefile\n')
file.write('\t@$(MAKE) -C mpi/incast -f Makefile\n')
file.write('\t@$(MAKE) -C mpi/pingpong -f Makefile\n')
file.write('\t@$(MAKE) -C mpi/sweep3d -f Makefile\n')
# file.write('\t@$(MAKE) -C shmem/hotspotinc -f Makefile\n')
# file.write('\t@$(MAKE) -C shmem/randominc -f Makefile\n')
file.write('.PHONY: clean\n')
file.write('clean:\n')
file.write('\t@$(MAKE) -C mpi/halo3d -f Makefile clean\n')
file.write('\t@$(MAKE) -C mpi/halo3d-26 -f Makefile clean\n')
file.write('\t@$(MAKE) -C mpi/incast -f Makefile clean\n')
file.write('\t@$(MAKE) -C mpi/pingpong -f Makefile clean\n')
file.write('\t@$(MAKE) -C mpi/sweep3d -f Makefile clean\n')
# file.write('\t@$(MAKE) -C shmem/hotspotinc -f Makefile clean\n')
# file.write('\t@$(MAKE) -C shmem/randominc -f Makefile clean\n')
file.close()
@property
def build_targets(self):
targets = []
cc = self.spec['mpi'].mpicc
cflags = '-O3'
if not self.spec.satisfies('%nvhpc@:20.11'):
cflags = '-O3 -std=c99'
oshmem_cc = 'cc'
oshmem_c_flags = '-O3 -g'
targets.append('CC = {0}'.format(cc))
targets.append('CFLAGS = {0}'.format(cflags))
targets.append('OSHMEM_CC = {0}'.format(oshmem_cc))
targets.append('OSHMEM_C_FLAGS = {0}'.format(oshmem_c_flags))
return targets
def install(self, spec, prefix):
mkdirp(prefix.docs)
install('README.md', prefix.docs)
install('README.MPI.halo3d', prefix.docs)
install('README.MPI.halo3d-26', prefix.docs)
install('README.MPI.incast', prefix.docs)
install('README.MPI.sweep3d', prefix.docs)
mkdirp(prefix.bin)
install('mpi/halo3d/halo3d', prefix.bin)
install('mpi/halo3d-26/halo3d-26', prefix.bin)
install('mpi/incast/incast', prefix.bin)
install('mpi/pingpong/pingpong', prefix.bin)
install('mpi/sweep3d/sweep3d', prefix.bin)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/nnpack/package.py
|
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/nnpack/package.py<gh_stars>1-10
# 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 import *
class Nnpack(CMakePackage):
"""Acceleration package for neural networks on multi-core CPUs."""
homepage = "https://github.com/Maratyszcza/NNPACK"
git = "https://github.com/Maratyszcza/NNPACK.git"
version('master', branch='master')
version('2020-12-21', commit='c07e<PASSWORD>46e0<PASSWORD>2d5466<PASSWORD>2ea3<PASSWORD>') # py-torch@1.8:1.9
version('2019-10-07', commit='<KEY>') # py-torch@1.4:1.7
version('2019-03-23', commit='c039579abe21f5756e0f0e45e8e767adccc11852') # py-torch@1.1:1.3
version('2018-09-03', commit='<PASSWORD>') # py-torch@1.0
version('2018-05-21', commit='3eb0d453662d05a708f43b108bed9e17b705383e') # py-torch@0.4.1
version('2018-04-05', commit='b63fe1ba8963f1756b8decc593766615cee99c35') # py-torch@:0.4.0
depends_on('cmake@2.8.12:', type='build')
depends_on('ninja', type='build')
depends_on('python', type='build')
depends_on('py-setuptools', type='build')
generator = 'Ninja'
resource(
name='six',
url='https://files.pythonhosted.org/packages/source/s/six/six-1.11.0.tar.gz',
sha256='70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9',
destination='deps',
placement='six',
)
resource(
name='opcodes',
url='https://files.pythonhosted.org/packages/source/o/opcodes/opcodes-0.3.13.tar.gz',
sha256='1859c23143fe20daa4110be87a947cbf3eefa048da71dde642290213f251590c',
destination='deps',
placement='opcodes',
)
resource(
name='peachpy',
git='https://github.com/Maratyszcza/PeachPy.git',
branch='master',
destination='deps',
placement='peachpy',
)
resource(
name='cpuinfo',
git='https://github.com/Maratyszcza/cpuinfo.git',
branch='master',
destination='deps',
placement='cpuinfo',
)
resource(
name='fp16',
git='https://github.com/Maratyszcza/FP16.git',
branch='master',
destination='deps',
placement='fp16',
)
resource(
name='fxdiv',
git='https://github.com/Maratyszcza/FXdiv.git',
branch='master',
destination='deps',
placement='fxdiv',
)
resource(
name='psimd',
git='https://github.com/Maratyszcza/psimd.git',
branch='master',
destination='deps',
placement='psimd',
)
resource(
name='pthreadpool',
git='https://github.com/Maratyszcza/pthreadpool.git',
branch='master',
destination='deps',
placement='pthreadpool',
)
resource(
name='googletest',
url='https://github.com/google/googletest/archive/release-1.8.0.zip',
sha256='f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf',
destination='deps',
placement='googletest',
)
@run_before('cmake')
def generate_peachpy(self):
# https://github.com/Maratyszcza/NNPACK/issues/203
with working_dir(join_path(self.stage.source_path, 'deps', 'peachpy')):
python('setup.py', 'generate')
def cmake_args(self):
return [
self.define('PYTHON_SIX_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'six')),
self.define('PYTHON_PEACHPY_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'peachpy')),
self.define('CPUINFO_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'cpuinfo')),
self.define('FP16_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'fp16')),
self.define('FXDIV_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'fxdiv')),
self.define('PSIMD_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'psimd')),
self.define('PTHREADPOOL_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'pthreadpool')),
self.define('GOOGLETEST_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'googletest')),
]
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/xclock/package.py
|
<gh_stars>10-100
# 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 import *
class Xclock(AutotoolsPackage, XorgPackage):
"""xclock is the classic X Window System clock utility. It displays
the time in analog or digital form, continuously updated at a
frequency which may be specified by the user."""
homepage = "https://cgit.freedesktop.org/xorg/app/xclock"
xorg_mirror_path = "app/xclock-1.0.7.tar.gz"
version('1.0.7', sha256='e730bd575938d5628ef47003a9d4d41b882621798227f5d0c12f4a26365ed1b5')
depends_on('libxaw')
depends_on('libxmu')
depends_on('libx11')
depends_on('libxrender')
depends_on('libxft')
depends_on('libxkbfile')
depends_on('libxt')
depends_on('xproto@7.0.17:')
depends_on('pkgconfig', type='build')
depends_on('util-macros', type='build')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/xfd/package.py
|
<filename>var/spack/repos/builtin/packages/xfd/package.py
# 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 import *
class Xfd(AutotoolsPackage, XorgPackage):
"""xfd - display all the characters in a font using either the
X11 core protocol or libXft2."""
homepage = "https://cgit.freedesktop.org/xorg/app/xfd"
xorg_mirror_path = "app/xfd-1.1.2.tar.gz"
version('1.1.3', sha256='4a1bd18f324c239b1a807ed4ccaeb172ba771d65a7307fb492d8dd8d27f01527')
version('1.1.2', sha256='4eff3e15b2526ceb48d0236d7ca126face399289eabc0ef67e6ed3b3fdcb60ad')
depends_on('fontconfig')
depends_on('gettext')
depends_on('libxaw')
depends_on('libxft')
depends_on('libxrender')
depends_on('libxmu')
depends_on('libxt')
depends_on('xproto@7.0.17:')
depends_on('pkgconfig', type='build')
depends_on('util-macros', type='build')
# Xfd requires libintl (gettext), but does not test for it
# correctly, so add it here.
def flag_handler(self, name, flags):
if name == 'ldlibs':
flags.append('-lintl')
return (flags, None, None)
def configure_args(self):
args = []
# Xkb only rings a bell, so just disable it.
if self.spec.satisfies('@1.1.3:'):
args.append('--without-xkb')
return args
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/alsa-lib/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class AlsaLib(AutotoolsPackage):
"""The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
functionality to the Linux operating system. alsa-lib contains the user
space library that developers compile ALSA applications against."""
homepage = "https://www.alsa-project.org"
url = "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.2.3.2.tar.bz2"
version('1.2.3.2', sha256='e81fc5b7afcaee8c9fd7f64a1e3043e88d62e9ad2c4cff55f578df6b0a9abe15')
version('1.2.2', sha256='d8e853d8805574777bbe40937812ad1419c9ea7210e176f0def3e6ed255ab3ec')
version('1.1.4.1', sha256='91bb870c14d1c7c269213285eeed874fa3d28112077db061a3af8010d0885b76')
variant('python', default=False, description='enable python')
patch('python.patch', when='@1.1.4:1.1.5 +python')
depends_on('python', type=('link', 'run'), when='+python')
conflicts('platform=darwin', msg='ALSA only works for Linux')
def configure_args(self):
spec = self.spec
args = []
if spec.satisfies('+python'):
args.append(
'--with-pythonlibs={0}'.format(spec['python'].libs.ld_flags)
)
args.append(
'--with-pythonincludes={0}'.format(
spec['python'].headers.include_flags
)
)
else:
args.append('--disable-python')
return args
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/opentsdb/package.py
|
# 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 import *
class Opentsdb(AutotoolsPackage):
"""
OpenTSDB is a distributed, scalable Time Series Database (TSDB) written on
top of HBase. OpenTSDB was written to address a common need: store, index
and serve metrics collected from computer systems (network gear, operating
systems, applications) at a large scale, and make this data easily
accessible and graphable.
"""
homepage = "https://github.com/OpenTSDB"
url = "https://github.com/OpenTSDB/opentsdb/archive/v2.4.0.tar.gz"
version('2.4.0', sha256='eb6bf323d058bd456a3b92132f872ca0e4f4a0b0d5e3ed325ebc03dcd64abfd0')
version('2.3.2', sha256='5de8a3ff21bfa431d53859e278e23100fddde239aa2f25e8dee7810098cfd131')
version('2.3.1', sha256='cc3c13aa18a733e1d353558623b5d3620d5322f3894a84d84cb24c024a70a8d7')
version('2.3.0', sha256='c5641ff63a617a5f1ba787b17a10f102dceb3826ce7a4f3b6fd74d1b6409f722')
version('2.2.2', sha256='031fb2b8fab083ad035dafecdac259a1316af0f1c6d28f8846e07ad03d36ff02')
version('2.2.1', sha256='e2f335dcb3dfdc74cc80b2f70dc3c68d239d0832c4bf9af278b7df5a58c06990')
version('2.2.0', sha256='fa9856e17fcd9c804878ea0be59377b64cca3ce25bc8424ed1ab786dce2432a0')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('java', type='run')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-strucchange/package.py
|
# 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 import *
class RStrucchange(RPackage):
"""Testing, Monitoring, and Dating Structural Changes.
Testing, monitoring and dating structural changes in (linear) regression
models. strucchange features tests/methods from the generalized fluctuation
test framework as well as from the F test (Chow test) framework. This
includes methods to fit, plot and test fluctuation processes (e.g., CUSUM,
MOSUM, recursive/moving estimates) and F statistics, respectively. It is
possible to monitor incoming data online using fluctuation processes.
Finally, the breakpoints in regression models with structural changes can
be estimated together with confidence intervals. Emphasis is always given
to methods for visualizing the data."""
cran = "strucchange"
version('1.5-2', sha256='7d247c5ae6f5a63c80e478799d009c57fb8803943aa4286d05f71235cc1002f8')
version('1.5-1', sha256='740e2e20477b9fceeef767ae1002adc5ec397cb0f7daba5289a2c23b0dddaf31')
depends_on('r@2.10.0:', type=('build', 'run'))
depends_on('r-zoo', type=('build', 'run'))
depends_on('r-sandwich', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-matrixmodels/package.py
|
<gh_stars>10-100
# 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 import *
class RMatrixmodels(RPackage):
"""Modelling with Sparse and Dense Matrices.
Modelling with sparse and dense 'Matrix' matrices, using modular prediction
and response module classes."""
cran = "MatrixModels"
version('0.5-0', sha256='a87faf1a185219f79ea2307e6787d293e1d30bf3af9398e8cfe1e079978946ed')
version('0.4-1', sha256='fe878e401e697992a480cd146421c3a10fa331f6b37a51bac83b5c1119dcce33')
depends_on('r@3.0.1:', type=('build', 'run'))
depends_on('r-matrix@1.1-5:', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-fpc/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class RFpc(RPackage):
"""Flexible Procedures for Clustering.
Various methods for clustering and cluster validation. Fixed point
clustering. Linear regression clustering. Clustering by merging Gaussian
mixture components. Symmetric and asymmetric discriminant projections for
visualisation of the separation of groupings. Cluster validation
statistics for distance based clustering including corrected Rand index.
Standardisation of cluster validation statistics by random clusterings and
comparison between many clustering methods and numbers of clusters based on
this. Cluster-wise cluster stability assessment. Methods for estimation
of the number of clusters: Calinski-Harabasz, Tibshirani and Walther's
prediction strength, Fang and Wang's bootstrap stability.
Gaussian/multinomial mixture fitting for mixed continuous/categorical
variables. Variable-wise statistics for cluster interpretation. DBSCAN
clustering. Interface functions for many clustering methods implemented in
R, including estimating the number of clusters with kmeans, pam and clara.
Modality diagnosis for Gaussian mixtures. For an overview see
package?fpc."""
cran = "fpc"
version('2.2-9', sha256='29b0006e96c8645645d215d3378551bd6525aaf45abde2d9f12933cf6e75fa38')
version('2.2-3', sha256='8100a74e6ff96b1cd65fd22494f2d200e54ea5ea533cfca321fa494914bdc3b7')
version('2.2-2', sha256='b6907019eb161d5c8c814cf02a4663cc8aae6322699932881ce5b02f45ecf8d3')
version('2.1-10', sha256='5d17c5f475c3f24a4809678cbc6186a357276240cf7fcb00d5670b9e68baa096')
depends_on('r@2.0.0:', type=('build', 'run'))
depends_on('r-mass', type=('build', 'run'))
depends_on('r-cluster', type=('build', 'run'))
depends_on('r-mclust', type=('build', 'run'))
depends_on('r-flexmix', type=('build', 'run'))
depends_on('r-prabclus', type=('build', 'run'))
depends_on('r-class', type=('build', 'run'))
depends_on('r-diptest', type=('build', 'run'))
depends_on('r-robustbase', type=('build', 'run'))
depends_on('r-kernlab', type=('build', 'run'))
depends_on('r-trimcluster', type=('build', 'run'), when='@:2.1-10')
depends_on('r-mvtnorm', type=('build', 'run'), when='@:2.2-2')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/autogen/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class Autogen(AutotoolsPackage, GNUMirrorPackage):
"""AutoGen is a tool designed to simplify the creation and maintenance of
programs that contain large amounts of repetitious text. It is especially
valuable in programs that have several blocks of text that must be kept
synchronized."""
homepage = "https://www.gnu.org/software/autogen/index.html"
gnu_mirror_path = "autogen/rel5.18.12/autogen-5.18.12.tar.gz"
list_url = "https://ftp.gnu.org/gnu/autogen"
list_depth = 1
version('5.18.12', sha256='805c20182f3cb0ebf1571d3b01972851c56fb34348dfdc38799fd0ec3b2badbe')
variant('xml', default=True, description='Enable XML support')
depends_on('pkgconfig', type='build')
depends_on('guile@1.8:2.0')
depends_on('libxml2', when='+xml')
def configure_args(self):
spec = self.spec
args = [
# `make check` fails without this
# Adding a gettext dependency does not help
'--disable-nls',
]
if '+xml' in spec:
args.append('--with-libxml2={0}'.format(spec['libxml2'].prefix))
else:
args.append('--without-libxml2')
return args
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-subrosa/package.py
|
# 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 import *
class PySubrosa(PythonPackage):
"""Subrosa is a Python implementation of Shamir's Secret Sharing. An
algorithm for sharing a secret with a group of people without letting any
individual of the group know the secret."""
homepage = "https://github.com/DasIch/subrosa/"
url = "https://github.com/DasIch/subrosa/archive/0.1.0.tar.gz"
version('0.1.0', sha256='dc8172119a338874afa0bdcba035224c965ff71d2cbceda70b1ed2377aa390ea')
depends_on('py-setuptools', type='build')
depends_on('py-gf256', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-tmixclust/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class RTmixclust(RPackage):
"""Time Series Clustering of Gene Expression with Gaussian Mixed-Effects
Models and Smoothing Splines.
Implementation of a clustering method for time series gene expression
data based on mixed-effects models with Gaussian variables and non-
parametric cubic splines estimation. The method can robustly account for
the high levels of noise present in typical gene expression time series
datasets."""
bioc = "TMixClust"
version('1.16.0', commit='<KEY>')
version('1.12.0', commit='<KEY>')
version('1.6.0', commit='<KEY>')
version('1.4.0', commit='a52fcae6e7a5dd41e7afbe128f35397e8bc8cb12')
version('1.2.0', commit='<KEY>')
version('1.0.1', commit='0ac800210e3eb9da911767a80fb5582ab33c0cad')
depends_on('r@3.4:', type=('build', 'run'))
depends_on('r-gss', type=('build', 'run'))
depends_on('r-mvtnorm', type=('build', 'run'))
depends_on('r-zoo', type=('build', 'run'))
depends_on('r-cluster', type=('build', 'run'))
depends_on('r-biocparallel', type=('build', 'run'))
depends_on('r-flexclust', type=('build', 'run'))
depends_on('r-biobase', type=('build', 'run'))
depends_on('r-spem', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/fstrack/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class Fstrack(MakefilePackage):
"""Package with tools to analyze symmetry components of elastic tensors,
predict synthetic waveforms and compute automated shear wave splitting
along ray paths, and to track finite strain and predict LPO from mantle
flow given on GMT/netcdf grds."""
homepage = "http://www-udc.ig.utexas.edu/external/becker/data.html#fstrack"
url = "http://www-udc.ig.utexas.edu/external/becker/software/fstrack-0.5.3.092918.tgz"
version('0.5.3.092918', sha256='34b31687fdfa207b9659425238b805eaacf0b0209e7e3343c1a3cb4c9e62345d')
variant('flow', default=True, description='Build the flow tracker')
depends_on('gmt@4.0:4', when='+flow')
depends_on('netcdf-c', when='+flow')
parallel = False
def setup_build_environment(self, env):
# Compilers
env.set('F90', spack_fc)
# Compiler flags (assumes GCC)
env.set('CFLAGS', '-O2')
env.set('FFLAGS', '-ffixed-line-length-132 -x f77-cpp-input -O2')
env.set('FFLAGS_DEBUG', '-g -x f77-cpp-input')
env.set('F90FLAGS', '-O2 -x f95-cpp-input')
env.set('F90FLAGS_DEBUG', '-g -x f95-cpp-input')
env.set('LDFLAGS', '-lm')
if '+flow' in self.spec:
env.set('GMTHOME', self.spec['gmt'].prefix)
env.set('NETCDFDIR', self.spec['netcdf-c'].prefix)
def build(self, spec, prefix):
with working_dir('eispack'):
make()
with working_dir('d-rex'):
make()
with working_dir('fstrack'):
if '+flow' in spec:
make('really_all')
else:
make()
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-tensorboard-plugin-wit/package.py
|
# 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 import *
class PyTensorboardPluginWit(PythonPackage):
"""The What-If Tool makes it easy to efficiently and
intuitively explore up to two models' performance
on a dataset. Investigate model performances for
a range of features in your dataset, optimization
strategies and even manipulations to individual
datapoint values. All this and more, in a visual way
that requires minimal code."""
homepage = "https://pypi.org/project/tensorboard-plugin-wit/"
# Could also build from source, but this package requires an older version of bazel
# than tensorflow supports, so we can't build both from source in the same DAG until
# Spack supports separate concretization of build deps.
url = "https://pypi.io/packages/py3/t/tensorboard_plugin_wit/tensorboard_plugin_wit-1.8.0-py3-none-any.whl"
maintainers = ['aweits']
version('1.8.1', sha256='ff26bdd583d155aa951ee3b152b3d0cffae8005dc697f72b44a8e8c2a77a8cbe', expand=False)
version('1.8.0', sha256='2a80d1c551d741e99b2f197bb915d8a133e24adb8da1732b840041860f91183a', expand=False)
version('1.7.0', sha256='ee775f04821185c90d9a0e9c56970ee43d7c41403beb6629385b39517129685b', expand=False)
depends_on('py-setuptools@36.2.0:', type='build')
depends_on('python@3', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-gviz/package.py
|
# 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 import *
class RGviz(RPackage):
"""Plotting data and annotation information along genomic coordinates.
Genomic data analyses requires integrated visualization of known genomic
information and new experimental data. Gviz uses the biomaRt and the
rtracklayer packages to perform live annotation queries to Ensembl and
UCSC and translates this to e.g. gene/transcript structures in viewports
of the grid graphics package. This results in genomic information
plotted together with your data."""
bioc = "Gviz"
version('1.38.3', commit='c4b352a16455a5744533c511e59354977814cb9e')
version('1.34.0', commit='445fadff2aedd8734580fa908aa47ff1216a8182')
version('1.28.3', commit='<KEY>')
version('1.26.5', commit='430310b9d2e098f9757a71d26a2f69871071f30c')
version('1.24.0', commit='3ee1eec97a56653c07c434a97f82cfe3c4281841')
version('1.22.3', commit='<KEY>')
version('1.20.0', commit='299b8255e1b03932cebe287c3690d58c88f5ba5c')
depends_on('r@2.10.0:', type=('build', 'run'))
depends_on('r@4.0:', type=('build', 'run'), when='@1.34.0:')
depends_on('r@4.1:', type=('build', 'run'), when='@1.38.3:')
depends_on('r-s4vectors@0.9.25:', type=('build', 'run'))
depends_on('r-iranges@1.99.18:', type=('build', 'run'))
depends_on('r-genomicranges@1.17.20:', type=('build', 'run'))
depends_on('r-xvector@0.5.7:', type=('build', 'run'))
depends_on('r-rtracklayer@1.25.13:', type=('build', 'run'))
depends_on('r-lattice', type=('build', 'run'))
depends_on('r-rcolorbrewer', type=('build', 'run'))
depends_on('r-biomart@2.11.0:', type=('build', 'run'))
depends_on('r-annotationdbi@1.27.5:', type=('build', 'run'))
depends_on('r-biobase@2.15.3:', type=('build', 'run'))
depends_on('r-genomicfeatures@1.17.22:', type=('build', 'run'))
depends_on('r-ensembldb@2.11.3:', type=('build', 'run'), when='@1.34.0:')
depends_on('r-bsgenome@1.33.1:', type=('build', 'run'))
depends_on('r-biostrings@2.33.11:', type=('build', 'run'))
depends_on('r-biovizbase@1.13.8:', type=('build', 'run'))
depends_on('r-rsamtools@1.17.28:', type=('build', 'run'))
depends_on('r-latticeextra@0.6-26:', type=('build', 'run'))
depends_on('r-matrixstats@0.8.14:', type=('build', 'run'))
depends_on('r-genomicalignments@1.1.16:', type=('build', 'run'))
depends_on('r-genomeinfodb@1.1.3:', type=('build', 'run'))
depends_on('r-biocgenerics@0.11.3:', type=('build', 'run'))
depends_on('r-digest@0.6.8:', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-intel-openmp/package.py
|
# 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)
import sys
from spack import *
class PyIntelOpenmp(PythonPackage):
"""Intel OpenMP* Runtime Library x86_64 dynamic libraries
for macOS*. Intel OpenMP* Runtime Library provides OpenMP
API specification support in Intel C Compiler, Intel C++
Compiler and Intel Fortran Compiler. It helps to improve
performance by creating multithreaded software using shared
memory and running on multi-core processor systems."""
homepage = "https://pypi.org/project/intel-openmp/"
if sys.platform.startswith('linux'):
version('2021.1.2',
url='https://pypi.io/packages/py2.py3/i/intel-openmp/intel_openmp-2021.1.2-py2.py3-none-manylinux1_x86_64.whl',
sha256='8796797ecae99f39b27065e4a7f1f435e2ca08afba654ca57a77a2717f864dca',
expand=False)
if sys.platform.startswith('darwin'):
version('2021.1.2',
url='https://pypi.io/packages/py2.py3/i/intel-openmp/intel_openmp-2021.1.2-py2.py3-none-macosx_10_15_x86_64.whl',
sha256='2af893738b4b06cb0183746f2992169111031340b59c84a0fd4dec1ed66b80f2',
expand=False)
|
player1537-forks/spack
|
lib/spack/external/macholib/macho_standalone.py
|
<filename>lib/spack/external/macholib/macho_standalone.py
#!/usr/bin/env python
import os
import sys
from macholib.MachOStandalone import MachOStandalone
from macholib.util import strip_files
def standaloneApp(path):
if not (os.path.isdir(path) and os.path.exists(os.path.join(path, "Contents"))):
print("%s: %s does not look like an app bundle" % (sys.argv[0], path))
sys.exit(1)
files = MachOStandalone(path).run()
strip_files(files)
def main():
print(
"WARNING: 'macho_standalone' is deprecated, use "
"'python -mmacholib standalone' instead"
)
if not sys.argv[1:]:
raise SystemExit("usage: %s [appbundle ...]" % (sys.argv[0],))
for fn in sys.argv[1:]:
standaloneApp(fn)
if __name__ == "__main__":
main()
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/vifi/package.py
|
# 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 import *
class Vifi(Package):
"""ViFi is a collection of python and perl scripts
for identifying viral integration and fusion mRNA reads from NGS data."""
homepage = "https://github.com/namphuon/ViFi"
git = "https://github.com/namphuon/ViFi.git"
version('master', tag='master')
depends_on('perl', type='run')
depends_on('python', type='run')
depends_on('py-pysam', type='run')
depends_on('hmmer', type='run')
def install(self, spec, prefix):
install_tree('scripts', prefix.bin)
install_tree('lib', prefix.lib)
install_tree('test', prefix.test)
install('LICENSE', prefix)
install('README.md', prefix)
install('TUTORIAL.md', prefix)
|
player1537-forks/spack
|
lib/spack/spack/compilers/nvhpc.py
|
<gh_stars>1-10
# 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.compiler import Compiler
class Nvhpc(Compiler):
# Subclasses use possible names of C compiler
cc_names = ['nvc']
# Subclasses use possible names of C++ compiler
cxx_names = ['nvc++']
# Subclasses use possible names of Fortran 77 compiler
f77_names = ['nvfortran']
# Subclasses use possible names of Fortran 90 compiler
fc_names = ['nvfortran']
# Named wrapper links within build_env_path
link_paths = {'cc': 'nvhpc/nvc',
'cxx': 'nvhpc/nvc++',
'f77': 'nvhpc/nvfortran',
'fc': 'nvhpc/nvfortran'}
PrgEnv = 'PrgEnv-nvhpc'
PrgEnv_compiler = 'nvhpc'
version_argument = '--version'
version_regex = r'nv[^ ]* (?:[^ ]+ Dev-r)?([0-9.]+)(?:-[0-9]+)?'
@property
def verbose_flag(self):
return "-v"
@property
def debug_flags(self):
return ['-g', '-gopt']
@property
def opt_flags(self):
return ['-O', '-O0', '-O1', '-O2', '-O3', '-O4']
@property
def openmp_flag(self):
return "-mp"
@property
def cc_pic_flag(self):
return "-fpic"
@property
def cxx_pic_flag(self):
return "-fpic"
@property
def f77_pic_flag(self):
return "-fpic"
@property
def fc_pic_flag(self):
return "-fpic"
@property
def c99_flag(self):
return '-c99'
@property
def c11_flag(self):
return '-c11'
@property
def cxx11_flag(self):
return '--c++11'
@property
def cxx14_flag(self):
return '--c++14'
@property
def cxx17_flag(self):
return '--c++17'
@property
def stdcxx_libs(self):
return ('-c++libs', )
required_libs = ['libnvc', 'libnvf']
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-networkd3/package.py
|
# 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 import *
class RNetworkd3(RPackage):
"""D3 JavaScript Network Graphs from R.
Creates 'D3' 'JavaScript' network, tree, dendrogram, and Sankey graphs
from 'R'."""
cran = "networkD3"
version('0.4', sha256='33b82585f1eec6233303ec14033a703d0b17def441c7a0a67bf7e6764c9c9d0b')
version('0.3', sha256='6f9d6b35bb1562883df734bef8fbec166dd365e34c6e656da7be5f8a8d42343c')
version('0.2.12', sha256='b81b59c3c992609e25e1621e51d1240e3d086c2b9c3e9da49a6cb0c9ef7f4ea5')
depends_on('r@3.0.0:', type=('build', 'run'))
depends_on('r-htmlwidgets@0.3.2:', type=('build', 'run'))
depends_on('r-igraph', type=('build', 'run'))
depends_on('r-magrittr', type=('build', 'run'))
|
player1537-forks/spack
|
lib/spack/spack/util/crypto.py
|
<filename>lib/spack/spack/util/crypto.py
# 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)
import hashlib
import sys
from typing import Any, Callable, Dict # novm
import llnl.util.tty as tty
#: Set of hash algorithms that Spack can use, mapped to digest size in bytes
hashes = {
'md5': 16,
'sha1': 20,
'sha224': 28,
'sha256': 32,
'sha384': 48,
'sha512': 64
}
#: size of hash digests in bytes, mapped to algoritm names
_size_to_hash = dict((v, k) for k, v in hashes.items())
#: List of deprecated hash functions. On some systems, these cannot be
#: used without special options to hashlib.
_deprecated_hash_algorithms = ['md5']
#: cache of hash functions generated
_hash_functions = {} # type: Dict[str, Callable[[], Any]]
class DeprecatedHash(object):
def __init__(self, hash_alg, alert_fn, disable_security_check):
self.hash_alg = hash_alg
self.alert_fn = alert_fn
self.disable_security_check = disable_security_check
def __call__(self, disable_alert=False):
if not disable_alert:
self.alert_fn("Deprecation warning: {0} checksums will not be"
" supported in future Spack releases."
.format(self.hash_alg))
if self.disable_security_check:
return hashlib.new( # novermin
self.hash_alg, usedforsecurity=False)
else:
return hashlib.new(self.hash_alg)
def hash_fun_for_algo(algo):
"""Get a function that can perform the specified hash algorithm."""
hash_gen = _hash_functions.get(algo)
if hash_gen is None:
if algo in _deprecated_hash_algorithms:
try:
hash_gen = DeprecatedHash(
algo, tty.debug, disable_security_check=False)
# call once to get a ValueError if usedforsecurity is needed
hash_gen(disable_alert=True)
except ValueError:
# Some systems may support the 'usedforsecurity' option
# so try with that (but display a warning when it is used)
hash_gen = DeprecatedHash(
algo, tty.warn, disable_security_check=True)
else:
hash_gen = getattr(hashlib, algo)
_hash_functions[algo] = hash_gen
return hash_gen
def hash_algo_for_digest(hexdigest):
"""Gets name of the hash algorithm for a hex digest."""
bytes = len(hexdigest) / 2
if bytes not in _size_to_hash:
raise ValueError(
'Spack knows no hash algorithm for this digest: %s' % hexdigest)
return _size_to_hash[bytes]
def hash_fun_for_digest(hexdigest):
"""Gets a hash function corresponding to a hex digest."""
return hash_fun_for_algo(hash_algo_for_digest(hexdigest))
def checksum(hashlib_algo, filename, **kwargs):
"""Returns a hex digest of the filename generated using an
algorithm from hashlib.
"""
block_size = kwargs.get('block_size', 2**20)
hasher = hashlib_algo()
with open(filename, 'rb') as file:
while True:
data = file.read(block_size)
if not data:
break
hasher.update(data)
return hasher.hexdigest()
class Checker(object):
"""A checker checks files against one particular hex digest.
It will automatically determine what hashing algorithm
to used based on the length of the digest it's initialized
with. e.g., if the digest is 32 hex characters long this will
use md5.
Example: know your tarball should hash to 'abc123'. You want
to check files against this. You would use this class like so::
hexdigest = 'abc123'
checker = Checker(hexdigest)
success = checker.check('downloaded.tar.gz')
After the call to check, the actual checksum is available in
checker.sum, in case it's needed for error output.
You can trade read performance and memory usage by
adjusting the block_size optional arg. By default it's
a 1MB (2**20 bytes) buffer.
"""
def __init__(self, hexdigest, **kwargs):
self.block_size = kwargs.get('block_size', 2**20)
self.hexdigest = hexdigest
self.sum = None
self.hash_fun = hash_fun_for_digest(hexdigest)
@property
def hash_name(self):
"""Get the name of the hash function this Checker is using."""
return self.hash_fun().name.lower()
def check(self, filename):
"""Read the file with the specified name and check its checksum
against self.hexdigest. Return True if they match, False
otherwise. Actual checksum is stored in self.sum.
"""
self.sum = checksum(
self.hash_fun, filename, block_size=self.block_size)
return self.sum == self.hexdigest
def prefix_bits(byte_array, bits):
"""Return the first <bits> bits of a byte array as an integer."""
if sys.version_info < (3,):
b2i = ord # In Python 2, indexing byte_array gives str
else:
b2i = lambda b: b # In Python 3, indexing byte_array gives int
result = 0
n = 0
for i, b in enumerate(byte_array):
n += 8
result = (result << 8) | b2i(b)
if n >= bits:
break
result >>= (n - bits)
return result
def bit_length(num):
"""Number of bits required to represent an integer in binary."""
s = bin(num)
s = s.lstrip('-0b')
return len(s)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/xxd-standalone/package.py
|
# 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)
import os
from spack import *
class XxdStandalone(MakefilePackage):
"""xxd creates a hex dump of a given file or standard input.
It is bundled with vim, but as xxd is used in build scripts,
it makes sense to have it available as a standalone package."""
homepage = "https://www.vim.org/"
url = "https://github.com/vim/vim/archive/v8.2.1201.tar.gz"
maintainers = ['haampie']
build_targets = ['-C', os.path.join('src', 'xxd')]
provides('xxd')
version('8.2.1201', sha256='39032fe866f44724b104468038dc9ac4ff2c00a4b18c9a1e2c27064ab1f1143d')
def install(self, spec, prefix):
mkdirp(prefix.bin)
install(os.path.join(self.build_directory, 'src', 'xxd', 'xxd'), prefix.bin)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/keyutils/package.py
|
<gh_stars>10-100
# 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)
class Keyutils(MakefilePackage):
"""These tools are used to control the key management system built
into the Linux kernel."""
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/"
url = "https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-1.6.1.tar.gz"
version('1.6.1', sha256='3c71dcfc6900d07b02f4e061d8fb218a4ae6519c1d283d6a57b8e27718e2f557')
version('1.6', sha256='c6a27b4e3d0122d921f3dcea4b1f02a8616ca844535960d6af76ef67d015b5cf')
version('1.5.10', sha256='e1fdbde234c786b65609a4cf080a2c5fbdb57f049249c139160c85fc3dfa7da9')
version('1.5.9', sha256='2dc0bdb099ab8331e02e5dbbce320359bef76eda0a4ddbd2ba1d1b9d3a8cdff8')
def install(self, spec, prefix):
install_tree('.', prefix)
mkdirp(prefix.include)
install(join_path(prefix, '*.h'), prefix.include)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/jansi/package.py
|
# 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 import *
class Jansi(MavenPackage):
"""Jansi is a small java library that allows you to use
ANSI escape codes to format your console output which
works even on Windows."""
homepage = "https://fusesource.github.io/jansi/"
url = "https://github.com/fusesource/jansi/archive/jansi-project-1.18.tar.gz"
version('1.18', sha256='73cd47ecf370a33c6e76afb5d9a8abf99489361d7bd191781dbd9b7efd082aa5')
version('1.17.1', sha256='3d7280eb14edc82e480d66b225470ed6a1da5c5afa4faeab7804a1f15e53b2cd')
version('1.17', sha256='aa30765df4912d8bc1a00b1cb9e50b3534c060dec84f35f1d0c6fbf40ad71b67')
version('1.16', sha256='5f600cfa151367e029baa9ce33491059575945791ff9db82b8df8d4848187086')
version('1.15', sha256='620c59deea17408eeddbe398d3638d7c9971de1807e494eb33fdf8c994b95104')
depends_on('java@8', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/munge/package.py
|
<gh_stars>10-100
# 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)
import os
from spack import *
class Munge(AutotoolsPackage):
""" MUNGE Uid 'N' Gid Emporium """
homepage = "https://dun.github.io/munge/"
url = "https://github.com/dun/munge/releases/download/munge-0.5.14/munge-0.5.14.tar.xz"
maintainers = ['ChristianTackeGSI']
version('0.5.14', sha256='6606a218f18090fa1f702e3f6fb608073eb6aafed534cf7dd81b67b2e0d30640')
version('0.5.13', sha256='99753dfd06a4f063c36f3fb0eb1964f394feb649937d94c4734d85b7964144da')
version('0.5.12', sha256='e972e3c3e947995a99e023f5758047db16cfe2f0c2c9ca76399dc1511fa71be8')
version('0.5.11', sha256='8e075614f81cb0a6df21a0aafdc825498611a04429d0876f074fc828739351a5',
url='https://github.com/dun/munge/releases/download/munge-0.5.11/munge-0.5.11.tar.bz2')
variant('localstatedir', default='PREFIX/var', values=any,
description='Set local state path (possibly to /var)')
depends_on('openssl')
depends_on('libgcrypt')
depends_on('bzip2')
def configure_args(self):
args = []
localstatedir = self.spec.variants['localstatedir'].value
if localstatedir != 'PREFIX/var':
args.append('--localstatedir={0}'.format(localstatedir))
return args
def install(self, spec, prefix):
os.makedirs(os.path.join(prefix, "lib/systemd/system"))
super(Munge, self).install(spec, prefix)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/ecoslim/package.py
|
# 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 import *
class Ecoslim(CMakePackage):
"""EcoSLIM is a Lagrangian, particle-tracking code that simulates
advective and diffusive movement of water parcels. EcoSLIM
integrates seamlessly with ParFlow-CLM."""
homepage = "https://github.com/reedmaxwell/EcoSLIM"
url = "https://github.com/reedmaxwell/EcoSLIM/archive/refs/tags/v1.3.tar.gz"
git = "https://github.com/reedmaxwell/EcoSLIM.git"
maintainers = ['reedmaxwell', 'lecondon', 'smithsg84']
version('1.3', sha256='b532e570b4767e4fa84123d8773732150679e8e3d7fecd5c6e99fb1d4dc57b84')
version('master', branch='master')
def cmake_args(self):
"""Populate cmake arguments for EcoSLIM."""
return []
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-python-magic/package.py
|
# 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 import *
class PyPythonMagic(PythonPackage):
"""A python wrapper for libmagic.
This project is named python-magic but imports as the module name "magic".
"""
homepage = "https://github.com/ahupp/python-magic"
pypi = "python-magic/python-magic-0.4.15.tar.gz"
version('0.4.24', sha256='de800df9fb50f8ec5974761054a708af6e4246b03b4bdaee993f948947b0ebcf')
version('0.4.15', sha256='f3765c0f582d2dfc72c15f3b5a82aecfae9498bd29ca840d72f37d7bd38bfcd5')
depends_on('python@2.7.0:2.7,3.5:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('file', type='run')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/rnaquast/package.py
|
<gh_stars>10-100
# 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)
import os
from spack import *
class Rnaquast(Package):
"""Quality assessment of de novo transcriptome assemblies from RNA-Seq data
rnaQUAST is a tool for evaluating RNA-Seq assemblies using reference genome
and gene database. In addition, rnaQUAST is also capable of estimating gene
database coverage by raw reads and de novo quality assessment
using third-party software."""
homepage = "https://github.com/ablab/rnaquast"
url = "https://github.com/ablab/rnaquast/archive/refs/tags/v2.2.0.tar.gz"
maintainers = ['dorton21']
version('2.2.0', sha256='117dff9d9c382ba74b7b0ff24bc7b95b9ca6aa701ebf8afd22943aa54e382334')
depends_on('python@2.5:', type=('build', 'run'))
depends_on('py-matplotlib', type=('build', 'run'))
depends_on('py-joblib', type=('build', 'run'))
depends_on('py-gffutils', type=('build', 'run'))
depends_on('gmap-gsnap', type=('build', 'run'))
depends_on('blast-plus', type=('build', 'run'))
def install(self, spec, prefix):
install_tree('.', prefix.bin)
os.rename('%s/rnaQUAST.py' % prefix.bin, '%s/rnaQUAST' % prefix.bin)
def setup_run_environment(self, env):
env.prepend_path('PATH', prefix.bin)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/log4c/package.py
|
<gh_stars>10-100
# 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 import *
class Log4c(AutotoolsPackage):
"""Library for writing log messages from C programs"""
homepage = "http://log4c.sourceforge.net/"
url = "https://downloads.sourceforge.net/project/log4c/log4c/1.2.4/log4c-1.2.4.tar.gz"
version('1.2.4', sha256='5991020192f52cc40fa852fbf6bbf5bd5db5d5d00aa9905c67f6f0eadeed48ea')
depends_on('expat@1.95.1:')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/bml/package.py
|
<filename>var/spack/repos/builtin/packages/bml/package.py
# 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 import *
class Bml(CMakePackage):
"""The basic matrix library (bml) is a collection of various matrix data
formats (in dense and sparse) and their associated algorithms for basic
matrix operations."""
homepage = "https://lanl.github.io/bml/"
url = "https://github.com/lanl/bml/tarball/v1.2.2"
git = "https://github.com/lanl/bml.git"
version('develop', branch='master')
version('1.3.1', sha256='17145eda96aa5e550dcbff1ee7ce62b45723af8210b1ab70c5975ec792fa3d13')
version('1.3.0', sha256='d9465079fe77210eb2af2dcf8ed96802edf5bb76bfbfdbcc97e206c8cd460b07')
version('1.2.3', sha256='9a2ee6c47d2445bfdb34495497ea338a047e9e4767802af47614d9ff94b0c523')
version('1.2.2', sha256='89ab78f9fe8395fe019cc0495a1d7b69875b5708069faeb831ddb9a6a9280a8a')
version('1.1.0', sha256='29162f1f7355ad28b44d3358206ccd3c7ac7794ee13788483abcbd2f8063e7fc')
variant('shared', default=True, description='Build shared libs')
variant('mpi', default=True, description='Build with MPI Support')
conflicts('+mpi', when='@:1.2.2')
depends_on("blas")
depends_on("lapack")
depends_on('mpi', when='+mpi')
depends_on('python', type='build')
def cmake_args(self):
args = [
self.define_from_variant('BUILD_SHARED_LIBS', 'shared')
]
spec = self.spec
if '+mpi' in spec:
args.append('-DBML_MPI=True')
args.append('-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc)
args.append('-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx)
args.append('-DCMAKE_Fortran_COMPILER=%s' % spec['mpi'].mpifc)
else:
args.append('-DBML_MPI=False')
return args
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/alpaka/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class Alpaka(CMakePackage, CudaPackage):
"""Abstraction Library for Parallel Kernel Acceleration."""
homepage = "https://alpaka.readthedocs.io"
url = "https://github.com/alpaka-group/alpaka/archive/refs/tags/0.6.0.tar.gz"
git = "https://github.com/alpaka-group/alpaka.git"
maintainers = ['vvolkl']
version('develop', branch='develop')
version('0.8.0', sha256='e01bc377a7657d9a3e0c5f8d3f83dffbd7d0b830283c59efcbc1fb98cf88de43')
version('0.7.0', sha256='4b61119a7b3b073f281ba15b63430db98b77dbd9420bc290a114f80121fbdd97')
version('0.6.0', sha256='7424ecaee3af15e587b327e983998410fa379c61d987bfe923c7e95d65db11a3')
version('0.5.0', sha256='0ba08ea19961dd986160219ba00d6162fe7758980d88a606eff6494d7b3a6cd1')
version('0.4.0', sha256='ad7905b13c22abcee4344ba225a65078e3f452ad45a9eda907e7d27c08315e46')
variant("backend", multi=True, values=('serial', 'threads', 'fiber', 'tbb', 'omp2_gridblock', 'omp2_blockthread', 'omp5', 'oacc', 'cuda', 'cuda_only', 'hip', 'hip_only'), description="Backends to enable", default='serial')
variant("examples", default=False, description="Build alpaka examples")
depends_on('boost')
depends_on('boost+fiber', when="backend=fiber")
depends_on('cmake@3.18:', when='@0.7.0:')
# make sure no other backend is enabled if using cuda_only or hip_only
for v in ('serial', 'threads', 'fiber', 'tbb', 'oacc',
'omp2_gridblock', 'omp2_blockthread', 'omp5', 'cuda', 'hip'):
conflicts('backend=cuda_only,%s' % v)
conflicts('backend=hip_only,%s' % v)
conflicts('backend=cuda_only,hip_only')
for v in ('omp2_blockthread', 'omp2_blockthread', 'omp5'):
conflicts('backend=oacc,%s' % v)
# todo: add conflict between cuda 11.3 and gcc 10.3.0
# see https://github.com/alpaka-group/alpaka/issues/1297
def cmake_args(self):
spec = self.spec
args = []
if 'backend=serial' in spec:
args.append(self.define("ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLE", True))
if 'backend=threads' in self.spec:
args.append(self.define("ALPAKA_ACC_CPU_B_SEQ_T_THREADS_ENABLE", True))
if 'backend=fiber' in spec:
args.append(self.define("ALPAKA_ACC_CPU_B_SEQ_T_FIBERS_ENABLE", True))
if 'backend=tbb' in spec:
args.append(self.define("ALPAKA_ACC_CPU_B_TBB_T_SEQ_ENABLE", True))
if 'backend=omp2_gridblock' in spec:
args.append(self.define("ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE", True))
if 'backend=omp2_blockthread' in spec:
args.append(self.define("ALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLE", True))
if 'backend=omp5' in spec:
args.append(self.define("ALPAKA_ACC_ANY_BT_OMP5_ENABLE", True))
if 'backend=oacc' in spec:
args.append(self.define("ALPAKA_ACC_ANY_BT_OACC_ENABLE", True))
if 'backend=cuda' in spec:
args.append(self.define("ALPAKA_ACC_GPU_CUDA_ENABLE", True))
if 'backend=cuda_only' in spec:
args.append(self.define("ALPAKA_ACC_GPU_CUDA_ENABLE", True))
args.append(self.define("ALPAKA_ACC_GPU_CUDA_ONLY_MODE", True))
if 'backend=hip' in spec:
args.append(self.define("ALPAKA_ACC_GPU_HIP_ENABLE", True))
if 'backend=hip_only' in spec:
args.append(self.define("ALPAKA_ACC_GPU_HIP_ENABLE", True))
args.append(self.define("ALPAKA_ACC_GPU_HIP_ONLY_MODE", True))
args.append(self.define_from_variant("alpaka_BUILD_EXAMPLES",
"examples"))
# need to define, as it is explicitly declared as an option by alpaka:
args.append(self.define("BUILD_TESTING", self.run_tests))
return args
|
player1537-forks/spack
|
var/spack/repos/builtin.mock/packages/py-extension1/package.py
|
<gh_stars>10-100
# 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)
import os.path
from spack import *
class PyExtension1(PythonPackage):
"""A package which extends python"""
homepage = "http://www.example.com"
url = "http://www.example.com/extension1-1.0.tar.gz"
# Override settings in base class
maintainers = []
version('1.0', '00000000000000000000000000000110')
version('2.0', '00000000000000000000000000000120')
def install(self, spec, prefix):
mkdirp(prefix.bin)
with open(os.path.join(prefix.bin, 'py-extension1'), 'w+') as fout:
fout.write(str(spec.version))
extends('python')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-hieroglyph/package.py
|
# 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 import *
class PyHieroglyph(PythonPackage):
"""Hieroglyph is an extension for Sphinx which builds HTML
presentations from ReStructured Text documents.
"""
homepage = "https://github.com/nyergler/hieroglyph"
pypi = "hieroglyph/hieroglyph-1.0.0.tar.gz"
version('2.1.0', sha256='b4b5db13a9d387438e610c2ca1d81386ccd206944d9a9dd273f21874486cddaf')
version('1.0.0', sha256='8e137f0b1cd60c47b870011089790d3c8ddb74fcf409a75ddf2c7f2516ff337c')
depends_on('python@3:', when='@2:', type=('build', 'run'))
depends_on('py-setuptools', type=('build', 'run'))
depends_on('py-sphinx@1.2:', when='@1.0.0:1.9', type=('build', 'run'))
depends_on('py-sphinx@2.0:', when='@2.0.0:', type=('build', 'run'))
depends_on('py-six', when='@1.0.0:1.9', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-rsnns/package.py
|
# 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 import *
class RRsnns(RPackage):
"""Neural Networks using the Stuttgart Neural Network Simulator (SNNS).
The Stuttgart Neural Network Simulator (SNNS) is a library containing many
standard implementations of neural networks. This package wraps the SNNS
functionality to make it available from within R. Using the RSNNS low-level
interface, all of the algorithmic functionality and flexibility of SNNS can
be accessed. Furthermore, the package contains a convenient high-level
interface, so that the most common neural network topologies and learning
algorithms integrate seamlessly into R."""
cran = "RSNNS"
version('0.4-14', sha256='7f6262cb2b49b5d5979ccce9ded9cbb2c0b348fd7c9eabc1ea1d31c51a102c20')
version('0.4-12', sha256='b18dfeda71573bc92c6888af72da407651bff7571967965fd3008f0d331743b9')
version('0.4-11', sha256='87943126e98ae47f366e3025d0f3dc2f5eb0aa2924508fd9ee9a0685d7cb477c')
version('0.4-10.1', sha256='38bb3d172390bd01219332ec834744274b87b01f94d23b29a9d818c2bca04071')
version('0.4-7', sha256='ec941dddda55e4e29ed281bd8768a93d65e0d86d56ecab0f2013c64c8d1a4994')
depends_on('r@2.10.0:', type=('build', 'run'))
depends_on('r-rcpp@0.8.5:', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/hepmcanalysis/package.py
|
<gh_stars>1-10
# 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 import *
class Hepmcanalysis(MakefilePackage):
"""The HepMCAnalysis Tool is a tool for generator
validation and comparisons."""
homepage = "https://hepmcanalysistool.desy.de/"
url = "https://hepmcanalysistool.desy.de/releases/HepMCAnalysis-00-03-04-13.tar.gz"
version('3.4.13', sha256='be9937c6de493a5671258919493b0caa0cecca77853a2075f5cecce1071e0029')
tags = ['hep']
depends_on('hepmc')
depends_on('fastjet')
depends_on('root')
depends_on('clhep')
variant('cxxstd',
default='11',
values=('11', '14', '17'),
multi=False,
description='Use the specified C++ standard when building.')
patch('lcg.patch')
def edit(self, spec, prefix):
filter_file(r"CXXFLAGS(.*)", r"CXXFLAGS\1 -std=c++" +
self.spec.variants['cxxstd'].value, "config.mk")
def setup_build_environment(self, env):
env.set("HepMCdir", self.spec['hepmc'].prefix)
env.set("FastJetdir", self.spec['fastjet'].prefix)
env.set("CLHEPdir", self.spec['clhep'].prefix)
def url_for_version(self, version):
parts = [int(x) for x in str(version).split('.')]
root = "https://hepmcanalysistool.desy.de/releases/HepMCAnalysis-00-"
return root + "{0:02d}-{1:02d}-{2:02d}.tar.gz".format(*parts)
def install(self, spec, prefix):
install_tree('lib', prefix.lib)
install_tree('include', prefix.include)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/libspatialite/package.py
|
<filename>var/spack/repos/builtin/packages/libspatialite/package.py
# 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)
import os
from spack import *
class Libspatialite(AutotoolsPackage):
"""SpatiaLite is an open source library intended to extend the
SQLite core to support fully fledged Spatial SQL capabilities."""
homepage = "https://www.gaia-gis.it"
url = "https://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.3.0a.tar.gz"
manual_download = True
version('5.0.1', sha256='eecbc94311c78012d059ebc0fae86ea5ef6eecb13303e6e82b3753c1b3409e98')
version('5.0.0', sha256='7b7fd70243f5a0b175696d87c46dde0ace030eacc27f39241c24bac5dfac6dac')
# Must download manually from:
# https://www.gaia-gis.it/fossil/libspatialite/info/c7f67038bf06d98d
# For instructions on the file:// below..
# https://github.com/spack/spack/issues/2489
version('5.0.0.2.c7f67038bf',
sha256='f8100f71b769c7db066c6f938af6b00e920e4b90ac14c00a4f3ed7171565caab',
url="file://%s/SpatiaLite-c7f67038bf.tar.gz" % os.getcwd())
version('5.0.0-beta0', sha256='caacf5378a5cfab9b8e98bb361e2b592e714e21f5c152b795df80d0ab1da1c42')
version('4.3.0a',
sha256='88900030a4762904a7880273f292e5e8ca6b15b7c6c3fb88ffa9e67ee8a5a499')
version('3.0.1', sha256='4983d6584069fd5ff0cfcccccee1015088dab2db177c0dc7050ce8306b68f8e6')
depends_on('pkgconfig', type='build')
depends_on('sqlite+rtree')
depends_on('proj@:5', when='@:4')
# PROJ.6 is OK w/ newer versions
# https://www.gaia-gis.it/fossil/libspatialite/wiki?name=PROJ.6
depends_on('proj')
depends_on('geos')
depends_on('freexl')
depends_on('iconv')
depends_on('libxml2')
depends_on('minizip', when='@5.0.0:')
depends_on('librttopo', when='@5.0.1:')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-wheel/package.py
|
# 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 import *
class PyWheel(Package):
"""A built-package format for Python."""
homepage = "https://github.com/pypa/wheel"
url = "https://files.pythonhosted.org/packages/py2.py3/w/wheel/wheel-0.34.2-py2.py3-none-any.whl"
list_url = "https://pypi.org/simple/wheel/"
version('0.37.0', sha256='21014b2bd93c6d0034b6ba5d35e4eb284340e09d63c59aef6fc14b0f346146fd', expand=False)
version('0.36.2', sha256='78b5b185f0e5763c26ca1e324373aadd49182ca90e825f7853f4b2509215dc0e', expand=False)
version('0.35.1', sha256='497add53525d16c173c2c1c733b8f655510e909ea78cc0e29d374243544b77a2', expand=False)
version('0.34.2', sha256='df277cb51e61359aba502208d680f90c0493adec6f0e848af94948778aed386e', expand=False)
version('0.33.6', sha256='f4da1763d3becf2e2cd92a14a7c920f0f00eca30fdde9ea992c836685b9faf28', expand=False)
version('0.33.4', sha256='5e79117472686ac0c4aef5bad5172ea73a1c2d1646b808c35926bd26bdfb0c08', expand=False)
version('0.33.1', sha256='8eb4a788b3aec8abf5ff68d4165441bc57420c9f64ca5f471f58c3969fe08668', expand=False)
version('0.32.3', sha256='1e53cdb3f808d5ccd0df57f964263752aa74ea7359526d3da6c02114ec1e1d44', expand=False)
version('0.29.0', sha256='ea8033fc9905804e652f75474d33410a07404c1a78dd3c949a66863bd1050ebd', expand=False)
version('0.26.0', sha256='c92ed3a2dd87c54a9e20024fb0a206fe591c352c745fff21e8f8c6cdac2086ea', expand=False)
extends('python')
depends_on('python@2.7:2.8,3.5:', when='@0.34:', type=('build', 'run'))
depends_on('python@2.7:2.8,3.4:', when='@0.30:', type=('build', 'run'))
depends_on('python@2.6:2.8,3.2:', type=('build', 'run'))
depends_on('py-pip', type='build')
def install(self, spec, prefix):
# To build wheel from source, you need setuptools and wheel already installed.
# We get around this by using a pre-built wheel, see:
# https://discuss.python.org/t/bootstrapping-a-specific-version-of-pip/12306
args = std_pip_args + ['--prefix=' + prefix, self.stage.archive_file]
pip(*args)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/libisal/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class Libisal(AutotoolsPackage):
"""ISA-L is a collection of optimized low-level functions targeting
storage applications."""
homepage = "https://github.com/intel/isa-l"
url = "https://github.com/intel/isa-l/archive/v2.29.0.tar.gz"
version('2.29.0', sha256='832d9747ef3f0c8c05d39e3d7fd6ee5299a844e1ee7382fc8c8b52a268f36eda')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('nasm', type='build')
def autoreconf(self, spec, prefix):
autogen = Executable('./autogen.sh')
autogen()
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/cxxtest/package.py
|
<filename>var/spack/repos/builtin/packages/cxxtest/package.py
# 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 import *
class Cxxtest(Package):
"""C++ unit test system."""
homepage = "https://cxxtest.com/"
url = "https://sourceforge.net/projects/cxxtest/files/cxxtest/4.4/cxxtest-4.4.tar.gz/download"
version('4.4', sha256='1c154fef91c65dbf1cd4519af7ade70a61d85a923b6e0c0b007dc7f4895cf7d8')
def install(self, spec, prefix):
install_tree(self.stage.source_path, prefix)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-sparsem/package.py
|
<filename>var/spack/repos/builtin/packages/r-sparsem/package.py
# 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 import *
class RSparsem(RPackage):
"""Sparse Linear Algebra.
Some basic linear algebra functionality for sparse matrices is provided:
including Cholesky decomposition and backsolving as well as standard R
subsetting and Kronecker products."""
cran = "SparseM"
version('1.81', sha256='bd838f381ace680fa38508ff70b3d83cb9ffa28ac1ab568509249bca53c34b33')
version('1.78', sha256='d6b79ec881a10c91cb03dc23e6e783080ded9db4f2cb723755aa0d7d29a8b432')
version('1.77', sha256='a9329fef14ae4fc646df1f4f6e57efb0211811599d015f7bc04c04285495d45c')
version('1.76', sha256='c2c8e44376936a5fe6f09a37f3668016e66cbc687519cc952aa346a658a2b69b')
version('1.74', sha256='4712f0c80e9f3cb204497f146ba60b15e75976cdb7798996a7c51f841a85eeba')
version('1.7', sha256='df61550b267f8ee9b9d3b17acbadd57a428b43e5e13a6b1c56ed4c38cb523369')
depends_on('r@2.15:', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/fermikit/package.py
|
<filename>var/spack/repos/builtin/packages/fermikit/package.py
# 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 import *
class Fermikit(MakefilePackage):
"""De novo assembly based variant calling pipeline for Illumina short
reads"""
homepage = "https://github.com/lh3/fermikit"
git = "https://github.com/lh3/fermikit.git"
version('2017-11-7', commit='bf9c7112221577ba110665bddca8f1987250bdc7',
submodules=True)
depends_on('zlib')
depends_on('sse2neon', when='target=aarch64:')
patch('ksw_for_aarch64.patch', when='target=aarch64:')
def install(self, spec, prefix):
install_tree('fermi.kit', prefix.bin)
|
player1537-forks/spack
|
lib/spack/llnl/util/tty/pty.py
|
# 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)
"""The pty module handles pseudo-terminals.
Currently, the infrastructure here is only used to test llnl.util.tty.log.
If this is used outside a testing environment, we will want to reconsider
things like timeouts in ``ProcessController.wait()``, which are set to
get tests done quickly, not to avoid high CPU usage.
"""
from __future__ import print_function
import multiprocessing
import os
import re
import signal
import sys
import termios
import time
import traceback
import llnl.util.tty.log as log
from spack.util.executable import which
class ProcessController(object):
"""Wrapper around some fundamental process control operations.
This allows one process (the controller) to drive another (the
minion) similar to the way a shell would, by sending signals and I/O.
"""
def __init__(self, pid, controller_fd,
timeout=1, sleep_time=1e-1, debug=False):
"""Create a controller to manipulate the process with id ``pid``
Args:
pid (int): id of process to control
controller_fd (int): controller fd attached to pid's stdin
timeout (int): time in seconds for wait operations to time out
(default 1 second)
sleep_time (int): time to sleep after signals, to control the
signal rate of the controller (default 1e-1)
debug (bool): whether ``horizontal_line()`` and ``status()`` should
produce output when called (default False)
``sleep_time`` allows the caller to insert delays after calls
that signal or modify the controlled process. Python behaves very
poorly if signals arrive too fast, and drowning a Python process
with a Python handler with signals can kill the process and hang
our tests, so we throttle this a closer-to-interactive rate.
"""
self.pid = pid
self.pgid = os.getpgid(pid)
self.controller_fd = controller_fd
self.timeout = timeout
self.sleep_time = sleep_time
self.debug = debug
# we need the ps command to wait for process statuses
self.ps = which("ps", required=True)
def get_canon_echo_attrs(self):
"""Get echo and canon attributes of the terminal of controller_fd."""
cfg = termios.tcgetattr(self.controller_fd)
return (
bool(cfg[3] & termios.ICANON),
bool(cfg[3] & termios.ECHO),
)
def horizontal_line(self, name):
"""Labled horizontal line for debugging."""
if self.debug:
sys.stderr.write(
"------------------------------------------- %s\n" % name
)
def status(self):
"""Print debug message with status info for the minion."""
if self.debug:
canon, echo = self.get_canon_echo_attrs()
sys.stderr.write("canon: %s, echo: %s\n" % (
"on" if canon else "off",
"on" if echo else "off",
))
sys.stderr.write("input: %s\n" % self.input_on())
sys.stderr.write("bg: %s\n" % self.background())
sys.stderr.write("\n")
def input_on(self):
"""True if keyboard input is enabled on the controller_fd pty."""
return self.get_canon_echo_attrs() == (False, False)
def background(self):
"""True if pgid is in a background pgroup of controller_fd's tty."""
return self.pgid != os.tcgetpgrp(self.controller_fd)
def tstp(self):
"""Send SIGTSTP to the controlled process."""
self.horizontal_line("tstp")
os.killpg(self.pgid, signal.SIGTSTP)
time.sleep(self.sleep_time)
def cont(self):
self.horizontal_line("cont")
os.killpg(self.pgid, signal.SIGCONT)
time.sleep(self.sleep_time)
def fg(self):
self.horizontal_line("fg")
with log.ignore_signal(signal.SIGTTOU):
os.tcsetpgrp(self.controller_fd, os.getpgid(self.pid))
time.sleep(self.sleep_time)
def bg(self):
self.horizontal_line("bg")
with log.ignore_signal(signal.SIGTTOU):
os.tcsetpgrp(self.controller_fd, os.getpgrp())
time.sleep(self.sleep_time)
def write(self, byte_string):
self.horizontal_line("write '%s'" % byte_string.decode("utf-8"))
os.write(self.controller_fd, byte_string)
def wait(self, condition):
start = time.time()
while (((time.time() - start) < self.timeout) and not condition()):
time.sleep(1e-2)
assert condition()
def wait_enabled(self):
self.wait(lambda: self.input_on() and not self.background())
def wait_disabled(self):
self.wait(lambda: not self.input_on() and self.background())
def wait_disabled_fg(self):
self.wait(lambda: not self.input_on() and not self.background())
def proc_status(self):
status = self.ps("-p", str(self.pid), "-o", "stat", output=str)
status = re.split(r"\s+", status.strip(), re.M)
return status[1]
def wait_stopped(self):
self.wait(lambda: "T" in self.proc_status())
def wait_running(self):
self.wait(lambda: "T" not in self.proc_status())
class PseudoShell(object):
"""Sets up controller and minion processes with a PTY.
You can create a ``PseudoShell`` if you want to test how some
function responds to terminal input. This is a pseudo-shell from a
job control perspective; ``controller_function`` and ``minion_function``
are set up with a pseudoterminal (pty) so that the controller can drive
the minion through process control signals and I/O.
The two functions should have signatures like this::
def controller_function(proc, ctl, **kwargs)
def minion_function(**kwargs)
``controller_function`` is spawned in its own process and passed three
arguments:
proc
the ``multiprocessing.Process`` object representing the minion
ctl
a ``ProcessController`` object tied to the minion
kwargs
keyword arguments passed from ``PseudoShell.start()``.
``minion_function`` is only passed ``kwargs`` delegated from
``PseudoShell.start()``.
The ``ctl.controller_fd`` will have its ``controller_fd`` connected to
``sys.stdin`` in the minion process. Both processes will share the
same ``sys.stdout`` and ``sys.stderr`` as the process instantiating
``PseudoShell``.
Here are the relationships between processes created::
._________________________________________________________.
| Minion Process | pid 2
| - runs minion_function | pgroup 2
|_________________________________________________________| session 1
^
| create process with controller_fd connected to stdin
| stdout, stderr are the same as caller
._________________________________________________________.
| Controller Process | pid 1
| - runs controller_function | pgroup 1
| - uses ProcessController and controller_fd to | session 1
| control minion |
|_________________________________________________________|
^
| create process
| stdin, stdout, stderr are the same as caller
._________________________________________________________.
| Caller | pid 0
| - Constructs, starts, joins PseudoShell | pgroup 0
| - provides controller_function, minion_function | session 0
|_________________________________________________________|
"""
def __init__(self, controller_function, minion_function):
self.proc = None
self.controller_function = controller_function
self.minion_function = minion_function
# these can be optionally set to change defaults
self.controller_timeout = 1
self.sleep_time = 0
def start(self, **kwargs):
"""Start the controller and minion processes.
Arguments:
kwargs (dict): arbitrary keyword arguments that will be
passed to controller and minion functions
The controller process will create the minion, then call
``controller_function``. The minion process will call
``minion_function``.
"""
self.proc = multiprocessing.Process(
target=PseudoShell._set_up_and_run_controller_function,
args=(self.controller_function, self.minion_function,
self.controller_timeout, self.sleep_time),
kwargs=kwargs,
)
self.proc.start()
def join(self):
"""Wait for the minion process to finish, and return its exit code."""
self.proc.join()
return self.proc.exitcode
@staticmethod
def _set_up_and_run_minion_function(
tty_name, stdout_fd, stderr_fd, ready, minion_function, **kwargs):
"""Minion process wrapper for PseudoShell.
Handles the mechanics of setting up a PTY, then calls
``minion_function``.
"""
# new process group, like a command or pipeline launched by a shell
os.setpgrp()
# take controlling terminal and set up pty IO
stdin_fd = os.open(tty_name, os.O_RDWR)
os.dup2(stdin_fd, sys.stdin.fileno())
os.dup2(stdout_fd, sys.stdout.fileno())
os.dup2(stderr_fd, sys.stderr.fileno())
os.close(stdin_fd)
if kwargs.get("debug"):
sys.stderr.write(
"minion: stdin.isatty(): %s\n" % sys.stdin.isatty())
# tell the parent that we're really running
if kwargs.get("debug"):
sys.stderr.write("minion: ready!\n")
ready.value = True
try:
minion_function(**kwargs)
except BaseException:
traceback.print_exc()
@staticmethod
def _set_up_and_run_controller_function(
controller_function, minion_function, controller_timeout,
sleep_time, **kwargs):
"""Set up a pty, spawn a minion process, execute controller_function.
Handles the mechanics of setting up a PTY, then calls
``controller_function``.
"""
os.setsid() # new session; this process is the controller
controller_fd, minion_fd = os.openpty()
pty_name = os.ttyname(minion_fd)
# take controlling terminal
pty_fd = os.open(pty_name, os.O_RDWR)
os.close(pty_fd)
ready = multiprocessing.Value('i', False)
minion_process = multiprocessing.Process(
target=PseudoShell._set_up_and_run_minion_function,
args=(pty_name, sys.stdout.fileno(), sys.stderr.fileno(),
ready, minion_function),
kwargs=kwargs,
)
minion_process.start()
# wait for subprocess to be running and connected.
while not ready.value:
time.sleep(1e-5)
pass
if kwargs.get("debug"):
sys.stderr.write("pid: %d\n" % os.getpid())
sys.stderr.write("pgid: %d\n" % os.getpgrp())
sys.stderr.write("sid: %d\n" % os.getsid(0))
sys.stderr.write("tcgetpgrp: %d\n" % os.tcgetpgrp(controller_fd))
sys.stderr.write("\n")
minion_pgid = os.getpgid(minion_process.pid)
sys.stderr.write("minion pid: %d\n" % minion_process.pid)
sys.stderr.write("minion pgid: %d\n" % minion_pgid)
sys.stderr.write(
"minion sid: %d\n" % os.getsid(minion_process.pid))
sys.stderr.write("\n")
sys.stderr.flush()
# set up controller to ignore SIGTSTP, like a shell
signal.signal(signal.SIGTSTP, signal.SIG_IGN)
# call the controller function once the minion is ready
try:
controller = ProcessController(
minion_process.pid, controller_fd, debug=kwargs.get("debug"))
controller.timeout = controller_timeout
controller.sleep_time = sleep_time
error = controller_function(minion_process, controller, **kwargs)
except BaseException:
error = 1
traceback.print_exc()
minion_process.join()
# return whether either the parent or minion failed
return error or minion_process.exitcode
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-maldiquant/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class RMaldiquant(RPackage):
"""Quantitative Analysis of Mass Spectrometry Data.
A complete analysis pipeline for matrix-assisted laser
desorption/ionization-time-of-flight (MALDI-TOF) and other two-dimensional
mass spectrometry data. In addition to commonly used plotting and
processing methods it includes distinctive features, namely baseline
subtraction methods such as morphological filters (TopHat) or the
statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP),
peak alignment using warping functions, handling of replicated measurements
as well as allowing spectra with different resolutions."""
cran = "MALDIquant"
version('1.21', sha256='0771f82034aa6a77af67f3572c900987b7e6b578d04d707c6e06689d021a2ff8')
version('1.19.3', sha256='a730327c1f8d053d29e558636736b7b66d0671a009e0004720b869d2c76ff32c')
version('1.19.2', sha256='8c6efc4ae4f1af4770b079db29743049f2fd597bcdefeaeb16f623be43ddeb87')
version('1.16.4', sha256='9b910dbd5dd1a739a17a7ee3f83d7e1ebad2fee89fd01a5b274415d2b6d3b0de')
depends_on('r@3.2.0:', type=('build', 'run'))
depends_on('r@4.0.0:', type=('build', 'run'), when='@1.21:')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-async-generator/package.py
|
# 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 import *
class PyAsyncGenerator(PythonPackage):
"""Provides async generator functionality to python 3.5."""
pypi = "async_generator/async_generator-1.10.tar.gz"
version('1.10', sha256='6ebb3d106c12920aaae42ccb6f787ef5eefdcdd166ea3d628fa8476abe712144')
depends_on('py-setuptools', type='build')
depends_on('python@3.5:')
|
player1537-forks/spack
|
lib/spack/spack/cmd/compilers.py
|
<reponame>player1537-forks/spack<filename>lib/spack/spack/cmd/compilers.py<gh_stars>10-100
# 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)
import spack.config
from spack.cmd.compiler import compiler_list
description = "list available compilers"
section = "system"
level = "short"
def setup_parser(subparser):
scopes = spack.config.scopes()
scopes_metavar = spack.config.scopes_metavar
subparser.add_argument(
'--scope', choices=scopes, metavar=scopes_metavar,
help="configuration scope to read/modify")
def compilers(parser, args):
compiler_list(args)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/libnfsidmap/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class Libnfsidmap(AutotoolsPackage):
"""Library to help mapping id's, mainly for NFSv4."""
homepage = "https://github.com/Distrotech/libnfsidmap/"
url = "https://github.com/Distrotech/libnfsidmap/archive/libnfsidmap-0-27-rc2.tar.gz"
version('0-26', sha256='8c6d62285b528d673fcb8908fbe230ae82287b292d90925d014c6f367e8425ef')
version('0-25', sha256='dbf844a2aa820d7275eca55c2e392d12453ab4020d37d532ea6beac47efc4725')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
def autoreconf(self, spec, prefix):
bash = which('bash')
bash('./autogen.sh')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/libhbaapi/package.py
|
# 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 import *
class Libhbaapi(AutotoolsPackage):
"""The SNIA HBA API library"""
homepage = "https://github.com/cleech/libHBAAPI"
url = "https://github.com/cleech/libHBAAPI/archive/v3.11.tar.gz"
version('3.11', sha256='c7b2530d616fd7bee46e214e7eb91c91803aec3297a7c6bbf73467a1edad4e10')
version('3.10', sha256='ca4f4ec3defa057c1b51bc87cc749efe5d54579e055d7a51688d18cc35166462')
version('3.9', sha256='8e60616abde44488fed05254988f9b41653d2204a7218072714d6623e099c863')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/ruby-asciidoctor/package.py
|
<filename>var/spack/repos/builtin/packages/ruby-asciidoctor/package.py
# 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)
class RubyAsciidoctor(RubyPackage):
"""A fast, open source text processor and publishing toolchain for
converting AsciiDoc content to HTML 5, DocBook 5, and other formats."""
homepage = "https://asciidoctor.org/"
url = "https://github.com/asciidoctor/asciidoctor/archive/v2.0.10.tar.gz"
version('2.0.10', sha256='afca74837e6d4b339535e8ba0b79f2ad00bd1eef78bf391cc36995ca2e31630a')
depends_on('ruby@2.3.0:', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/w3m/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class W3m(AutotoolsPackage):
"""
w3m is a text-based web browser as well as a pager like `more' or `less'.
With w3m you can browse web pages through a terminal emulator window (xterm,
rxvt or something like that). Moreover, w3m can be used as a text formatting
tool which typesets HTML into plain text.
"""
# The main w3m project is not active anymore, but distributions still keep
# and maintain it:
# https://sourceforge.net/p/w3m/support-requests/17/
# What source should distro packagers use for their w3m packages?
# Feel free to use Debian's branch as you need.
# Currently, Arch and Ubuntu (and Debian derivatives) use Debian's branch.
# Also, Gentoo, Fedora and openSUSE switched to Debian's branch.
homepage = "http://w3m.sourceforge.net/index.en.html"
url = "https://downloads.sourceforge.net/project/w3m/w3m/w3m-0.5.3/w3m-0.5.3.tar.gz"
maintainers = ['ronin_gw']
version('0.5.3', sha256='e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3')
# mandatory dependency
depends_on('bdw-gc')
# termlib
variant('termlib', default='ncurses', description='select termlib',
values=('ncurses', 'termcap', 'none'), multi=False)
depends_on('termcap', when='termlib=termcap')
depends_on('ncurses+termlib', when='termlib=ncurses')
# https support
variant('https', default=True, description='support https protocol')
depends_on('openssl@:1.0.2u', when='+https')
# X11 support
variant('image', default=True, description='enable image')
depends_on('libx11', when='+image')
# inline image support
variant('imagelib', default='imlib2', description='select imagelib',
values=('gdk-pixbuf', 'imlib2'), multi=False)
depends_on('gdk-pixbuf@2:+x11', when='imagelib=gdk-pixbuf +image')
depends_on('imlib2@1.0.5:', when='imagelib=imlib2 +image')
# fix for modern libraries
patch('fix_redef.patch')
patch('fix_gc.patch')
def patch(self):
# w3m is not developed since 2012, everybody is doing this:
# https://www.google.com/search?q=USE_EGD+w3m
filter_file('#define USE_EGD', '#undef USE_EGD', 'config.h.in')
def _add_arg_for_variant(self, args, variant, choices):
for avail_lib in choices:
if self.spec.variants[variant].value == avail_lib:
args.append('--with-{0}={1}'.format(variant, avail_lib))
return
def configure_args(self):
args = ['ac_cv_search_gettext=no', '--enable-unicode']
self._add_arg_for_variant(args, 'termlib', ('termcap', 'ncurses'))
if '+image' in self.spec:
args.append('--enable-image')
self._add_arg_for_variant(args, 'imagelib', ('gdk-pixbuf', 'imlib2'))
return args
def setup_build_environment(self, env):
if self.spec.variants['termlib'].value == 'ncurses':
env.append_flags('LDFLAGS', '-ltinfo')
env.append_flags('LDFLAGS', '-lncurses')
if '+image' in self.spec:
env.append_flags('LDFLAGS', '-lX11')
# parallel build causes build failure
parallel = False
def build(self, spec, prefix):
make('NLSTARGET=scripts/w3mman')
def install(self, spec, prefix):
make('NLSTARGET=scripts/w3mman', 'install')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/cosign/package.py
|
<filename>var/spack/repos/builtin/packages/cosign/package.py
# 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)
import os
from spack import *
class Cosign(Package):
"""
Cosign is a go package for container Signing, verification and storage
in an OCI registry.
"""
homepage = "https://github.com/sigstore/cosign"
url = "https://github.com/sigstore/cosign/archive/refs/tags/v1.3.1.tar.gz"
git = "https://github.com/sigstore/cosign.git"
version('main', branch='main')
version('1.3.1', sha256='7f7e0af52ee8d795440e66dcc1a7a25783e22d30935f4f957779628b348f38af')
depends_on("go", type='build')
def setup_build_environment(self, env):
# Point GOPATH at the top of the staging dir for the build step.
env.prepend_path('GOPATH', self.stage.path)
def install(self, spec, prefix):
go = which("go")
go("build", "-o", "cosign", os.path.join("cmd", "cosign", "main.go"))
mkdirp(prefix.bin)
install("cosign", prefix.bin)
|
player1537-forks/spack
|
lib/spack/spack/detection/path.py
|
<reponame>player1537-forks/spack
# 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)
"""Detection of software installed in the system based on paths inspections
and running executables.
"""
import collections
import os
import os.path
import re
import warnings
import llnl.util.filesystem
import llnl.util.tty
import spack.util.environment
from .common import (
DetectedPackage,
_convert_to_iterable,
executable_prefix,
is_executable,
)
def executables_in_path(path_hints=None):
"""Get the paths of all executables available from the current PATH.
For convenience, this is constructed as a dictionary where the keys are
the executable paths and the values are the names of the executables
(i.e. the basename of the executable path).
There may be multiple paths with the same basename. In this case it is
assumed there are two different instances of the executable.
Args:
path_hints (list): list of paths to be searched. If None the list will be
constructed based on the PATH environment variable.
"""
path_hints = path_hints or spack.util.environment.get_path('PATH')
search_paths = llnl.util.filesystem.search_paths_for_executables(*path_hints)
path_to_exe = {}
# Reverse order of search directories so that an exe in the first PATH
# entry overrides later entries
for search_path in reversed(search_paths):
for exe in os.listdir(search_path):
exe_path = os.path.join(search_path, exe)
if is_executable(exe_path):
path_to_exe[exe_path] = exe
return path_to_exe
def _group_by_prefix(paths):
groups = collections.defaultdict(set)
for p in paths:
groups[os.path.dirname(p)].add(p)
return groups.items()
def by_executable(packages_to_check, path_hints=None):
"""Return the list of packages that have been detected on the system,
searching by path.
Args:
packages_to_check (list): list of packages to be detected
path_hints (list): list of paths to be searched. If None the list will be
constructed based on the PATH environment variable.
"""
path_to_exe_name = executables_in_path(path_hints=path_hints)
exe_pattern_to_pkgs = collections.defaultdict(list)
for pkg in packages_to_check:
if hasattr(pkg, 'executables'):
for exe in pkg.executables:
exe_pattern_to_pkgs[exe].append(pkg)
pkg_to_found_exes = collections.defaultdict(set)
for exe_pattern, pkgs in exe_pattern_to_pkgs.items():
compiled_re = re.compile(exe_pattern)
for path, exe in path_to_exe_name.items():
if compiled_re.search(exe):
for pkg in pkgs:
pkg_to_found_exes[pkg].add(path)
pkg_to_entries = collections.defaultdict(list)
resolved_specs = {} # spec -> exe found for the spec
for pkg, exes in pkg_to_found_exes.items():
if not hasattr(pkg, 'determine_spec_details'):
llnl.util.tty.warn(
"{0} must define 'determine_spec_details' in order"
" for Spack to detect externally-provided instances"
" of the package.".format(pkg.name))
continue
for prefix, exes_in_prefix in sorted(_group_by_prefix(exes)):
# TODO: multiple instances of a package can live in the same
# prefix, and a package implementation can return multiple specs
# for one prefix, but without additional details (e.g. about the
# naming scheme which differentiates them), the spec won't be
# usable.
try:
specs = _convert_to_iterable(
pkg.determine_spec_details(prefix, exes_in_prefix)
)
except Exception as e:
specs = []
msg = 'error detecting "{0}" from prefix {1} [{2}]'
warnings.warn(msg.format(pkg.name, prefix, str(e)))
if not specs:
llnl.util.tty.debug(
'The following executables in {0} were decidedly not '
'part of the package {1}: {2}'
.format(prefix, pkg.name, ', '.join(
_convert_to_iterable(exes_in_prefix)))
)
for spec in specs:
pkg_prefix = executable_prefix(prefix)
if not pkg_prefix:
msg = "no bin/ dir found in {0}. Cannot add it as a Spack package"
llnl.util.tty.debug(msg.format(prefix))
continue
if spec in resolved_specs:
prior_prefix = ', '.join(
_convert_to_iterable(resolved_specs[spec]))
llnl.util.tty.debug(
"Executables in {0} and {1} are both associated"
" with the same spec {2}"
.format(prefix, prior_prefix, str(spec)))
continue
else:
resolved_specs[spec] = prefix
try:
spec.validate_detection()
except Exception as e:
msg = ('"{0}" has been detected on the system but will '
'not be added to packages.yaml [reason={1}]')
llnl.util.tty.warn(msg.format(spec, str(e)))
continue
if spec.external_path:
pkg_prefix = spec.external_path
pkg_to_entries[pkg.name].append(
DetectedPackage(spec=spec, prefix=pkg_prefix)
)
return pkg_to_entries
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-lizard/package.py
|
<gh_stars>10-100
# 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 import *
class PyLizard(PythonPackage):
"""A code analyzer without caring the C/C++ header files.
It works with Java, C/C++, JavaScript, Python, Ruby,
Swift, Objective C. Metrics includes cyclomatic
complexity number etc."""
homepage = "http://www.lizard.ws/"
pypi = "lizard/lizard-1.17.9.tar.gz"
version('1.17.9', sha256='76ee0e631d985bea1dd6521a03c6c2fa9dce5a2248b3d26c49890e9e085b7aed')
depends_on('py-setuptools', type='build')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-threadpoolctl/package.py
|
# 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)
class PyThreadpoolctl(PythonPackage):
"""Python helpers to limit the number of threads used in the
threadpool-backed of common native libraries used for scientific
computing and data science (e.g. BLAS and OpenMP)."""
homepage = "https://github.com/joblib/threadpoolctl"
pypi = "threadpoolctl/threadpoolctl-2.0.0.tar.gz"
version('3.0.0', sha256='d03115321233d0be715f0d3a5ad1d6c065fe425ddc2d671ca8e45e9fd5d7a52a')
version('2.0.0', sha256='48b3e3e9ee079d6b5295c65cbe255b36a3026afc6dde3fb49c085cd0c004bbcf')
depends_on('python@3.5:', type=('build', 'run'))
depends_on('python@3.6:', type=('build', 'run'), when='@3.0.0:')
depends_on('py-flit', type='build')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/py-pyro4/package.py
|
# 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)
# Package automatically generated using 'pip2spack' converter
class PyPyro4(PythonPackage):
"""
distributed object middleware for Python (RPC)
"""
homepage = "http://pyro4.readthedocs.io"
pypi = 'Pyro4/Pyro4-4.81.tar.gz'
maintainers = ['liuyangzhuan']
version('4.81', sha256='e130da06478b813173b959f7013d134865e07fbf58cc5f1a2598f99479cdac5f')
version('4.80', sha256='46847ca703de3f483fbd0b2d22622f36eff03e6ef7ec7704d4ecaa3964cb2220')
version('4.79', sha256='b1eb34c9a1e63f731ca480f3e2c48169341a25a7504397badbaaab07e0f3241e')
version('4.78', sha256='b69200747c4c69bfa6fa8b917806b0a9ee7939daaf67ab9bb5ccac7e5179feee')
version('4.77', sha256='2bfe12a22f396474b0e57c898c7e2c561a8f850bf2055d8cf0f7119f0c7a523f')
version('4.76', sha256='ac1fda8d3fd9b5ff2cb8e7e400f95a1b1ae28c5df1aa82d1833a5a898e476334')
version('4.75', sha256='3897c0254046d4cb412a4d1a8f2f9c2c1c1ae643a24db07d0abdb51acdb8d7b5')
version('4.74', sha256='89ed7b12c162e5124f322f992f9506c44f5e1a379926cf01ee73ef810d3bf75f')
version('4.73', sha256='536b07a097d0619e7ab1effa3747fda177a24168d17a07a93ca9ac30977608f7')
version('4.72', sha256='2766b53db49f70b0d047fa6871aeb47484ba7e50cf53cfa37d26f87742c0b6a8')
version('4.71', sha256='78b686b584c180061fe3cfc3adcad4da46b3a7f42be1f9f0d7491cd006541cf3')
version('4.70', sha256='614dc4a7a79a861ee15215a6e60081950b2790b7b5cc91555ebeec75d8444aa5')
version('4.63', sha256='67d2b34156619ba37e92100af95aade8129dd2b7327eb05821d43887451f7d7b')
version('4.62', sha256='e301edfb2bc47768b7222a68cae8de8be796d1d9f61cdbd1af9039985ed5009c')
version('4.61', sha256='c465cb2ea2a90b887988d4249de8c0566bdfb16101fdc570e07e598a92e94d1e')
version('4.60', sha256='52fa5fe8173d234f57b6ca3214df3f34e88356c94081685db6249bff8f0b4f7f')
version('4.59', sha256='6a39dadbd2a83b6fd5ab7f5402f8a4befd467b5c0404b8610a8797f748b72a38')
version('4.58', sha256='2c6d133bcec6039a681475bc878ec98c598ccd33105c1994c7b5217932ee2c0c')
version('4.57', sha256='fb3bf07951c2942b5f955770d50c0152565f0da79a2c1a359cfe2062fe0a82b2')
version('4.56', sha256='a80c27e1debbd8d8725ee4a8f0d30cf831dde5e80b04bfa9c912932c4c13d6aa')
version('4.55', sha256='49a7a142542d87dde1cecc8d3ee048ec9481ba861d61234d219fadd06e6ced96')
version('4.54', sha256='aede879916c0f6e84e560b38af421c24cb5089b66c8f632aa5ac48b20ecde93a')
version('4.53', sha256='c6ca6461472a74a7608a2247413b66e951889351fcf8e9eed5d7232ae844b702')
version('4.52', sha256='449f4bdf8dcbaca90e6436eb40c4e860b0de47346e2c7735d0584496d28451e5')
version('4.51', sha256='d6508b8c70d612356a8ddbe486890b03d840c37b5f7cd8e9366bc4c0dd44d3e6')
version('4.50', sha256='cb199540c2ceae9d67d5f2b20dc002d93f909d5072c3da4381c119d7a4b6d1cf')
version('4.49', sha256='6ae7fb0ce9ae5ca6f1d32487d8606219e7296ae7d22e650e7f9db63399608b76')
version('4.48', sha256='3115def913cf6035000047bb270efefb55a25449a17ed392afde6fd531c82fd2')
version('4.47', sha256='9354b722f9f5965ade5839241c8d7ff06ec2fac678a2c9e197a63966da241c89')
version('4.46', sha256='165ed717275217448d786f9c15777eca889f5344d54eef9482996dfee01b668b')
version('4.45', sha256='e32d3f32e52d84e3456c0d389a115b5430a8bb14dd01336c627355a2f34dba78')
version('4.43', sha256='b6f924fa74f21d14c851450e157711914a402bfc2f3a880c1b2c275fd4cda6d6')
version('4.42', sha256='03951643015a1537ad82fbf99fba6e208007447404aab1a020dce7216120d32a')
version('4.41', sha256='3af4749140e9d4032632277ac19e7fd4761856d2df0f0643c574d1e7174a9703')
version('4.40', sha256='00423d3710f60b2da146075a59e17bfa837f556ed2c8acafe05bc209dcaac3e9')
version('4.39', sha256='39c6ca7f86b0f0bebfeada687a5a8b99f66470a52b0f815195ae63c683266f24')
version('4.38', sha256='837fb552f54e46e54a13fa03c321073ba8373715346c4bc7e522b2c82a2c75c9')
version('4.37', sha256='2c4c9e7c3dbace3c75524324b6a686381be37bebab89b5001c0670418cec89c7')
version('4.36', sha256='fcbfbe22b044440fab3d6cbee11d18532b63accefe9cc30b2c41994cdeb08829')
version('4.35', sha256='97ef658b96fa10bac3e01097b1e2b6630fea2b307081ec6f2ac00f85e6020178')
version('4.34', sha256='36886e660290aa5afd06f735f587717f7f366b3535b7b0d3082b4e99ded9dc37')
version('4.33', sha256='9c01202190b7cdebe629e13abb70f050f421139f8115d1626321f442a9f54df8')
version('4.32', sha256='736eb96801881a61b9da72dced2d49574067443545892355af94411392526902')
version('4.31', sha256='0fd9342a216299ff24761e641714c7bd3e42c364f277eb3600d40085f4ace6c3')
version('4.30', sha256='1b38a52dd89cc6aee145d23bd74f586c73268938c6f346b20583ee0242d7d170')
version('4.29', sha256='3a17eaea8055962ff35bb9117f0860243d7977c34cbfcafc76e8e26309e339cf')
version('4.28', sha256='a094cb12e4e328e8b3b06bb313212f1826208c107fa6b48cf02f0ccdc32b562b')
version('4.27', sha256='ee32544fb04e7f4a2d223b442b306bd67cc900b7e9b5917f0b33d1979e6db34f')
version('4.26', sha256='213145815f00b6855b1ba71c20e78fd1d3c41595fae270308483cdba8d3fcec6')
version('4.25', sha256='ac2b0123badcb76c63eb716fcd95e0ee4021d345b5db05fda19253c59e39b384')
version('4.24', sha256='24d2ceaabbd886981d0df56f8f7e5f7f1a9db173778baa4965605f6880c90eb8')
version('4.23', sha256='57d6feee20a565f9de3302376a2531cfda50755088442102963b16e6f70b2e3b')
version('4.22', sha256='d8f611f384edbd240006d8c0f56135e74199ab88e9416cfc78cf5472f1ff337d')
version('4.21', sha256='96bc4bdccab27d935a44f1d9a8df94986d4b3361f5ff9382e86300ed5b9fdfa2')
version('4.20', sha256='72d3fb6dc653e6ae36bd47f2667fbff3c587c72f8bfb3f0dcb1763ee86c906f8')
version('4.18', sha256='52d7f6e10c44475052ac8b6828ed6f8b728a1c5d7e674b441eb0e930029ea4cd')
version('4.17', sha256='1d0cecdd3340dca695d6f833830e7a59f937d4bedbcff53109abe66e5a65d22c')
version('4.16', sha256='6a996700b877d268b48f91f91e356d2a4b20cb12207c05943d04504f6a0de0c7')
version('4.15', sha256='7b9dc43d6be79e4e542b8520715cb3ab7f9095afccc93bce9cacc271c665bf7d')
version('4.14', sha256='90c4f84ae9932d66825c61af9cd67b0b2877b477c967812a5d6953d67f3b003d')
version('4.13', sha256='afbc6964e593e7efed3fa5c91af45c4491cfdb994e7fdbe285cbb3719162cb90')
version('4.12', sha256='69f1beeafbe8f27bdac18e29ce97dd63cc1bdf847ff221ed0a6f0042047fa237')
version('4.11', sha256='d84ccfe85b14b3cb086f98d70dbf05671d6cb8498bd6f20f0041d6010dd320da')
version('4.10', sha256='de74e5e020a8a26cd357f5917afb48f7e14e161ca58574a1c653441bdbe9711c')
depends_on('py-setuptools', type='build')
depends_on('py-serpent@1.27:', type=('build', 'run'))
depends_on('py-selectors34', when='^python@:3.3', type=('build', 'run'))
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/addrwatch/package.py
|
# 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 import *
class Addrwatch(AutotoolsPackage):
"""A tool similar to arpwatch for IPv4/IPv6 and ethernet address
pairing monitoring."""
homepage = "https://github.com/fln/addrwatch"
url = "https://github.com/fln/addrwatch/releases/download/v1.0.2/addrwatch-1.0.2.tar.gz"
version('1.0.2', sha256='f04e143da881cd63c299125b592cfb85e4812abbd146f419a1894c00f2ae6208')
version('1.0.1', sha256='f772b62b1c6570b577473e7c98614dad1124352b377324cbebb36360d8f4ce5a')
depends_on('libevent')
depends_on('libpcap')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/lzop/package.py
|
<gh_stars>10-100
# 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 import *
class Lzop(CMakePackage):
"""lzop is a file compressor which is very similar to gzip. lzop uses
the LZO data compression library for compression services, and its main
advantages over gzip are much higher compression and decompression speed
(at the cost of some compression ratio)."""
homepage = "https://www.lzop.org"
url = "https://www.lzop.org/download/lzop-1.03.tar.gz"
version('1.04', sha256='7e72b62a8a60aff5200a047eea0773a8fb205caf7acbe1774d95147f305a2f41')
version('1.03', sha256='c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9')
version('1.01', sha256='28acd94d933befbc3af986abcfe833173fb7563b66533fdb4ac592f38bb944c7')
depends_on('pkgconfig', type='build')
depends_on('lzo')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/glusterfs/package.py
|
# 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 import *
class Glusterfs(AutotoolsPackage):
"""Gluster is a software defined distributed storage that can scale to
several petabytes. It provides interfaces for object, block and file
storage."""
homepage = "https://www.gluster.org/"
url = "https://download.gluster.org/pub/gluster/glusterfs/7/7.3/glusterfs-7.3.tar.gz"
list_url = "https://download.gluster.org/pub/gluster/glusterfs/"
list_depth = 2
version('7.3', sha256='2401cc7c3f5488f6fc5ea09ce2ab30c918612f592571fb3de6124f8482ad4954')
version('7.2', sha256='8e43614967b90d64495fbe2c52230dd72572ce219507fb48bc317b1c228a06e1')
version('7.1', sha256='ffc5bd78b079009382bd01391865646bc9b2e8e72366afc96d62ba891dd9dbce')
version('7.0', sha256='8a872518bf9bd4dc1568f45c716bcde09e3bf7abf5b156ea90405e0fc2e9f07b')
version('6.8', sha256='41e855bdc456759c8c15ef494c636a25cc7b62c55ad132ecd55bec05df64793f')
version('6.7', sha256='e237dd59a2d5b73e156b0b71df49ff64a143b3aaf8f0a65daaf369bb40f5e923')
depends_on('m4', type='build')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('flex', type='build')
depends_on('bison', type='build')
depends_on('rpcsvc-proto')
depends_on('acl')
depends_on('uuid')
depends_on('libtirpc')
depends_on('userspace-rcu')
depends_on('pkgconfig', type='build')
def url_for_version(self, version):
url = 'https://download.gluster.org/pub/gluster/glusterfs/{0}/{1}/glusterfs-{1}.tar.gz'
return url.format(version.up_to(1), version)
def autoreconf(self, spec, prefix):
bash = which('bash')
bash('./autogen.sh')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-systemfonts/package.py
|
# 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 import *
class RSystemfonts(RPackage):
"""System Native Font Finding.
Provides system native access to the font catalogue. As font handling
varies between systems it is difficult to correctly locate installed fonts
across different operating systems. The 'systemfonts' package provides
bindings to the native libraries on Windows, macOS and Linux for finding
font files that can then be used further by e.g. graphic devices. The main
use is intended to be from compiled code but 'systemfonts' also provides
access from R."""
cran = "systemfonts"
version('1.0.3', sha256='647c99d5ea6f90a49768ea7b10b39816af6be85168475273369fd973a20dbbba')
version('1.0.1', sha256='401db4d9e78e3a5e00b7a0b4fbad7fbb1c584734469b65fe5b7ebe1851c7a797')
depends_on('r@3.2.0:', type=('build', 'run'))
depends_on('r-cpp11@0.2.1:', type=('build', 'run'))
depends_on('fontconfig')
depends_on('freetype')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/gapbs/package.py
|
<reponame>player1537-forks/spack<gh_stars>10-100
# 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 import *
class Gapbs(MakefilePackage):
"""The GAP Benchmark Suite is intended to help graph processing research by
standardizing evaluations. Fewer differences between graph processing
evaluations will make it easier to compare different research efforts and
quantify improvements. The benchmark not only specifies graph kernels,
input graphs, and evaluation methodologies, but it also provides an
optimized baseline implementation (this repo). These baseline
implementations are representative of state-of-the-art performance, and
thus new contributions should outperform them to demonstrate an
improvement."""
homepage = "http://gap.cs.berkeley.edu/benchmark.html"
url = "https://github.com/sbeamer/gapbs/archive/v1.0.tar.gz"
version('1.0', sha256='a7516998c4994592053c7aa0c76282760a8e009865a6b7a1c7c40968be1ca55d')
variant('serial', default=False, description='Version with no parallelism')
def build(self, spec, prefix):
cxx_flags = ['-O3', self.compiler.cxx11_flag]
if '-serial' in spec:
cxx_flags.append(self.compiler.openmp_flag)
make('CXX_FLAGS=' + ' '.join(cxx_flags))
def install(self, spec, prefix):
mkdirp(prefix.bin)
for app in ["bc", "bfs", "cc", "converter", "pr", "sssp", "tc"]:
install(app, prefix.bin)
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/wayland-protocols/package.py
|
# 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 import *
class WaylandProtocols(AutotoolsPackage):
"""wayland-protocols contains Wayland protocols that add functionality not
available in the Wayland core protocol. Such protocols either add
completely new functionality, or extend the functionality of some other
protocol either in Wayland core, or some other protocol i
n wayland-protocols."""
homepage = "https://wayland.freedesktop.org/"
url = "https://github.com/wayland-project/wayland-protocols/archive/1.20.tar.gz"
version('1.20', sha256='b59cf0949aeb1f71f7db46b63b1c5a6705ffde8cb5bd194f843fbd9b41308dda')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('pkgconfig', type='build')
depends_on('doxygen', type='build')
depends_on('xmlto', type='build')
depends_on('libxslt', type='build')
depends_on('wayland')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/r-proj4/package.py
|
<reponame>player1537-forks/spack
# 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 import *
class RProj4(RPackage):
"""A simple interface to the PROJ.4 cartographic projections library.
A simple interface to lat/long projection and datum transformation of the
PROJ.4 cartographic projections library. It allows transformation of
geographic coordinates from one projection and/or datum to another."""
cran = "proj4"
version('1.0-11', sha256='c5f186530267005d53cc2e86849613b254ca4515a8b10310146f712d45a1d11d')
version('1.0-10.1', sha256='66857cbe5cba4930b18621070f9a7263ea0d8ddc3e5a035a051a1496e4e1da19')
version('1.0-10', sha256='5f396f172a17cfa9821a390f11ff7d3bff3c92ccf585572116dec459c621d1d0')
version('1.0-8.1', sha256='a3a2a8f0014fd79fa34b5957440fd38299d8e97f1a802a61a068a6c6cda10a7e')
depends_on('r@2.0.0:', type=('build', 'run'))
depends_on('proj@4.4.6:7', when='@:1.0-8')
depends_on('proj@4.4.6:')
# This is needed because the configure script links to sqlite3
depends_on('sqlite', when='@1.0-10.1:')
|
player1537-forks/spack
|
var/spack/repos/builtin/packages/watch/package.py
|
# 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 import *
class Watch(AutotoolsPackage):
"""Executes a program periodically, showing output fullscreen."""
# Note: there is a separate procps package, but it doesn't build on macOS.
# This package only contains the `watch` program, a subset of procps which
# does build on macOS.
# https://github.com/NixOS/nixpkgs/issues/18929#issuecomment-249388571
homepage = "https://gitlab.com/procps-ng/procps"
git = "https://gitlab.com/procps-ng/procps.git"
version('master', branch='master')
version('3.3.15', tag='v3.3.15')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('pkgconfig@0.9.0:', type='build')
depends_on('gettext', type='build')
depends_on('ncurses')
# https://github.com/Homebrew/homebrew-core/blob/master/Formula/watch.rb
def autoreconf(self, spec, prefix):
sh = which('sh')
sh('autogen.sh')
def configure_args(self):
return [
'--with-ncurses',
# Required to avoid libintl linking errors
'--disable-nls',
]
def build(self, spec, prefix):
make('watch')
def install(self, spec, prefix):
mkdirp(prefix.bin)
mkdirp(prefix.man.man1)
install('watch', prefix.bin)
install('watch.1', prefix.man.man1)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.