repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
player1537-forks/spack
var/spack/repos/builtin/packages/perl-mni-perllib/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 PerlMniPerllib(PerlPackage): """MNI Perl Library for scripting long-running scientific computations""" homepage = "https://github.com/BIC-MNI/mni-perllib" git = "https://github.com/BIC-MNI/mni-perllib.git" version('develop', commit="170827f5644820b87bcb2b194494c5ebf0928149") patch('no-stdin.patch') depends_on('perl-getopt-tabular', type=('build', 'run')) depends_on('perl-text-format', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/shtools/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 Shtools(MakefilePackage): """SHTOOLS - Spherical Harmonic Tools""" homepage = "https://shtools.github.io/SHTOOLS/" url = "https://github.com/SHTOOLS/SHTOOLS/archive/v4.5.tar.gz" maintainers = ['eschnett'] version('4.9.1', sha256='5c22064f9daf6e9aa08cace182146993aa6b25a6ea593d92572c59f4013d53c2') version('4.8', sha256='c36fc86810017e544abbfb12f8ddf6f101a1ac8b89856a76d7d9801ffc8dac44') version('4.5', sha256='1975a2a2bcef8c527d321be08c13c2bc479e0d6b81c468a3203f95df59be4f89') # Note: This package also provides Python wrappers. We do not # install these properly yet, only the Fortran library is # installed. # The Makefile expects the "other" libtool, not the GNU libtool we have in # Spack patch('nolibtool.patch') variant('openmp', default=True, description="Enable OpenMP support") depends_on('blas') depends_on('fftw') depends_on('lapack') depends_on('py-flake8', type='test') def patch(self): """make check fix: Silence "do not use bare 'except'" in number of files""" filter_file('ignore=', 'ignore=E722,', 'Makefile') # Options for the Makefile def makeopts(self, spec, prefix): return [ "F95={0}".format(self.compiler.fc), "F95FLAGS={0} -O3 -std=gnu -ffast-math". format(self.compiler.fc_pic_flag), "OPENMPFLAGS={0}".format(self.compiler.openmp_flag), "BLAS={0}".format(spec['blas'].libs), "FFTW={0}".format(spec['fftw'].libs), "LAPACK={0}".format(spec['lapack'].libs), "PREFIX={0}".format(prefix), "PWD={0}".format(self.build_directory), ] def build(self, spec, prefix): with working_dir(self.build_directory): # The 'fortran' and 'fortran-mp' targets must be built separately make('fortran', *self.makeopts(spec, prefix)) if spec.satisfies('+openmp'): make('fortran-mp', *self.makeopts(spec, prefix)) def install(self, spec, prefix): with working_dir(self.build_directory): make('install', *self.makeopts(spec, prefix))
player1537-forks/spack
var/spack/repos/builtin/packages/iwyu/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 archspec class Iwyu(CMakePackage): """include-what-you-use: A tool for use with clang to analyze #includes in C and C++ source files """ homepage = "https://include-what-you-use.org" url = "https://include-what-you-use.org/downloads/include-what-you-use-0.13.src.tar.gz" maintainers = ['sethrj'] version('0.17', sha256='eca7c04f8b416b6385ed00e33669a7fa4693cd26cb72b522cde558828eb0c665') version('0.16', sha256='8d6fc9b255343bc1e5ec459e39512df1d51c60e03562985e0076036119ff5a1c') version('0.15', sha256='2bd6f2ae0d76e4a9412f468a5fa1af93d5f20bb66b9e7bf73479c31d789ac2e2') version('0.14', sha256='43184397db57660c32e3298a6b1fd5ab82e808a1f5ab0591d6745f8d256200ef') version('0.13', sha256='49294270aa64e8c04182369212cd919f3b3e0e47601b1f935f038c761c265bc9') version('0.12', sha256='a5892fb0abccb820c394e4e245c00ef30fc94e4ae58a048b23f94047c0816025') version('0.11', sha256='2d2877726c4aed9518cbb37673ffbc2b7da9c239bf8fe29432da35c1c0ec367a') patch('iwyu-013-cmake.patch', when='@0.13:0.14') depends_on('llvm+clang@13.0:13', when='@0.17') depends_on('llvm+clang@12.0:12', when='@0.16') depends_on('llvm+clang@11.0:11', when='@0.15') depends_on('llvm+clang@10.0:10', when='@0.14') depends_on('llvm+clang@9.0:9', when='@0.13') depends_on('llvm+clang@8.0:8', when='@0.12') depends_on('llvm+clang@7.0:7', when='@0.11') # iwyu uses X86AsmParser so must have the x86 target on non-x86 arch _arches = set(str(x.family) for x in archspec.cpu.TARGETS.values()) for _arch in _arches - set(['x86', 'x86_64']): depends_on('llvm targets=x86', when='arch={0}:'.format(_arch)) @when('@0.14:') def cmake_args(self): return [self.define('CMAKE_CXX_STANDARD', 14), self.define('CMAKE_CXX_EXTENSIONS', False)] @run_after('install') def link_resources(self): # iwyu needs to find Clang's headers # https://github.com/include-what-you-use/include-what-you-use/blob/master/README.md#how-to-install mkdir(self.prefix.lib) symlink(self.spec['llvm'].prefix.lib.clang, self.prefix.lib.clang)
player1537-forks/spack
var/spack/repos/builtin/packages/gcta/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 Gcta(Package): """GCTA (Genome-wide Complex Trait Analysis) was originally designed to estimate the proportion of phenotypic variance explained by all genome-wide SNPs for complex traits (the GREML method), and has subsequently extended for many other analyses to better understand the genetic architecture of complex traits. GCTA currently supports the following analyses.""" homepage = "https://cnsgenomics.com/software/gcta/#Overview" url = "http://cnsgenomics.com/software/gcta/gcta_1.91.2beta.zip" version('1.91.2beta_mac', 'ce0882ad35dd9474ffe40911da369274700af1ecb9916c0a355b7bad14850234') version('1.91.2beta', '192efb767be1c7ca9c2dac5d2c2317a97c7a9db1f801168d19ad2a51b98d9b10', preferred=True) conflicts('@1.91.2beta', when='platform=darwin') conflicts('@1.91.2beta_mac', when='platform=linux') def install(self, spec, prefix): mkdirp(prefix.bin) install('gcta64', join_path(prefix.bin, 'gcta64')) set_executable(join_path(prefix.bin, 'gcta64'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-azure-storage-common/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 PyAzureStorageCommon(PythonPackage): """Microsoft Azure Storage Common Client Library for Python.""" homepage = "https://github.com/Azure/azure-storage-python" pypi = "azure-storage-common/azure-storage-common-2.1.0.tar.gz" version('2.1.0', sha256='ccedef5c67227bc4d6670ffd37cec18fb529a1b7c3a5e53e4096eb0cf23dc73f') version('1.4.2', sha256='4ec87c7537d457ec95252e0e46477e2c1ccf33774ffefd05d8544682cb0ae401') depends_on('py-setuptools', type='build') depends_on('py-azure-common@1.1.5:', type=('build', 'run')) depends_on('py-cryptography', type=('build', 'run')) depends_on('py-python-dateutil', type=('build', 'run')) depends_on('py-requests', type=('build', 'run')) depends_on('py-azure-storage-nspkg', when='^python@:2', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-ini/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 RIni(RPackage): """Read and Write '.ini' Files. Parse simple '.ini' configuration files to an structured list. Users can manipulate this resulting list with lapply() functions. This same structured list can be used to write back to file after modifications.""" cran = "ini" version('0.3.1', sha256='7b191a54019c8c52d6c2211c14878c95564154ec4865f57007953742868cd813')
player1537-forks/spack
var/spack/repos/builtin/packages/pixz/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 Pixz(AutotoolsPackage): """Pixz (pronounced pixie) is a parallel, indexing version of xz. """ homepage = "https://www.github.com/vasi/pixz" url = "https://github.com/vasi/pixz/releases/download/v1.0.6/pixz-1.0.6.tar.xz" version('1.0.7', sha256='e5e32c6eb0bf112b98e74a5da8fb63b9f2cae71800f599d97ce540e150c8ddc5') version('1.0.6', sha256='02c50746b134fa1b1aae41fcc314d7c6f1919b3d48bcdea01bf11769f83f72e8') depends_on('xz') depends_on('libarchive')
player1537-forks/spack
var/spack/repos/builtin/packages/xsd/package.py
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/xsd/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 Xsd(MakefilePackage): """CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to C++ data binding compiler. It support in-memory and event-driven XML processing models and is available for a wide range of C++ compilers and platforms.""" homepage = "https://www.codesynthesis.com" url = "https://www.codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2" version('4.0.0', sha256='eca52a9c8f52cdbe2ae4e364e4a909503493a0d51ea388fc6c9734565a859817') depends_on('xerces-c') depends_on('libtool', type='build') patch( 'https://git.codesynthesis.com/cgit/libxsd-frontend/libxsd-frontend/patch/?id=5029f8665190879285787a9dcdaf5f997cadd2e2', sha256='d57e0aed8784d2b947983209b6513c81ac593c9936c3d7b809b4cd60d4c28607', working_dir='libxsd-frontend' ) def install(self, spec, prefix): make('install', 'install_prefix=' + prefix) def setup_build_environment(self, env): xercesc_lib_flags = self.spec['xerces-c'].libs.search_flags env.append_flags('LDFLAGS', xercesc_lib_flags) def url_for_version(self, version): url = "https://www.codesynthesis.com/download/xsd/{0}/xsd-{1}+dep.tar.bz2" return url.format(version.up_to(2), version)
player1537-forks/spack
var/spack/repos/builtin/packages/ruby-gnuplot/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 RubyGnuplot(RubyPackage): """Utility library to aid in interacting with gnuplot from ruby""" homepage = "https://github.com/rdp/ruby_gnuplot" url = "https://rubygems.org/downloads/gnuplot-2.6.2.gem" # Source code is available at https://github.com/rdp/ruby_gnuplot # but release tarballs are not available, download gem instead version('2.6.2', sha256='d2c28d4a55867ef6f0a5725ce157581917b4d27417bc3767c7c643a828416bb3', expand=False) depends_on('gnuplot+X')
player1537-forks/spack
var/spack/repos/builtin/packages/elk/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 Elk(MakefilePackage): """An all-electron full-potential linearised augmented-plane wave (FP-LAPW) code with many advanced features.""" homepage = 'https://elk.sourceforge.io/' url = 'https://sourceforge.net/projects/elk/files/elk-3.3.17.tgz' version('7.2.42', sha256='73f03776dbf9b2147bfcc5b7c062af5befa0944608f6fc4b6a1e590615400fc6') version('7.1.14', sha256='7c2ff30f4b1d72d5dc116de9d70761f2c206700c69d85dd82a17a5a6374453d2') version('7.0.12', sha256='9995387c681d0e5a9bd52cb274530b23c0370468b6be86f6c90a6ec445cb8a01') version('3.3.17', sha256='c9b87ae4ef367ed43afc2d43eb961745668e40670995e8e24c13db41b7e85d73', deprecated=True) # what linear algebra packages to use? the choices are # internal - use internal libraries # generic - use spack-provided blas and lapack # openblas - use openblas specifically, with special support for multithreading. # mkl - use mkl specifically, with special support for multithreading # should be used with fft=mkl # blis - use internal lapack and blas implementation from blis variant('linalg', default='internal', multi=False, description='Build with custom BLAS library', values=('internal', 'generic', 'openblas', 'mkl', 'blis')) # what FFT package to use? The choices are # internal - use internal library # fftw - fftw3 with special code # mkl - use mklr with fft code # should be used with linalg=mkls variant('fft', default='internal', multi=False, description='Build with custom FFT library', values=('internal', 'fftw', 'mkl')) # check that if fft=mkl then linalg=mkl and vice versa. conflicts('linalg=mkl', when='fft=fftw') conflicts('linalg=mkl', when='fft=internal') conflicts('linalg=blis', when='@:3') conflicts('fft=mkl', when='linalg=internal') conflicts('fft=mkl', when='linalg=generic') conflicts('fft=mkl', when='linalg=openblas') conflicts('fft=mkl', when='linalg=blis') variant('mpi', default=True, description='Enable MPI parallelism') variant('openmp', default=True, description='Enable OpenMP support') variant('libxc', default=True, description='Link to Libxc functional library') variant('w90', default=False, description='wannier90 support, requires wannier90 library') depends_on('blas', when='linalg=generic') depends_on('lapack', when='linalg=generic') depends_on('mkl', when='linalg=mkl') depends_on('mkl threads=openmp', when='linalg=mkl +openmp') depends_on('openblas', when='linalg=openblas') depends_on('openblas threads=openmp', when='linalg=openblas +openmp') depends_on('blis', when='linalg=blis') depends_on('blis threads=openmp', when='linalg=blis +openmp') depends_on('fftw', when='fft=fftw') depends_on('fftw +openmp', when='fft=fftw +openmp') depends_on('mkl', when='fft=mkl') depends_on('mpi@2:', when='+mpi') depends_on('libxc@5:', when='@7:+libxc') depends_on('libxc@:3', when='@:3+libxc') depends_on('wannier90', when='+w90') # Cannot be built in parallel parallel = False def edit(self, spec, prefix): # Dictionary of configuration options with default values assigned config = { 'MAKE': 'make', 'AR': 'ar', 'LIB_LPK': 'lapack.a blas.a', 'LIB_FFT': 'fftlib.a', 'SRC_MPI': 'mpi_stub.f90', 'SRC_MKL': 'mkl_stub.f90', 'SRC_OBLAS': 'oblas_stub.f90', 'SRC_OMP': 'omp_stub.f90', 'SRC_BLIS': 'blis_stub.f90', 'SRC_libxc': 'libxcifc_stub.f90', 'SRC_FFT': 'zfftifc.f90', 'SRC_W90S': 'w90_stub.f90', 'F90': spack_fc, 'F77': spack_f77 } # Compiler-specific flags flags = '' if self.compiler.name == 'intel': flags = '-O3 -ip -unroll -no-prec-div' elif self.compiler.name == 'gcc': flags = '-O3 -ffast-math -funroll-loops' elif self.compiler.name == 'pgi': flags = '-O3 -lpthread' elif self.compiler.name == 'g95': flags = '-O3 -fno-second-underscore' elif self.compiler.name == 'nag': flags = '-O4 -kind=byte -dusty -dcfuns' elif self.compiler.name == 'xl': flags = '-O3' config['F90_OPTS'] = flags config['F77_OPTS'] = flags if '+mpi' in spec: config['F90'] = spec['mpi'].mpifc config['F77'] = spec['mpi'].mpif77 config['SRC_MPI'] = ' ' # OpenMP support if '+openmp' in spec: config['F90_OPTS'] += ' ' + self.compiler.openmp_flag config['F77_OPTS'] += ' ' + self.compiler.openmp_flag config['SRC_OMP'] = ' ' # BLAS/LAPACK support # Note: openblas must be compiled with OpenMP support # if the +openmp variant is chosen if 'linalg=generic' in spec: blas = spec['blas'].libs.joined() lapack = spec['lapack'].libs.joined() config['LIB_LPK'] = ' '.join([lapack, blas]) if 'linalg=openblas' in spec: config['LIB_LPK'] = spec['openblas'].libs.ld_flags config['SRC_OBLAS'] = ' ' if 'linalg=mkl' in spec: config['LIB_LPK'] = spec['mkl'].libs.ld_flags config['SRC_MKL'] = ' ' if 'linalg=blis' in spec: config['LIB_LPK'] = ' '.join(['lapack.a ', spec['blis'].libs.ld_flags]) config['SRC_BLIS'] = ' ' # FFT if 'fft=fftw' in spec: config['LIB_FFT'] = spec['fftw'].libs.ld_flags config['SRC_FFT'] = 'zfftifc_fftw.f90' if 'fftw=mkl' in spec: config['LIB_FFT'] = spec['mkl'].libs.ld_flags config['SRC_FFT'] = ' ' # MPI support if '+mpi' in spec: config['F90'] = spec['mpi'].mpifc config['F77'] = spec['mpi'].mpif77 else: config['F90'] = spack_fc config['F77'] = spack_f77 config['SRC_MPI'] = 'mpi_stub.f90' # OpenMP support if '+openmp' in spec: config['F90_OPTS'] += ' ' + self.compiler.openmp_flag config['F77_OPTS'] += ' ' + self.compiler.openmp_flag config['SRC_OMP'] = ' ' # Libxc support if '+libxc' in spec: config['LIB_libxc'] = ' '.join([ join_path(spec['libxc'].prefix.lib, 'libxcf90.so'), join_path(spec['libxc'].prefix.lib, 'libxc.so') ]) if self.spec.satisfies('@7:'): config['SRC_libxc'] = 'libxcf90.f90 libxcifc.f90' else: config['SRC_libxc'] = 'libxc_funcs.f90 libxc.f90 libxcifc.f90' # Write configuration options to include file with open('make.inc', 'w') as inc: for key in config: inc.write('{0} = {1}\n'.format(key, config[key])) def install(self, spec, prefix): # The Elk Makefile does not provide an install target mkdir(prefix.bin) install('src/elk', prefix.bin) install('src/eos/eos', prefix.bin) install('src/spacegroup/spacegroup', prefix.bin) install_tree('examples', join_path(prefix, 'examples')) install_tree('species', join_path(prefix, 'species'))
player1537-forks/spack
var/spack/repos/builtin/packages/nfft/package.py
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/nfft/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 Nfft(AutotoolsPackage): """NFFT is a C subroutine library for computing the nonequispaced discrete Fourier transform (NDFT) in one or more dimensions, of arbitrary input size, and of complex data.""" homepage = "https://www-user.tu-chemnitz.de/~potts/nfft" url = "https://github.com/NFFT/nfft/releases/download/3.4.1/nfft-3.4.1.tar.gz" version('3.4.1', sha256='1cf6060eec0afabbbba323929d8222397a77fa8661ca74927932499db26b4aaf') version('3.3.2', sha256='9dcebd905a82c4f0a339d0d5e666b68c507169d9173b66d5ac588aae5d50b57c') depends_on('fftw') def configure(self, spec, prefix): options = ['--prefix={0}'.format(prefix)] configure = Executable('../configure') if '+double' in spec['fftw']: with working_dir('double', create=True): configure(*options) if '+float' in spec['fftw']: with working_dir('float', create=True): configure('--enable-float', *options) if '+long_double' in spec['fftw']: with working_dir('long-double', create=True): configure('--enable-long-double', *options) def build(self, spec, prefix): if '+double' in spec['fftw']: with working_dir('double'): make() if '+float' in spec['fftw']: with working_dir('float'): make() if '+long_double' in spec['fftw']: with working_dir('long-double'): make() def check(self): spec = self.spec if '+double' in spec['fftw']: with working_dir('double'): make("check") if '+float' in spec['fftw']: with working_dir('float'): make("check") if '+long_double' in spec['fftw']: with working_dir('long-double'): make("check") def install(self, spec, prefix): if '+double' in spec['fftw']: with working_dir('double'): make("install") if '+float' in spec['fftw']: with working_dir('float'): make("install") if '+long_double' in spec['fftw']: with working_dir('long-double'): make("install")
player1537-forks/spack
var/spack/repos/builtin/packages/py-colorlog/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 PyColorlog(PythonPackage): """A colored formatter for the python logging module""" homepage = "https://github.com/borntyping/python-colorlog" pypi = "colorlog/colorlog-4.0.2.tar.gz" version('4.0.2', sha256='3cf31b25cbc8f86ec01fef582ef3b840950dea414084ed19ab922c8b493f9b42') version('3.1.4', sha256='418db638c9577f37f0fae4914074f395847a728158a011be2a193ac491b9779d') depends_on('py-setuptools', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/optional-lite/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 shutil import copytree from spack import * class OptionalLite(CMakePackage): """ A single-file header-only version of a C++17-like optional, a nullable object for C++98, C++11 and later. """ homepage = "https://github.com/martinmoene/optional-lite" url = "https://github.com/martinmoene/optional-lite/archive/v3.0.0.tar.gz" version('3.2.0', sha256='069c92f6404878588be761d609b917a111b0231633a91f7f908288fc77eb24c8') version('3.1.1', sha256='b61fe644b9f77d7cc1c555b3e40e973b135bf2c0350e5fa67bc6f379d9fc3158') version('3.1.0', sha256='66ca0d923e77c3f2a792ef3871e9ddbacf5fac2bfd6b8743df9c9c5814644718') version('3.0.0', sha256='36ae58512c478610647978811f0f4dbe105880372bd7ed39417314d50a27254e') version('2.3.0', sha256='8fe46216147234b172c6a5b182726834afc44dfdca1e976a264d6f96eb183916') version('2.2.0', sha256='9ce1bb021de42f804f8d17ed30b79fc98296122bec8db60492104978cd282fa2') version('2.0.0', sha256='e8d803cbc7be241df41a9ab267b525b7941df09747cd5a7deb55f863bd8a4e8d') version('1.0.3', sha256='7a2fb0fe20d61d091f6730237add9bab58bc0df1288cb96f3e8a61b859539067') def cmake_args(self): return [ "-DOPTIONAL_LITE_OPT_BUILD_TESTS=%s" % ("ON" if self.run_tests else "OFF"), "-DOPTIONAL_LITE_OPT_BUILD_EXAMPLES=OFF" ] # Pre-3.2.0 install was simply a copytree on the includes @when("@:3.1") def cmake(self, spec, prefix): pass @when("@:3.1") def build(self, spec, prefix): pass @when("@:3.1") def install(self, spec, prefix): copytree('include', prefix.include) @when("@:3.1") def check(self): pass
player1537-forks/spack
var/spack/repos/builtin/packages/r-blob/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 RBlob(RPackage): """A Simple S3 Class for Representing Vectors of Binary Data ('BLOBS'). R's raw vector is useful for storing a single binary object. What if you want to put a vector of them in a data frame? The blob package provides the blob object, a list of raw vectors, suitable for use as a column in data frame.""" cran = "blob" version('1.2.2', sha256='4976053c65994c769a4c22b4553bea0bd9c623b3b991dbaf023d2a164770c7fa') version('1.2.1', sha256='ef54bc7a9646c1b73f4d2f60c869b4f1940bc3505874175114297ad7772d8bea') version('1.2.0', sha256='1af1cfa28607bc0e2f1f01598a00a7d5d1385ef160a9e79e568f30f56538e023') version('1.1.0', sha256='16d6603df3ddba177f0ac4d9469c938f89131c4bf8834345db838defd9ffea16') depends_on('r-rlang', type=('build', 'run'), when='@1.2.0:') depends_on('r-vctrs@0.2.0:', type=('build', 'run'), when='@1.2.0:') depends_on('r-vctrs@0.2.1:', type=('build', 'run'), when='@1.2.1:') depends_on('r-prettyunits', type=('build', 'run'), when='@1.2.0') depends_on('r-tibble', type=('build', 'run'), when='@:1.1.0')
player1537-forks/spack
var/spack/repos/builtin/packages/flatcc/package.py
<filename>var/spack/repos/builtin/packages/flatcc/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 Flatcc(CMakePackage): """FlatBuffers C Compiler (flatcc), a memory-efficient serialization library, is implemented as a standalone tool instead of extending Googles flatc compiler in order to have a pure portable C library implementation of the schema compiler that is designed to fail graciously on abusive input in long running processes. It is also believed a C version may help provide schema parsing to other language interfaces that find interfacing with C easier than C++.""" homepage = "https://github.com/dvidelabs/flatcc" url = "https://github.com/dvidelabs/flatcc/archive/v0.5.3.tar.gz" git = "https://github.com/dvidelabs/flatcc.git" version('0.5.3', sha256='d7519a97569ebdc9d12b162be0f9861fdc2724244f68595264a411ac48e4e983') version('0.5.2', sha256='02dac93d3daf8d0a290aa8711a9b8a53f047436ec5331adb1972389061ec6615') version('0.5.1', sha256='8c4560ca32e3c555716d9363bed469e2c60e0f443ec32bc08e7abfe681e25ca9') version('0.5.0', sha256='ef97a1c983b6d3a08572af535643600d03a6ff422f64b3dfa380a7193630695c') version('0.4.3', sha256='c0e9e40ddf90caa0cfefc3f3ce73713e6b9ac5eba4b2e946ae20dee0a559f82e') version('0.4.2', sha256='2e42e5ed6ee152de73ce1f32f2e96d2ebd77feeef8c1979fc1d8578941d07ab4') version('0.4.1', sha256='de9f668e5555b24c0885f8dc4f4098cc8065c1f428f8209097624035aee487df') version('master', branch='master') variant('shared', default=True, description='Build shared libs') depends_on('cmake@2.8:', type='build') def cmake_args(self): # Spack handles CMAKE_INSTALL_PREFIX and CMAKE_BUILD_TYPE automatically spec = self.spec args = [] # allow flatcc to be built with more compilers args.append('-DFLATCC_ALLOW_WERROR=OFF') if '+shared' in spec: args.append('-DBUILD_SHARED_LIBS=ON') args.append('-DFLATCC_INSTALL=ON') else: args.append('-DBUILD_SHARED_LIBS=OFF') args.append('-DFLATCC_INSTALL=OFF') return args
player1537-forks/spack
var/spack/repos/builtin/packages/guacamole-server/package.py
<filename>var/spack/repos/builtin/packages/guacamole-server/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 GuacamoleServer(AutotoolsPackage): """The guacamole-server package is a set of software which forms the basis of the Guacamole stack. It consists of guacd, libguac, and several protocol support libraries.""" homepage = "https://guacamole.apache.org/" url = "https://github.com/apache/guacamole-server/archive/1.1.0.tar.gz" version('1.1.0', sha256='d0f0c66ebfa7a4fd6689ae5240f21797b5177945a042388b691b15b8bd5c81a8') depends_on('autoconf', type='build') depends_on('automake', type='build') depends_on('libtool', type='build') depends_on('m4', type='build') depends_on('cairo') depends_on('libjpeg') depends_on('libpng') depends_on('uuid')
player1537-forks/spack
var/spack/repos/builtin/packages/r-checkpoint/package.py
<filename>var/spack/repos/builtin/packages/r-checkpoint/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 RCheckpoint(RPackage): """Install Packages from Snapshots on the Checkpoint Server for Reproducibility. The goal of checkpoint is to solve the problem of package reproducibility in R. Specifically, checkpoint allows you to install packages as they existed on CRAN on a specific snapshot date as if you had a CRAN time machine. To achieve reproducibility, the checkpoint() function installs the packages required or called by your project and scripts to a local library exactly as they existed at the specified point in time. Only those packages are available to your project, thereby avoiding any package updates that came later and may have altered your results. In this way, anyone using checkpoint's checkpoint() can ensure the reproducibility of your scripts or projects at any time. To create the snapshot archives, once a day (at midnight UTC) Microsoft refreshes the Austria CRAN mirror on the "Microsoft R Archived Network" server (<https://mran.microsoft.com/>). Immediately after completion of the rsync mirror process, the process takes a snapshot, thus creating the archive. Snapshot archives exist starting from 2014-09-17.""" cran = "checkpoint" version('1.0.2', sha256='a80390d834534e908058a597a2a5ee60a111023e76f13f370949963582dd07a5') version('1.0.1', sha256='8542029395b7d557c1b39423326611f408788fcd02f5cbeb5ed252f368f8dcd2') version('1.0.0', sha256='d36146093763ca29e0296729399b96e0f2e7764745283d6cea1066a96fa085a7') version('0.4.10', sha256='7362ae9703763fe4652d0b592cd913ce506f072a18e5cf5970d08d7cdf4d126a') version('0.4.6', sha256='fd1a5edb5cb1a40d7ed26bb196de566110fe2ef62e70b4e947c003576a03ebb2') version('0.4.3', sha256='c3e862f89f8838183d6028f7ed13683aec562e6dab77ad4b6a5e24ec653cfb64') version('0.3.15', sha256='09f1feeb2b5b8b409a2e16a9185827b8da5e555f1aa84442a287f15e452beed7') depends_on('r@3.0.0:', type=('build', 'run')) depends_on('r@3.3.0:', type=('build', 'run'), when='@1.0.0:') depends_on('r-jsonlite', type=('build', 'run'), when='@1.0.0:') depends_on('r-yaml', type=('build', 'run'), when='@1.0.0:') depends_on('r-withr', type=('build', 'run'), when='@1.0.0:') depends_on('r-pkgdepends', type=('build', 'run'), when='@1.0.0:')
player1537-forks/spack
var/spack/repos/builtin/packages/r-statnet-common/package.py
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/r-statnet-common/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 RStatnetCommon(RPackage): """Common R Scripts and Utilities Used by the Statnet Project Software. Non-statistical utilities used by the software developed by the Statnet Project. They may also be of use to others.""" cran = "statnet.common" version('4.5.0', sha256='3cdb23db86f3080462f15e29bcf3e941590bc17ea719993b301199b22d6f882f') version('4.4.1', sha256='4ecf2b84718d7fb60f196215b4cf6f52cd6b26cc9148a6da6981b26e885509fd') version('4.3.0', sha256='834a3359eac967df0420eee416ae4983e3b502a3de56bb24f494a7ca4104e959') version('4.2.0', sha256='1176c3303436ebe858d02979cf0a0c33e4e2d1f3637516b4761d573ccd132461') version('3.3.0', sha256='d714c4e7b0cbf71b7a628af443f5be530e74ad1e21f6b04f1b1087f6d7e40fa4') depends_on('r@3.5:', type=('build', 'run'), when='@4.2.0:') depends_on('r-coda', type=('build', 'run'), when='@4.1.2:') depends_on('r-rle', type=('build', 'run'), when='@4.4.1')
player1537-forks/spack
var/spack/repos/builtin/packages/r-gdata/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 RGdata(RPackage): """Various R Programming Tools for Data Manipulation. Various R programming tools for data manipulation, including: [1] medical unit conversions ('ConvertMedUnits', 'MedUnits'), [2] combining objects ('bindData', 'cbindX', 'combine', 'interleave'), [3] character vector operations ('centerText', 'startsWith', 'trim'), [4] factor manipulation ('levels', 'reorder.factor', 'mapLevels'), [5] obtaining information about R objects ('object.size', 'elem', 'env', 'humanReadable', 'is.what', 'll', 'keep', 'ls.funs', 'Args','nPairs', 'nobs'), [6] manipulating MS-Excel formatted files ('read.xls', 'installXLSXsupport', 'sheetCount', 'xlsFormats'), [7] generating fixed-width format files ('write.fwf'), [8] extricating components of date & time objects ('getYear', 'getMonth', 'getDay', 'getHour', 'getMin', 'getSec'), [9] operations on columns of data frames ('matchcols', 'rename.vars'), [10] matrix operations ('unmatrix', 'upperTriangle', 'lowerTriangle'), [11] operations on vectors ('case', 'unknownToNA', 'duplicated2', 'trimSum'), [12] operations on data frames ('frameApply', 'wideByFactor'), [13] value of last evaluated expression ('ans'), and [14] wrapper for 'sample' that ensures consistent behavior for both scalar and vector arguments ('resample').""" cran = "gdata" version('2.18.0', sha256='4b287f59f5bbf5fcbf18db16477852faac4a605b10c5284c46b93fa6e9918d7f') version('2.17.0', sha256='8097ec0e4868f6bf746f821cff7842f696e874bb3a84f1b2aa977ecd961c3e4e') depends_on('r@2.3.0:', type=('build', 'run')) depends_on('r-gtools', type=('build', 'run')) depends_on('perl@5.10.0:')
player1537-forks/spack
var/spack/repos/builtin/packages/py-tern/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 PyTern(PythonPackage): """ Tern is a software package inspection tool that can create a Software Bill of Materials (SBoM) for containers. """ pypi = "tern/tern-2.8.0.tar.gz" git = "https://github.com/tern-tools/tern.git" version('main', branch='main') depends_on('py-setuptools', type='build') depends_on('py-wheel', type='build') depends_on('py-pip', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/tauola/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 Tauola(AutotoolsPackage): """ Tauola is a event generator for tau decays.""" homepage = "https://tauolapp.web.cern.ch/tauolapp/" url = "https://tauolapp.web.cern.ch/tauolapp/resources/TAUOLA.1.1.8/TAUOLA.1.1.8-LHC.tar.gz" tags = ['hep'] version('1.1.8', sha256='3f734e8a967682869cca2c1ffebd3e055562613c40853cc81820d8b666805ed5') variant('hepmc', default=True, description="Enable hepmc 2.x support") variant('hepmc3', default=False, description="Enable hepmc3 support") variant('lhapdf', default=True, description="Enable lhapdf support") variant('cxxstd', default='11', values=('11', '14', '17', '20'), multi=False, description='Use the specified C++ standard when building.') maintainers = ['vvolkl'] depends_on('hepmc', when='+hepmc') depends_on('hepmc3', when='+hepmc3') depends_on('lhapdf', when='+lhapdf') def flag_handler(self, name, flags): if name == 'cflags': flags.append('-O2') elif name == 'cxxflags': flags.append('-O2') flags.append('-std=c++{0}'.format(self.spec.variants['cxxstd'].value)) elif name == 'fflags': flags.append('-O2') return (None, None, flags) def configure_args(self): args = ['--with-pic'] args.extend(self.with_or_without('hepmc', 'prefix')) args.extend(self.with_or_without('hepmc3', 'prefix')) args.extend(self.with_or_without('lhapdf', 'prefix')) return args
player1537-forks/spack
var/spack/repos/builtin.mock/packages/sticky-variant/package.py
<filename>var/spack/repos/builtin.mock/packages/sticky-variant/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 StickyVariant(AutotoolsPackage): """Package with a sticky variant and a conflict""" homepage = "http://www.example.com" url = "http://www.example.com/a-1.0.tar.gz" version('1.0', '0123456789abcdef0123456789abcdef') variant('allow-gcc', description='', default=False, sticky=True) conflicts('%gcc', when='~allow-gcc')
player1537-forks/spack
var/spack/repos/builtin/packages/r-rpart/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 RRpart(RPackage): """Recursive Partitioning and Regression Trees. Recursive partitioning for classification, regression and survival trees. An implementation of most of the functionality of the 1984 book by Breiman, Friedman, Olshen and Stone.""" cran = "rpart" version('4.1.16', sha256='27ec75258a5a3459ad999f5f36760ead974930744249605bf8465f234f31425c') version('4.1-15', sha256='2b8ebe0e9e11592debff893f93f5a44a6765abd0bd956b0eb1f70e9394cfae5c') version('4.1-13', sha256='8e11a6552224e0fbe23a85aba95acd21a0889a3fe48277f3d345de3147c7494c') version('4.1-11', sha256='38ab80959f59bcdd2c4c72860e8dd0deab0307668cbbf24f96014d7a2496ad98') version('4.1-10', sha256='c5ddaed288d38118876a94c7aa5000dce0070b8d736dba12de64a9cb04dc2d85') depends_on('r@2.15.0:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/fms/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 Fms(CMakePackage): """GFDL's Flexible Modeling System (FMS) is a software environment that supports the efficient development, construction, execution, and scientific interpretation of atmospheric, oceanic, and climate system models.""" homepage = "https://github.com/NOAA-GFDL/FMS" url = "https://github.com/NOAA-GFDL/FMS/archive/refs/tags/2021.02.01.tar.gz" maintainers = ['kgerheiser', 'Hang-Lei-NOAA', 'edwardhartnett'] variant('64bit', default=True, description='64 bit?') variant('gfs_phys', default=True, description='Use GFS Physics?') variant('openmp', default=True, description='Use OpenMP?') version('2021.03.01', sha256='1f70e2a57f0d01e80fceb9ca9ce9661f5c1565d0437ab67618c2c4dfea0da6e9') depends_on('netcdf-c') depends_on('netcdf-fortran') def cmake_args(self): args = [ self.define_from_variant('64BIT'), self.define_from_variant('GFS_PHYS'), self.define_from_variant('OPENMP') ] args.append(self.define('CMAKE_C_COMPILER', self.spec['mpi'].mpicc)) args.append(self.define('CMAKE_CXX_COMPILER', self.spec['mpi'].mpicxx)) args.append(self.define('CMAKE_Fortran_COMPILER', self.spec['mpi'].mpifc)) return args
player1537-forks/spack
var/spack/repos/builtin/packages/py-openmc/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 PyOpenmc(PythonPackage): """OpenMC is a community-developed Monte Carlo neutron and photon transport simulation code. It is capable of performing fixed source, k-eigenvalue, and subcritical multiplication calculations on models built using either a constructive solid geometry or CAD representation. OpenMC supports both continuous-energy and multigroup transport. The continuous-energy particle interaction data is based on a native HDF5 format that can be generated from ACE files produced by NJOY. Parallelism is enabled via a hybrid MPI and OpenMP programming model.""" homepage = "https://docs.openmc.org/" url = "https://github.com/openmc-dev/openmc/tarball/v0.13.0" git = "https://github.com/openmc-dev/openmc.git" version('develop', branch='develop') version('master', branch='master') version('0.13.0', commit='cff247e35785e7236d67ccf64a3401f0fc50a469', submodules=True) version('0.12.2', commit='<KEY>', submodules=True) version('0.12.1', commit='<KEY>', submodules=True) version('0.12.0', commit='<KEY>', submodules=True) version('0.11.0', sha256='19a9d8e9c3b581e9060fbd96d30f1098312d217cb5c925eb6372a5786d9175af') variant('mpi', default=False, description='Enable MPI support') # keep py-openmc and openmc at the same version for ver in ['develop', 'master', '0.13.0', '0.12.2', '0.12.1', '0.12.0', '0.11.0']: depends_on( 'openmc+mpi@{0}'.format(ver), when='@{0}+mpi'.format(ver), type=('build', 'run') ) depends_on( 'openmc~mpi@{0}'.format(ver), when='@{0}~mpi'.format(ver), type=('build', 'run') ) depends_on('git', type='build') depends_on('python@3.6:', type=('build', 'run'), when='@0.13:') depends_on('python@3.5:', type=('build', 'run'), when='@:0.12') depends_on('py-cython', type='build') depends_on('py-h5py~mpi', when='~mpi', type=('build', 'run')) depends_on('py-h5py+mpi', when='+mpi', type=('build', 'run')) depends_on('py-ipython', type=('build', 'run')) depends_on('py-lxml', type=('build', 'run')) depends_on('py-matplotlib', type=('build', 'run')) depends_on('py-mpi4py', when='+mpi', type=('build', 'run')) depends_on('py-numpy@1.9:', type=('build', 'run')) depends_on('py-pandas', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-scipy', type=('build', 'run')) depends_on('py-uncertainties', type=('build', 'run')) @run_after('install') def install_lib(self): install(join_path(self.spec['openmc'].prefix.lib, 'libopenmc.*'), self.prefix.lib)
player1537-forks/spack
var/spack/repos/builtin/packages/r-htmltable/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 RHtmltable(RPackage): """Advanced Tables for Markdown/HTML. Tables with state-of-the-art layout elements such as row spanners, column spanners, table spanners, zebra striping, and more. While allowing advanced layout, the underlying css-structure is simple in order to maximize compatibility with word processors such as 'MS Word' or 'LibreOffice'. The package also contains a few text formatting functions that help outputting text compatible with HTML/'LaTeX'.""" cran = "htmlTable" version('2.4.0', sha256='4ca2b5616d77cfeee8ae5ca74307b86407d478b12d1ce17ba9c447e233b89a9d') version('2.1.0', sha256='4049339b317cbec1c8c7930e2e36cf0fc8b002516092dd270bb794d8db02f0bf') version('1.13.1', sha256='689f32b65da6a57ad500e8d9ef3309d346401dca277c6b264a46c8d7c75884d0') version('1.11.2', sha256='64a273b1cdf07a7c57b9031315ca665f95d78e70b4320d020f64a139278877d1') version('1.9', sha256='5b487a7f33af77db7d987bf61f3ef2ba18bb629fe7b9802409f8b3485c603132') depends_on('r-stringr', type=('build', 'run')) depends_on('r-knitr@1.6:', type=('build', 'run')) depends_on('r-magrittr@1.5:', type=('build', 'run')) depends_on('r-checkmate', type=('build', 'run')) depends_on('r-htmlwidgets', type=('build', 'run')) depends_on('r-htmltools', type=('build', 'run'), when="@1.11.0:") depends_on('r-rstudioapi@0.6:', type=('build', 'run'), when="@1.11.0:")
player1537-forks/spack
var/spack/repos/builtin/packages/montage/package.py
<filename>var/spack/repos/builtin/packages/montage/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 Montage(MakefilePackage): """Montage is a toolkit for assembling Flexible Image Transport System (FITS) images into custom mosaics.""" homepage = "http://montage.ipac.caltech.edu/" url = "http://montage.ipac.caltech.edu/download/Montage_v6.0.tar.gz" version('6.0', sha256='1f540a7389d30fcf9f8cd9897617cc68b19350fbcde97c4d1cdc5634de1992c6') depends_on('freetype') depends_on('bzip2') depends_on('libpng') def install(self, spec, prefix): # not using autotools, just builds bin and lib in the source directory mkdirp(prefix.bin, prefix.lib) install_tree('bin', prefix.bin) install_tree('lib', prefix.lib)
player1537-forks/spack
var/spack/repos/builtin/packages/routino/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 Routino(MakefilePackage): """Routino is an application for finding a route between two points using the dataset of topographical information collected by https://www.OpenStreetMap.org/.""" homepage = "https://www.routino.org" url = "https://www.routino.org/download/routino-3.2.tgz" version('3.2', sha256='e2a431eaffbafab630835966d342e4ae25d5edb94c8ed419200e1ffb50bc7552') depends_on('zlib') depends_on('bzip2') def edit(self, spec, prefix): makefile = FileFilter('Makefile.conf') makefile.filter('prefix=.*', 'prefix={0}'.format(prefix))
player1537-forks/spack
var/spack/repos/builtin/packages/lmbench/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 Lmbench(MakefilePackage): """lmbench is a suite of simple, portable, ANSI/C microbenchmarks for UNIX/POSIX. In general, it measures two key features: latency and bandwidth. lmbench is intended to give system developers insight into basic costs of key operations.""" homepage = "http://lmbench.sourceforge.net/" git = "https://github.com/intel/lmbench.git" version('master', branch='master') depends_on('libtirpc') patch('fix_results_path_for_aarch64.patch', sha256='2af57abc9058c56b6dd0697bb01a98902230bef92b117017e318faba148eef60', when='target=aarch64:') def setup_build_environment(self, env): env.prepend_path('CPATH', self.spec['libtirpc'].prefix.include.tirpc) env.append_flags('LDFLAGS', '-ltirpc') def build(self, spec, prefix): make('build') def install(self, spec, prefix): install_tree('.', prefix)
player1537-forks/spack
var/spack/repos/builtin/packages/graphblast/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 Graphblast(MakefilePackage, CudaPackage): """High-Performance Linear Algebra-based Graph Primitives on GPUs""" homepage = "https://github.com/gunrock/graphblast" git = "https://github.com/gunrock/graphblast.git" version('master', submodules=True) version('2020-05-07', submodules=True, commit='<PASSWORD>', preferred=True) variant('cuda', default=True, description="Build with Cuda support") depends_on('boost +program_options') # This package is confirmed to compile with: # gcc@:5.4.0,7.5.0 , boost@1.58.0:1.60.0 , cuda@9: # TODO: the package doesn't compile as CMakePackage # once that is fixed it should be converted to a CMakePackage type. conflicts('cuda_arch=none', when='+cuda', msg='Must specify CUDA compute capabilities of your GPU. \ See "spack info graphblast"') def install(self, spec, prefix): install_tree(self.build_directory, self.prefix) def patch(self): cuda_arch_list = self.spec.variants['cuda_arch'].value arches = 'ARCH = ' for i in cuda_arch_list: arches = arches +\ ' -gencode arch=compute_{0},code=compute_{0}'.format(i) makefile = FileFilter('common.mk') makefile.filter(r'^ARCH =.*', arches)
player1537-forks/spack
var/spack/repos/builtin/packages/r-gh/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 RGh(RPackage): """'GitHub' 'API'. Minimal client to access the 'GitHub' 'API'.""" cran = "gh" version('1.3.0', sha256='a44039054e8ca56496f2d9c7a10cdadf4a7383bc91086e768ba7e7f1fbcaed1c') version('1.2.0', sha256='2988440ed2ba4b241c8ffbafbfdad29493574980a9aeba210521dadda91f7eff') version('1.1.0', sha256='de9faf383c3fe5e87a75391d82cf71b1331b3c80cd00c4203146a303825d89ad') version('1.0.1', sha256='f3c02b16637ae390c3599265852d94b3de3ef585818b260d00e7812595b391d2') depends_on('r-cli', type=('build', 'run'), when='@1.1.0:') depends_on('r-cli@2.0.1:', type=('build', 'run'), when='@1.2.0:') depends_on('r-gitcreds', type=('build', 'run'), when='@1.2.0:') depends_on('r-httr', type=('build', 'run')) depends_on('r-httr@1.2:', type=('build', 'run'), when='@1.1.0:') depends_on('r-ini', type=('build', 'run')) depends_on('r-jsonlite', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/source-highlight/package.py
<filename>var/spack/repos/builtin/packages/source-highlight/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 SourceHighlight(AutotoolsPackage, GNUMirrorPackage): """This program, given a source file, produces a document with syntax highlighting. It also provides a C++ highlight library (since version 3.0). """ homepage = "https://www.gnu.org/software/src-highlite/" gnu_mirror_path = "src-highlite/source-highlight-3.1.8.tar.gz" git = "https://git.savannah.gnu.org/git/src-highlite.git" version('master', branch='master') version('3.1.9', sha256='3a7fd28378cb5416f8de2c9e77196ec915145d44e30ff4e0ee8beb3fe6211c91') version('3.1.8', sha256='01336a7ea1d1ccc374201f7b81ffa94d0aecb33afc7d6903ebf9fbf33a55ada3') patch('https://git.savannah.gnu.org/cgit/src-highlite.git/' + 'patch/lib?id=904949c9026cb772dc93fbe0947a252ef47127f4', sha256='45087b174b2b128a8dc81b0728f8ae63213d255ceef6dabfcba27c94e2a75ce9', when='%gcc@11:') depends_on('boost') # git version needs autotools depends_on('m4', when='@master') depends_on('autoconf', when='@master') depends_on('automake', when='@master') depends_on('libtool', when='@master') depends_on('texinfo', when='@master') def configure_args(self): args = ["--with-boost={0}".format(self.spec['boost'].prefix)] return args
player1537-forks/spack
var/spack/repos/builtin/packages/r-rbibutils/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 RRbibutils(RPackage): """Convert Between Bibliography Formats. Converts between a number of bibliography formats, including 'BibTeX', 'BibLaTeX' and 'Bibentry'. Includes a port of the 'bibutils' utilities by <NAME> <https://sourceforge.net/projects/bibutils/>. Supports all bibliography formats and character encodings implemented in 'bibutils'.""" cran = "rbibutils" version('2.2.7', sha256='7c9e6719556b8caa9fb58743b717e89f45e8e7018371bf16f07dc3c1f96a55c5') version('2.0', sha256='03d13abee321decb88bc4e7c9f27276d62a4a880fa72bb6b86be91885010cfed') depends_on('r@2.10:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-gamm4/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 RGamm4(RPackage): """Generalized Additive Mixed Models using 'mgcv' and 'lme4'. Estimate generalized additive mixed models via a version of function gamm() from 'mgcv', using 'lme4' for estimation.""" cran = "gamm4" version('0.2-6', sha256='57c5b66582b2adc32f6a3bb6a259f5b95198e283a96d966a6007e8e48b380c89') depends_on('r@2.9.0:', type=('build', 'run')) depends_on('r-matrix', type=('build', 'run')) depends_on('r-lme4@1.0:', type=('build', 'run')) depends_on('r-mgcv@1.7-23:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/cmaq/package.py
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/cmaq/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 Cmaq(Package): """Code base for the U.S. EPA's Community Multiscale Air Quality Model (CMAQ).""" homepage = "https://www.epa.gov/CMAQ" url = "https://github.com/USEPA/CMAQ/archive/CMAQv5.3.1_19Dec2019.tar.gz" version('5.3.1', sha256='659156bba27f33010e0fdc157a8d33f3b5b779b95511e2ade870284b6bcb4bc8', url='https://github.com/USEPA/CMAQ/archive/CMAQv5.3.1_19Dec2019.tar.gz') version('5.3', sha256='e245c291c7e88d481b13f577d1af9aeb5aef4de8c59f7fa06fa41d19bb2ed18c', url='https://github.com/USEPA/CMAQ/archive/CMAQv5.3_27Aug2019.tar.gz') def install(self, spec, prefix): install_tree('.', prefix)
player1537-forks/spack
var/spack/repos/builtin/packages/cjson/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 Cjson(CMakePackage): """Ultralightweight JSON parser in ANSI C.""" homepage = 'https://github.com/DaveGamble/cJSON' git = 'https://github.com/DaveGamble/cJSON' url = 'https://github.com/DaveGamble/cJSON/archive/refs/tags/v1.7.15.zip' version('1.7.15', sha256='c55519316d940757ef93a779f1db1ca809dbf979c551861f339d35aaea1c907c')
player1537-forks/spack
var/spack/repos/builtin/packages/sandbox/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 Sandbox(AutotoolsPackage): """sandbox'd LD_PRELOAD hack by Gentoo Linux""" homepage = "https://www.gentoo.org/proj/en/portage/sandbox/" url = "https://dev.gentoo.org/~mgorny/dist/sandbox-2.12.tar.xz" version('2.12', sha256='265a490a8c528237c55ad26dfd7f62336fa5727c82358fc9cfbaa2e52c47fc50') depends_on('gawk', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/py-tqdm/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 PyTqdm(PythonPackage): """A Fast, Extensible Progress Meter""" homepage = "https://github.com/tqdm/tqdm" pypi = "tqdm/tqdm-4.45.0.tar.gz" version('4.62.3', sha256='d359de7217506c9851b7869f3708d8ee53ed70a1b8edbba4dbcb47442592920d') version('4.59.0', sha256='d666ae29164da3e517fcf125e41d4fe96e5bb375cd87ff9763f6b38b5592fe33') version('4.56.2', sha256='11d544652edbdfc9cc41aa4c8a5c166513e279f3f2d9f1a9e1c89935b51de6ff') version('4.46.0', sha256='4733c4a10d0f2a4d098d801464bdaf5240c7dadd2a7fde4ee93b0a0efd9fb25e') version('4.45.0', sha256='00339634a22c10a7a22476ee946bbde2dbe48d042ded784e4d88e0236eca5d81') version('4.36.1', sha256='abc25d0ce2397d070ef07d8c7e706aede7920da163c64997585d42d3537ece3d') version('4.8.4', sha256='bab05f8bb6efd2702ab6c532e5e6a758a66c0d2f443e09784b73e4066e6b3a37') variant('telegram', default=False, description='Enable Telegram bot support') variant('notebook', default=False, description='Enable Jupyter Notebook support') depends_on('python@2.7:2.8,3.4:', type=('build', 'run')) depends_on('py-setuptools@42:', type=('build', 'run')) depends_on('py-setuptools-scm@3.4:+toml', type='build') # depends_on('py-colorama', type=('build', 'run'), when='platform=windows') depends_on('py-requests', when='+telegram', type=('build', 'run')) depends_on('py-ipywidgets@6:', when='+notebook', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/packmol/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 Packmol(CMakePackage): """Packmol creates an initial point for molecular dynamics simulations by packing molecules in defined regions of space.""" homepage = "https://m3g.iqm.unicamp.br/packmol/home.shtml" url = "https://github.com/mcubeg/packmol/archive/18.169.tar.gz" version('18.169', sha256='8acf2cbc742a609e763eb00cae55aecd09af2edb4cc4e931706e2f06ac380de9')
player1537-forks/spack
var/spack/repos/builtin/packages/openslp/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 Openslp(AutotoolsPackage): """OpenSLP project is an effort to develop an open-source, commercial-grade, implementation of IETF Standards track Service Location Protocol (RFC 2608). The interface conforms to IETF Standards track, "An API for Service Location" (RFC 2614)""" homepage = "http://www.openslp.org/" url = "https://github.com/openslp-org/openslp/archive/openslp-2.0.0.tar.gz" version('2.0.0', sha256='9dda45ff52cf8561ca1414ac8b4947ed2d9b43e66aec03478fa0ed37121a5ea2') depends_on('autoconf', type='build') depends_on('automake', type='build') depends_on('libtool', type='build') depends_on('m4', type='build') depends_on('flex', type='build') depends_on('byacc', type='build') configure_directory = 'openslp'
player1537-forks/spack
var/spack/repos/builtin/packages/mpir/package.py
<filename>var/spack/repos/builtin/packages/mpir/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 Mpir(Package): """Multiple Precision Integers and Rationals.""" homepage = "https://github.com/wbhart/mpir" url = "https://github.com/wbhart/mpir/archive/mpir-2.7.0.tar.gz" git = "https://github.com/wbhart/mpir.git" version('develop', branch='master') version('2.7.0', sha256='2d0174aaccff918766215df00420f12929a6c376ab4e558af31f57c55193bcb7') version('2.6.0', sha256='dedb336098d41d4e298909586cf351003bcd7aad9317e801f3e4c4838f6d7691') # This setting allows mpir to act as a drop-in replacement for gmp variant('gmp_compat', default=False, description='Compile with GMP library compatibility') # Build dependencies depends_on('autoconf', type='build') # Other dependencies depends_on('yasm') def install(self, spec, prefix): # We definitely don't want to have MPIR build its # own version of YASM. This tries to install it # to a system directory. options = ['--prefix={0}'.format(prefix), '--with-system-yasm'] if '+gmp_compat' in spec: options.extend(['--enable-gmpcompat']) configure(*options) make() if self.run_tests: make('check') make('install')
player1537-forks/spack
var/spack/repos/builtin/packages/minuit/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 Minuit(AutotoolsPackage): """MINUIT is a physics analysis tool for function minimization.""" homepage = "https://seal.web.cern.ch/seal/snapshot/work-packages/mathlibs/minuit/home.html" url = "http://www.cern.ch/mathlibs/sw/5_34_14/Minuit2/Minuit2-5.34.14.tar.gz" list_url = "https://seal.web.cern.ch/seal/snapshot/work-packages/mathlibs/minuit/release/download.html" version('5.34.14', sha256='2ca9a283bbc315064c0a322bc4cb74c7e8fd51f9494f7856e5159d0a0aa8c356') version('5.28.00', sha256='c3d380b021f4f8e21cde9b73f7019a2aa94c4fcaf5af3f30151ef5f7bfcb23cb') version('5.27.02', sha256='262e2a014f17dd54535b71efc69d1ee6318e6109a57dbe376b416247a031ad5e') version('5.24.00', sha256='2e4df8de85eab97484424d1c10128c489948f0dbab4779c36195aa1a42d4b2c2') version('5.22.00', sha256='9a64698e8c38a1ac88c98a023f423611f3a157fd9f63bf13671211d3c7a9d7c4') version('5.21.06', sha256='4c12b35993c8ecf644043d3d876afb5537a702eb24771f57dbe55d5ea6f49d92') version('5.20.00', sha256='c5afbfcf25cb4fb95f773f6611a46ec4f293ad2f3c3a3cd75f79ea5e226f62e4') version('5.18.00', sha256='57f0a6079677d45f89ac7d1105bbcb28fe6f22609856f3225c582ff5209ada7e') version('5.16.00', sha256='db840e4983de0cea9fa1e861cd3c373c5effd969ad88849b1dd0894f80a02717') version('5.14.00', sha256='d38fc8477124b07ebf38fa3fe9f16e7fa070aefe700fce15454b2e749f89db8d') version('5.12.00', sha256='c206033a723888a0a079fd0de05027460d99dca1d2b4eeb0ad0e7b60cea86236') version('5.10.00', sha256='4f51eb73b0eed527cc2c6f860cc6e2a5d86bb84f37f3c6d8ca469ce6c1ae96c4') version('5.08.00', sha256='cf5f2858f40933928738b4d204651dfdfdca8431111bb8b7300b3b43b9b5fa30') version('1.7.9', sha256='a7b7fdf89267fe272ae336725c9f4b98e5ccc67ab666e34284a64ec977ee0e07') version('1.7.6', sha256='1141e885eec53a0fa859581c160dee522876c65fc7396255ab9a0388622aedd8') version('1.7.1', sha256='fe7255974969a7e329dd3ed2b934f502c80a6f74ffb85a311ea56a325cd7ca06') version('1.6.3', sha256='17851717cd7e99c705bf3546641572064ef9485653c5741698ff760d34af7271') version('1.6.0', sha256='d12259f53ed9957215c3cef11e2d0dce755f627bb3506172f25dcd7ce9950a24') version('1.5.2', sha256='b0ed8d7d0071b1e8daa5a5dc4c05d522731617a5430a288b932edc331869c063') version('1.5.0', sha256='b5fffdc1d06a2b4ffd6dad5fdd30d127ea354a789aaa9f25f33cf7c539898b7f') def url_for_version(self, version): if version > Version('5.0.0'): url = "http://www.cern.ch/mathlibs/sw/{0}/Minuit2/Minuit2-{1}.tar.gz" return url.format(version.underscored, version) else: url = "http://seal.web.cern.ch/seal/minuit/releases/Minuit-{0}.tar.gz" return url.format(version.underscored) patch('sprintf.cxx.patch', when='@5.08.00:5.18.00') patch('sprintf.patch', when='@:1.7.9') patch('LASymMatrix.h.patch', when='@:1.7.6')
player1537-forks/spack
var/spack/repos/builtin/packages/r-yaimpute/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 RYaimpute(RPackage): """Nearest Neighbor Observation Imputation and Evaluation Tools. Performs nearest neighbor-based imputation using one or more alternative approaches to processing multivariate data. These include methods based on canonical correlation analysis, canonical correspondence analysis, and a multivariate adaptation of the random forest classification and regression techniques of Leo Breiman and Adele Cutler. Additional methods are also offered. The package includes functions for comparing the results from running alternative techniques, detecting imputation targets that are notably distant from reference observations, detecting and correcting for bias, bootstrapping and building ensemble imputations, and mapping results.""" cran = "yaImpute" version('1.0-32', sha256='08eee5d851b80aad9c7c80f9531aadd50d60e4b16b3a80657a50212269cd73ff') depends_on('r@3.0:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/fastdfs/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 Fastdfs(Package): """ FastDFS is an open source high performance distributed file system. It's major functions include: file storing, file syncing and file accessing (file uploading and file downloading), and it can resolve the high capacity and load balancing problem. FastDFS should meet the requirement of the website whose service based on files such as photo sharing site and video sharing site. """ homepage = "https://github.com/happyfish100/fastdfs" url = "https://github.com/happyfish100/fastdfs/archive/V6.05.tar.gz" version('6.05', sha256='00b736a1a7bd9cb5733aa51969efaa3b46df3764988c1edb43f06d72c4d575d9') version('6.04', sha256='76090f6bbd0add08b049ce17f30a7507a44ef0d883784cad774b380ba4906916') version('6.03', sha256='142be123eb389335b3b3793f0765494bdad3a632e4352af57861ed29098ec8d1') version('6.02', sha256='b1801f80da9ebce1d84e7e05356c4614190651cb6a5cb4f5662d9196fe243e21') version('6.01', sha256='b72f4ff6beb21a83af59aeba9f1904e727fa2c1e960e0a9c2b969138d2804148') depends_on('perl', type='build') depends_on('libfastcommon', type='build') def install(self, spec, prefix): sh = which('sh') sh('make.sh') sh('make.sh', 'install') install_tree('.', prefix)
player1537-forks/spack
var/spack/repos/builtin/packages/capstone/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 Capstone(CMakePackage): """Capstone is a lightweight multi-platform, multi-architecture disassembly framework.""" homepage = "https://www.capstone-engine.org/" url = "https://github.com/capstone-engine/capstone/archive/4.0.1.tar.gz" git = "https://github.com/capstone-engine/capstone.git" version('next', branch='next') version('4.0.2', sha256='7c81d798022f81e7507f1a60d6817f63aa76e489aa4e7055255f21a22f5e526a') version('4.0.1', sha256='79bbea8dbe466bd7d051e037db5961fdb34f67c9fac5c3471dd105cfb1e05dc7')
player1537-forks/spack
var/spack/repos/builtin/packages/py-yolk3k/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 PyYolk3k(PythonPackage): """Yolk is a Python tool for obtaining information about installed Python packages and querying packages avilable on PyPI (Python Package Index). Yolk3k is a fork of the original yolk. `yolk3k` add Python 3 support and adds additional features.""" homepage = "https://github.com/myint/yolk" pypi = "yolk3k/yolk3k-0.9.tar.gz" version('0.9', sha256='cf8731dd0a9f7ef50b5dc253fe0174383e3fed295a653672aa918c059eef86ae') depends_on('py-setuptools', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/r-gsalib/package.py
<filename>var/spack/repos/builtin/packages/r-gsalib/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 RGsalib(RPackage): """Utility Functions For GATK. This package contains utility functions used by the Genome Analysis Toolkit (GATK) to load tables and plot data. The GATK is a toolkit for variant discovery in high-throughput sequencing data.""" cran = "gsalib" version('2.1', sha256='e1b23b986c18b89a94c58d9db45e552d1bce484300461803740dacdf7c937fcc')
player1537-forks/spack
var/spack/repos/builtin/packages/slurm-drmaa/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 SlurmDrmaa(AutotoolsPackage): ''' DRMAA for Slurm is an implementation of Open Grid Forum DRMAA 1.0 (Distributed Resource Management Application API) specification for submission and control of jobs to SLURM. Using DRMAA, grid applications builders, portal developers and ISVs can use the same high-level API to link their software with different cluster/resource management systems. ''' homepage = "https://github.com/natefoo/slurm-drmaa" url = "https://github.com/natefoo/slurm-drmaa/releases/download/1.1.2/slurm-drmaa-1.1.2.tar.gz" git = 'https://github.com/natefoo/slurm-drmaa.git' maintainers = ['pwablito'] version('main', branch='main', submodules=True) version('1.1.2', sha256='5bfe25d501de83729df3c8c8f28535b9da3e99aea7738e259903abd6f1f5c836') # Remove this patch when it is merged into main: patch('https://patch-diff.githubusercontent.com/raw/natefoo/slurm-drmaa/pull/62.patch', sha256='86bba5e2683f33e59f7e9193aa5fa948eb6a5507d44768f2f6d756a33fef7b74', when='@main') depends_on('autoconf', type='build', when='@main') depends_on('automake', type='build', when='@main') depends_on('libtool', type='build', when='@main') depends_on('bison', type='build', when='@main') depends_on("slurm") depends_on("slurm@:20-11-8-1", when='@1.1.2') depends_on("gperf") depends_on("ragel") def check(self): pass
player1537-forks/spack
var/spack/repos/builtin/packages/py-sgp4/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 PySgp4(PythonPackage): """Track earth satellite TLE orbits using up-to-date 2010 version of SGP4 """ homepage = "https://github.com/brandon-rhodes/python-sgp4" pypi = "sgp4/sgp4-1.4.tar.gz" version('1.4', sha256='1fb3cdbc11981a9ff34a032169f83c1f4a2877d1b6c295aed044e1d890b73892') depends_on('python@2.6:2.8,3.3:', type=('build', 'run')) # pip silently replaces distutils with setuptools depends_on('py-setuptools', type='build')
player1537-forks/spack
lib/spack/spack/cmd/patch.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) import llnl.util.tty as tty import spack.cmd import spack.cmd.common.arguments as arguments import spack.repo description = "patch expanded archive sources in preparation for install" section = "build" level = "long" def setup_parser(subparser): arguments.add_common_arguments( subparser, ['no_checksum', 'deprecated', 'specs']) def patch(parser, args): if not args.specs: tty.die("patch requires at least one spec argument") if args.no_checksum: spack.config.set('config:checksum', False, scope='command_line') if args.deprecated: spack.config.set('config:deprecated', True, scope='command_line') specs = spack.cmd.parse_specs(args.specs, concretize=True) for spec in specs: package = spack.repo.get(spec) package.do_patch()
player1537-forks/spack
var/spack/repos/builtin/packages/ruby-svn2git/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 RubySvn2git(RubyPackage): """svn2git is a tiny utility for migrating projects from Subversion to Git while keeping the trunk, branches and tags where they should be. It uses git-svn to clone an svn repository and does some clean-up to make sure branches and tags are imported in a meaningful way, and that the code checked into master ends up being what's currently in your svn trunk rather than whichever svn branch your last commit was in.""" homepage = "https://github.com/nirvdrum/svn2git/" url = "https://github.com/nirvdrum/svn2git/archive/v2.4.0.tar.gz" version('2.4.0', sha256='81d0a3eff5b12b729d0fe8ad117db386954c635067f1c86007360c6c76dec253') depends_on('git') depends_on('subversion+perl')
player1537-forks/spack
var/spack/repos/builtin/packages/libmng/package.py
<filename>var/spack/repos/builtin/packages/libmng/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 Libmng(CMakePackage): """THE reference library for reading, displaying, writing and examining Multiple-Image Network Graphics. MNG is the animation extension to the popular PNG image format.""" homepage = "https://sourceforge.net/projects/libmng/" url = "http://downloads.sourceforge.net/project/libmng/libmng-devel/2.0.3/libmng-2.0.3.tar.gz" version('2.0.3', sha256='cf112a1fb02f5b1c0fce5cab11ea8243852c139e669c44014125874b14b7dfaa') version('2.0.2', sha256='4908797bb3541fb5cd8fffbe0b1513ed163509f2a4d57a78b26a96f8d1dd05a2') depends_on("jpeg") depends_on("zlib") depends_on("lcms") def patch(self): # jpeg requires stdio to be included before its headers. filter_file(r'^(\#include \<jpeglib\.h\>)', '#include<stdio.h>\n\\1', 'libmng_types.h') def cmake_args(self): return ['-DWITH_LCMS2:BOOL=ON', '-DWITH_LCMS1:BOOL=OFF']
player1537-forks/spack
var/spack/repos/builtin/packages/py-us/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 PyUs(PythonPackage): """US state meta information and other fun stuff.""" pypi = "us/us-1.0.0.tar.gz" version('1.0.0', sha256='09dc9ba763e2e4399e6a042104f3e415a7de6bfa4df6f557b4f19e3ba9a22fda') depends_on('py-setuptools', type='build') depends_on('py-jellyfish@0.5.6', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-als/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 RAls(RPackage): """Multivariate Curve Resolution Alternating Least Squares (MCR-ALS). Alternating least squares is often used to resolve components contributing to data with a bilinear structure; the basic technique may be extended to alternating constrained least squares. Commonly applied constraints include unimodality, non-negativity, and normalization of components. Several data matrices may be decomposed simultaneously by assuming that one of the two matrices in the bilinear decomposition is shared between datasets.""" cran = "ALS" version('0.0.6', sha256='ca90d27115ae9e476967f521bf6935723e410a3bf92477e7570e14bfd3b099eb') depends_on('r@2.10:', type=('build', 'run')) depends_on('r-iso', type=('build', 'run')) depends_on('r-nnls@1.1:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-tseries/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 RTseries(RPackage): """Time series analysis and computational finance.""" cran = "tseries" version('0.10-49', sha256='45bf26d8f41f12a72954bbe5fb6f4da6cc4ef29ee075c49fe7cc8456926c14ba') version('0.10-48', sha256='53bd22708c936205c5f839a10f2e302524d2cc54dc309e7d885ebd081ccb4471') version('0.10-47', sha256='202377df56806fe611c2e12c4d9732c71b71220726e2defa7e568d2b5b62fb7b') version('0.10-46', sha256='12940afd1d466401160e46f993ed4baf28a42cef98d3757b66ee15e916e07222') version('0.10-42', sha256='827f79858715c700e8cabd2c27853ba88ad0e05eb043bc94e126b155a75546c4') depends_on('r@2.10.0:', type=('build', 'run')) depends_on('r-quadprog', type=('build', 'run')) depends_on('r-zoo', type=('build', 'run')) depends_on('r-quantmod@0.4-9:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/remhos/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 Remhos(MakefilePackage): """Remhos (REMap High-Order Solver) is a CEED miniapp that performs monotonic and conservative high-order discontinuous field interpolation (remap) using DG advection-based spatial discretization and explicit high-order time-stepping. """ tags = ['proxy-app'] homepage = "https://github.com/CEED/Remhos" url = "https://github.com/CEED/Remhos/archive/v1.0.tar.gz" git = "https://github.com/CEED/Remhos.git" maintainers = ['v-dobrev', 'tzanio', 'vladotomov'] version('develop', branch='master') version('1.0', sha256='e60464a867fe5b1fd694fbb37bb51773723427f071c0ae26852a2804c08bbb32') variant('metis', default=True, description='Enable/disable METIS support') depends_on('mfem+mpi+metis', when='+metis') depends_on('mfem+mpi~metis', when='~metis') depends_on('mfem@develop', when='@develop') depends_on('mfem@4.1.0:', when='@1.0') @property def build_targets(self): targets = [] spec = self.spec targets.append('MFEM_DIR=%s' % spec['mfem'].prefix) targets.append('CONFIG_MK=%s' % spec['mfem'].package.config_mk) targets.append('TEST_MK=%s' % spec['mfem'].package.test_mk) return targets # See lib/spack/spack/build_systems/makefile.py def check(self): with working_dir(self.build_directory): make('tests', *self.build_targets) def install(self, spec, prefix): mkdirp(prefix.bin) install('remhos', prefix.bin) install_time_test_callbacks = []
player1537-forks/spack
var/spack/repos/builtin/packages/py-hypothesis/package.py
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/py-hypothesis/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 PyHypothesis(PythonPackage): """A library for property based testing.""" homepage = "https://github.com/HypothesisWorks/hypothesis-python" pypi = "hypothesis/hypothesis-4.41.2.tar.gz" version('6.23.1', sha256='23a1b0488aec5719e2f9e399342e10f30d497cbb9fd39470ef0975c1b502ae35') version('5.3.0', sha256='c9fdb53fe3bf1f8e7dcca1a7dd6e430862502f088aca2903d141511212e79429') version('4.57.1', sha256='3c4369a4b0a1348561048bcda5f1db951a1b8e2a514ea8e8c70d36e656bf6fa0') version('4.41.2', sha256='6847df3ffb4aa52798621dd007e6b61dbcf2d76c30ba37dc2699720e2c734b7a') version('4.24.3', sha256='fd90a319f409f34a173156ca704d6c0c6c0bb30a2e43dbf26aced2c75569e5d5') version('4.7.2', sha256='87944c6379f77634474b88abbf1e5ed5fe966637cc926131eda5e2af5b54a608') version('3.7.0', sha256='0fea49d08f2d5884f014151a5af6fb48d862f6ad567ffc4a2e84abf2f186c423') depends_on('python@2.7:2.8,3.5:', type=('build', 'run')) depends_on('python@3.6:', type=('build', 'run'), when='@6:') depends_on('py-setuptools@36.2:', type=('build')) depends_on('py-attrs@19.2.0:', when='@4.38.2:', type=('build', 'run')) depends_on('py-attrs@16.0.0:', when='@3.44.22:', type=('build', 'run')) depends_on('py-attrs', when='@3.28.0:', type=('build', 'run')) depends_on('py-enum34', type=('build', 'run'), when='^python@:2') depends_on('py-sortedcontainers@2.1.0:2', type=('build', 'run'), when='@4.57.1:') depends_on('py-django@2.2:', type='run', when='+django') depends_on('py-pytz@2014.1:', type='run', when='+django') depends_on('py-numpy@1.9.0:', type='run', when='+numpy') depends_on('py-pandas@0.25:', type='run', when='+pandas') variant('django', default=False, description='Enable django support') variant('numpy', default=False, description='Enable numpy support') variant('pandas', default=False, description='Enable pandas support') # All modules except for 'hypothesis.extra.pandas' and 'hypothesis.extra.django', # which are optional and are only added when their variants are enabled: import_test_modules = [ 'hypothesis', 'hypothesis.extra', 'hypothesis.utils', 'hypothesis.strategies', 'hypothesis.strategies._internal', 'hypothesis.vendor', 'hypothesis.internal', 'hypothesis.internal.conjecture', 'hypothesis.internal.conjecture.shrinking', 'hypothesis.internal.conjecture.dfa' ] @property def import_modules(self): if self.spec.satisfies('+pandas'): self.import_test_modules.append('hypothesis.extra.pandas') if self.spec.satisfies('+django'): self.import_test_modules.append('hypothesis.extra.django') return self.import_test_modules
player1537-forks/spack
var/spack/repos/builtin/packages/r-adgoftest/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 RAdgoftest(RPackage): """Anderson-Darling GoF test. Anderson-Darling GoF test with p-value calculation based on Marsaglia's 2004 paper 'Evaluating the Anderson-Darling Distribution'.""" cran = "ADGofTest" version('0.3', sha256='9cd9313954f6ecd82480d373f6c5371ca84ab33e3f5c39d972d35cfcf1096846')
player1537-forks/spack
lib/spack/spack/test/cvs_fetch.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 import pytest from llnl.util.filesystem import mkdirp, touch, working_dir import spack.config import spack.repo from spack.fetch_strategy import CvsFetchStrategy from spack.spec import Spec from spack.stage import Stage from spack.util.executable import which from spack.version import ver pytestmark = pytest.mark.skipif( not which('cvs'), reason='requires CVS to be installed') @pytest.mark.parametrize("type_of_test", ['default', 'branch', 'date']) def test_fetch( type_of_test, mock_cvs_repository, config, mutable_mock_repo ): """Tries to: 1. Fetch the repo using a fetch strategy constructed with supplied args (they depend on type_of_test). 2. Check whether the checkout is on the correct branch or date 3. Check if the test_file is in the checked out repository. 4. Add and remove some files, then reset the repo, and ensure it's all there again. CVS does not have the notion of a unique branch; branches and revisions are managed separately for every file. """ # Retrieve the right test parameters test = mock_cvs_repository.checks[type_of_test] get_branch = mock_cvs_repository.get_branch get_date = mock_cvs_repository.get_date # Construct the package under test spec = Spec('cvs-test') spec.concretize() pkg = spack.repo.get(spec) pkg.versions[ver('cvs')] = test.args # Enter the stage directory and check some properties with pkg.stage: pkg.do_stage() with working_dir(pkg.stage.source_path): # Check branch if test.branch is not None: assert get_branch() == test.branch # Check date if test.date is not None: assert get_date() <= test.date file_path = os.path.join(pkg.stage.source_path, test.file) assert os.path.isdir(pkg.stage.source_path) assert os.path.isfile(file_path) os.unlink(file_path) assert not os.path.isfile(file_path) untracked_file = 'foobarbaz' touch(untracked_file) assert os.path.isfile(untracked_file) pkg.do_restage() assert not os.path.isfile(untracked_file) assert os.path.isdir(pkg.stage.source_path) assert os.path.isfile(file_path) def test_cvs_extra_fetch(tmpdir): """Ensure a fetch after downloading is effectively a no-op.""" testpath = str(tmpdir) fetcher = CvsFetchStrategy( cvs=':pserver:not-a-real-cvs-repo%module=not-a-real-module') assert fetcher is not None with Stage(fetcher, path=testpath) as stage: assert stage is not None source_path = stage.source_path mkdirp(source_path) # TODO: This doesn't look as if it was testing what this function's # comment says it is testing. However, the other `test_*_extra_fetch` # functions (for svn, git, hg) use equivalent code. # # We're calling `fetcher.fetch` twice as this might be what we want to # do, and it can't hurt. See # <https://github.com/spack/spack/pull/23212> for a discussion on this. # Fetch once fetcher.fetch() # Fetch a second time fetcher.fetch()
player1537-forks/spack
var/spack/repos/builtin/packages/py-numpydoc/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 PyNumpydoc(PythonPackage): """numpydoc - Numpy's Sphinx extensions""" homepage = "https://github.com/numpy/numpydoc" pypi = "numpydoc/numpydoc-0.6.0.tar.gz" version('1.1.0', sha256='c36fd6cb7ffdc9b4e165a43f67bf6271a7b024d0bb6b00ac468c9e2bfc76448e') version('0.6.0', sha256='1ec573e91f6d868a9940d90a6599f3e834a2d6c064030fbe078d922ee21dcfa1') depends_on('python@2.6:2.8,3.3:', when='@0.6.0') depends_on('python@3.5:', when='@1.1.0') depends_on('py-setuptools', type='build') depends_on('py-sphinx@1.0.1:1.6.7', type='build', when='@0.6.0') depends_on('py-sphinx@1.6.5:', type='build', when='@1.1.0') depends_on('py-jinja2@2.3:', type='build', when='@1.1.0')
player1537-forks/spack
var/spack/repos/builtin/packages/py-diskcache/package.py
<filename>var/spack/repos/builtin/packages/py-diskcache/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 PyDiskcache(PythonPackage): """Disk Cache -- Disk and file backed persistent cache.""" homepage = "http://www.grantjenks.com/docs/diskcache/" pypi = "diskcache/diskcache-4.1.0.tar.gz" version('5.2.1', sha256='1805acd5868ac10ad547208951a1190a0ab7bbff4e70f9a07cde4dbdfaa69f64') version('4.1.0', sha256='bcee5a59f9c264e2809e58d01be6569a3bbb1e36a1e0fb83f7ef9b2075f95ce0') depends_on("python", type=("build", "run"), when="@:4.1.0") depends_on("python@3:", type=("build", "run"), when="@5.2.1:") depends_on('py-setuptools', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/dhtest/package.py
<filename>var/spack/repos/builtin/packages/dhtest/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 Dhtest(MakefilePackage): """dhtest linux dhcp client simulation tool. It can simulate hundreds of dhcp client from a linux machine. Linux root login is needed because the tool requires layer2 raw socket for sending and receiving dhcp packets.""" homepage = "https://github.com/saravana815/dhtest" url = "https://github.com/saravana815/dhtest/archive/v1.5.tar.gz" version('1.5', sha256='df66150429a59a3b6cea9b29e2687707d04ab10db5dfe1c893ba3e0b0531b151') def install(self, spec, prefix): mkdirp(prefix.bin) install('dhtest', prefix.bin)
player1537-forks/spack
var/spack/repos/builtin/packages/libxtrap/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 Libxtrap(AutotoolsPackage, XorgPackage): """libXTrap is the Xlib-based client API for the DEC-XTRAP extension. XTrap was a proposed standard extension for X11R5 which facilitated the capturing of server protocol and synthesizing core input events. Digital participated in the X Consortium's xtest working group which chose to evolve XTrap functionality into the XTEST & RECORD extensions for X11R6. As X11R6 was released in 1994, XTrap has now been deprecated for over 15 years, and uses of it should be quite rare.""" homepage = "https://cgit.freedesktop.org/xorg/lib/libXTrap" xorg_mirror_path = "lib/libXTrap-1.0.1.tar.gz" version('1.0.1', sha256='db748e299dcc9af68428795b898a4a96cf806f79b75786781136503e4fce5e17') depends_on('libx11') depends_on('libxt') depends_on('libxext') depends_on('trapproto') depends_on('xextproto') depends_on('pkgconfig', type='build') depends_on('util-macros', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/py-terminado/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 PyTerminado(PythonPackage): """Terminals served to term.js using Tornado websockets""" pypi = "terminado/terminado-0.8.3.tar.gz" version('0.12.1', sha256='b20fd93cc57c1678c799799d117874367cc07a3d2d55be95205b1a88fa08393f') version('0.8.3', sha256='4804a774f802306a7d9af7322193c5390f1da0abb429e082a10ef1d46e6fb2c2') version('0.8.2', sha256='de08e141f83c3a0798b050ecb097ab6259c3f0331b2f7b7750c9075ced2c20c2') version('0.8.1', sha256='55abf9ade563b8f9be1f34e4233c7b7bde726059947a593322e8a553cc4c067a') version('0.6', sha256='2c0ba1f624067dccaaead7d2247cfe029806355cef124dc2ccb53c83229f0126') depends_on('python@3.6:', when='@0.12.1:', type=('build', 'run')) depends_on('python@2.7:2.8,3.4:', when='@0.8.2:', type=('build', 'run')) depends_on('py-setuptools@40.8.0:', when='@0.12.1:', type='build') depends_on('py-setuptools', type='build') depends_on('py-flit', when='@0.8', type='build') depends_on('py-tornado@4:', type=('build', 'run')) depends_on('py-ptyprocess', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/pindel/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 Pindel(MakefilePackage): """Pindel can detect breakpoints from next-gen sequence data.""" homepage = "https://gmt.genome.wustl.edu/packages/pindel/" url = "https://github.com/genome/pindel/archive/v0.2.5.tar.gz" version('0.2.5b8', sha256='7f21fda0b751d420831724d96e60873ce332139cfd24396e81c7f1ae2f707a19') version('0.2.5b6', sha256='fe19aabdcf6334b9efe92d4509b80f0f266e621f1cc8db017b301d7e32e2eeac') version('0.2.5b5', sha256='2ebe9d959d8c3862d9103d8a3768265dcc79eab547035857dca8ab8cfe2544e4') version('0.2.5b4', sha256='0f6afd6b83f6cceb31be5dbb686c6ff518c54135274931097a8b83b3f5d0372a') version('0.2.5b1', sha256='b626e23ddfb3590174cfe38458b537e96707eedc6c2b054504f72ca141ba306c') version('0.2.5a7', sha256='0a270483dee9ef617d422eb61d3478334ee8f55e952d0a439529c2b21fcf8fb4') version('0.2.5', sha256='9908940d090eff23d940c3b6f2f6b3fc2bb1fd3b7a2d553cc81eed240a23fd9f') depends_on('htslib@1.7:') # # This Makefile2 stuff is due to the original installer, # The author wants to run make twice, the first # time generates a Makefile.local then returns "false" # User is then suppose to run make again and the # package will compile. This is an attempt to # stay as close to the original installer as possible # def edit(self, spec, prefix): copy('Makefile', 'Makefile2') myedit = FileFilter('Makefile2') myedit.filter('-include Makefile.local', '#removed include') myedit.filter('@false', '#removed autofailure') def build(self, spec, prefix): make("Makefile.local", "-f", "Makefile2", "HTSLIB=%s" % spec['htslib'].prefix) make("HTSLIB=%s" % spec['htslib'].prefix) def install(self, spec, prefix): mkdirp(prefix.bin) install('src/pindel', prefix.bin) install('src/pindel2vcf', prefix.bin) install('src/sam2pindel', prefix.bin) install('src/pindel2vcf4tcga', prefix.bin) install_tree('demo', prefix.doc)
player1537-forks/spack
var/spack/repos/builtin/packages/py-pywcs/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 PyPywcs(PythonPackage): """pywcs is a set of routines for handling the FITS World Coordinate System (WCS) standard.""" homepage = "https://github.com/spacetelescope/pywcs" url = "https://github.com/spacetelescope/pywcs/archive/1.12.1.tar.gz" version('1.12.1', sha256='efd4e0ea190e3a2521ebcde583452e126acdeac85cc8a9c78c8a96f10805b5e1') depends_on('python@2.6:', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-d2to1@0.2.3:', type='build') depends_on('py-stsci-distutils@0.3.2:', type='build') depends_on('py-numpy@1.5.1:', type=('build', 'run')) depends_on('py-pyfits@1.4:', type=('build', 'run')) depends_on('py-astropy@0.3.1:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-raven/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 PyRaven(PythonPackage): """Raven is a client for Sentry.""" homepage = "https://github.com/getsentry/raven-python" pypi = "raven/raven-6.10.0.tar.gz" version('6.10.0', sha256='3fa6de6efa2493a7c827472e984ce9b020797d0da16f1db67197bcc23c8fae54') variant('flask', default=False, description='Build flask backend') depends_on('py-setuptools', type='build') depends_on('py-flask@0.8:', when='+flask', type=('build', 'run')) depends_on('py-blinker@1.1:', when='+flask', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-rdt/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 PyRdt(PythonPackage): """RDT is a Python library used to transform data for data science libraries and preserve the transformations in order to revert them as needed.""" homepage = "https://github.com/sdv-dev/RDT" pypi = "rdt/rdt-0.6.1.tar.gz" version('0.6.1', sha256='ee2ac0d3479b254f99f35a709a24ffd5f2c899de6ea71f1ee844c6113febba71') depends_on('python@3.6:', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-numpy@1.18:1.19', type=('build', 'run'), when='^python@3.6') depends_on('py-numpy@1.20:1', type=('build', 'run'), when='^python@3.7:') depends_on('py-pandas@1.1.3:1.1.4', type=('build', 'run')) depends_on('py-scipy@1.5.4:1', type=('build', 'run')) depends_on('py-psutil@5.7:5', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/hotspot/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 Hotspot(MakefilePackage): """HotSpot is an accurate and fast thermal model suitable for use ini architectural studies.""" homepage = "http://lava.cs.virginia.edu/HotSpot/index.htm" git = "https://github.com/uvahotspot/HotSpot.git" version('6.0', commit='<PASSWORD>') def install(self, spec, prefix): mkdir(prefix.bin) install('hotspot', prefix.bin) install('hotfloorplan', prefix.bin)
player1537-forks/spack
var/spack/repos/builtin/packages/turbomole/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 import subprocess from spack import * class Turbomole(Package): """TURBOMOLE: Program Package for ab initio Electronic Structure Calculations. Note: Turbomole requires purchase of a license to download. Go to the Turbomole home page, http://www.turbomole-gmbh.com, for details. Spack will search the current directory for this file. It is probably best to add this file to a Spack mirror so that it can be found from anywhere. For information on setting up a Spack mirror see https://spack.readthedocs.io/en/latest/mirrors.html""" homepage = "http://www.turbomole-gmbh.com/" manual_download = True version('7.0.2', '92b97e1e52e8dcf02a4d9ac0147c09d6', url="file://%s/turbolinux702.tar.gz" % os.getcwd()) variant('mpi', default=True, description='Set up MPI environment') variant('smp', default=False, description='Set up SMP environment') # Turbomole's install is odd. There are three variants # - serial # - parallel, MPI # - parallel, SMP # # Only one of these can be active at a time. MPI and SMP are set as # variants so there could be up to 3 installs per version. Switching # between them would be accomplished with `module swap` commands. def do_fetch(self, mirror_only=True): if '+mpi' in self.spec and '+smp' in self.spec: raise InstallError('Can not have both SMP and MPI enabled in the ' 'same build.') super(Turbomole, self).do_fetch(mirror_only) def get_tm_arch(self): if 'TURBOMOLE' in os.getcwd(): tm_sysname = Executable('./scripts/sysname') tm_arch = tm_sysname(output=str) return tm_arch.rstrip('\n') else: return def install(self, spec, prefix): calculate_version = 'calculate_2.4_linux64' molecontrol_version = 'MoleControl_2.5' tm_arch = self.get_tm_arch() tar = which('tar') dst = join_path(prefix, 'TURBOMOLE') tar('-x', '-z', '-f', 'thermocalc.tar.gz') with working_dir('thermocalc'): subprocess.call('./install<<<y', shell=True) install_tree('basen', join_path(dst, 'basen')) install_tree('cabasen', join_path(dst, 'cabasen')) install_tree(calculate_version, join_path(dst, calculate_version)) install_tree('cbasen', join_path(dst, 'cbasen')) install_tree('DOC', join_path(dst, 'DOC')) install_tree('jbasen', join_path(dst, 'jbasen')) install_tree('jkbasen', join_path(dst, 'jkbasen')) install_tree(molecontrol_version, join_path(dst, molecontrol_version)) install_tree('parameter', join_path(dst, 'parameter')) install_tree('perlmodules', join_path(dst, 'perlmodules')) install_tree('scripts', join_path(dst, 'scripts')) install_tree('smprun_scripts', join_path(dst, 'smprun_scripts')) install_tree('structures', join_path(dst, 'structures')) install_tree('thermocalc', join_path(dst, 'thermocalc')) install_tree('TURBOTEST', join_path(dst, 'TURBOTEST')) install_tree('xbasen', join_path(dst, 'xbasen')) install('Config_turbo_env', dst) install('Config_turbo_env.tcsh', dst) install('README', dst) install('README_LICENSES', dst) install('TURBOMOLE_702_LinuxPC', dst) if '+mpi' in spec: install_tree('bin/%s_mpi' % tm_arch, join_path(dst, 'bin', '%s_mpi' % tm_arch)) install_tree('libso/%s_mpi' % tm_arch, join_path(dst, 'libso', '%s_mpi' % tm_arch)) install_tree('mpirun_scripts/%s_mpi' % tm_arch, join_path(dst, 'mpirun_scripts', '%s_mpi' % tm_arch)) elif '+smp' in spec: install_tree('bin/%s_smp' % tm_arch, join_path(dst, 'bin', '%s_smp' % tm_arch)) install_tree('libso/%s_smp' % tm_arch, join_path(dst, 'libso', '%s_smp' % tm_arch)) install_tree('mpirun_scripts/%s_smp' % tm_arch, join_path(dst, 'mpirun_scripts', '%s_smp' % tm_arch)) else: install_tree('bin/%s' % tm_arch, join_path(dst, 'bin', tm_arch)) if '+mpi' in spec or '+smp' in spec: install('mpirun_scripts/ccsdf12', join_path(dst, 'mpirun_scripts')) install('mpirun_scripts/dscf', join_path(dst, 'mpirun_scripts')) install('mpirun_scripts/grad', join_path(dst, 'mpirun_scripts')) install('mpirun_scripts/mpgrad', join_path(dst, 'mpirun_scripts')) install('mpirun_scripts/pnoccsd', join_path(dst, 'mpirun_scripts')) install('mpirun_scripts/rdgrad', join_path(dst, 'mpirun_scripts')) install('mpirun_scripts/ricc2', join_path(dst, 'mpirun_scripts')) install('mpirun_scripts/ridft', join_path(dst, 'mpirun_scripts')) def setup_run_environment(self, env): molecontrol_version = 'MoleControl_2.5' tm_arch = self.get_tm_arch() env.set('TURBODIR', self.prefix.TURBOMOLE) env.set('MOLE_CONTROL', join_path(self.prefix, 'TURBOMOLE', molecontrol_version)) env.prepend_path('PATH', self.prefix.TURBOMOLE.thermocalc) env.prepend_path('PATH', self.prefix.TURBOMOLE.scripts) if '+mpi' in self.spec: env.set('PARA_ARCH', 'MPI') env.prepend_path('PATH', join_path( self.prefix, 'TURBOMOLE', 'bin', '%s_mpi' % tm_arch)) elif '+smp' in self.spec: env.set('PARA_ARCH', 'SMP') env.prepend_path('PATH', join_path( self.prefix, 'TURBOMOLE', 'bin', '%s_smp' % tm_arch)) else: env.prepend_path('PATH', join_path( self.prefix, 'TURBOMOLE', 'bin', tm_arch))
player1537-forks/spack
var/spack/repos/builtin/packages/libiscsi/package.py
<filename>var/spack/repos/builtin/packages/libiscsi/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 Libiscsi(AutotoolsPackage): """Libiscsi is a client-side library to implement the iSCSI protocol that can be used to access the resources of an iSCSI target.""" homepage = "https://github.com/sahlberg/libiscsi" url = "https://github.com/sahlberg/libiscsi/archive/1.19.0.tar.gz" version('1.19.0', sha256='c7848ac722c8361d5064654bc6e926c2be61ef11dd3875020a63931836d806df') version('1.18.0', sha256='464d104e12533dc11f0dd7662cbc2f01c132f94aa4f5bd519e3413ef485830e8') version('1.17.0', sha256='80a7f75bfaffc8bec9920ba7af3f1d14cd862c35c3c5f2c9617b45b975232112') version('1.16.0', sha256='35c7be63a8c3a7cee7b697901b6d2dd464e098e1881671eb67462983053b3c7b') version('1.15.0', sha256='489e625e58c1e6da2fa3536f9c4b12290f2d3fb4ce14edc0583b8ba500605c34') 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): autoreconf('--install', '--force')
player1537-forks/spack
var/spack/repos/builtin/packages/iso-codes/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 IsoCodes(AutotoolsPackage): """ISO-codes provides lists of various ISO standards""" homepage = "https://salsa.debian.org/iso-codes-team/iso-codes" url = "https://deb.debian.org/debian/pool/main/i/iso-codes/iso-codes_4.3.orig.tar.xz" version('4.3', sha256='643eb83b2d714e8650ed7112706968d057bf5b101ba71c8ef219e20f1737b141') depends_on('m4', type='build') depends_on('autoconf', type='build') depends_on('automake', type='build') depends_on('libtool', type='build') depends_on('gettext', type='build') depends_on('python@3:', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/py-machotools/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 PyMachotools(PythonPackage): """Python package for editing Mach-O headers using macholib""" pypi = "machotools/machotools-0.2.0.tar.gz" version('0.2.0', sha256='e3950fa263169087d44a3d0521a3267d5128efd1b85252670c7171955939ab58') depends_on('py-setuptools', type='build') depends_on('py-macholib', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin.mock/packages/a/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 A(AutotoolsPackage): """Simple package with one optional dependency""" homepage = "http://www.example.com" url = "http://www.example.com/a-1.0.tar.gz" version('1.0', '<KEY>') version('2.0', '<KEY>') variant( 'foo', description='', values=any_combination_of('bar', 'baz', 'fee').with_default('bar'), ) variant( 'foobar', values=('bar', 'baz', 'fee'), default='bar', description='', multi=False ) variant('lorem_ipsum', description='', default=False) variant('bvv', default=True, description='The good old BV variant') depends_on('b', when='foobar=bar') depends_on('test-dependency', type='test') parallel = False def with_or_without_fee(self, activated): if not activated: return '--no-fee' return '--fee-all-the-time' def autoreconf(self, spec, prefix): pass def configure(self, spec, prefix): pass def build(self, spec, prefix): pass def install(self, spec, prefix): # sanity_check_prefix requires something in the install directory # Test requires overriding the one provided by `AutotoolsPackage` mkdirp(prefix.bin)
player1537-forks/spack
var/spack/repos/builtin/packages/scrot/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 Scrot(AutotoolsPackage): """scrot (SCReenshOT) is a simple command line screen capture utility that uses imlib2 to grab and save images. Multiple image formats are supported through imlib2's dynamic saver modules.""" homepage = "https://github.com/resurrecting-open-source-projects/scrot" url = "https://github.com/resurrecting-open-source-projects/scrot/releases/download/1.5/scrot-1.5.tar.gz" version('1.6', sha256='42f64d38f04ec530c8b4ebdae04cce8b6893b2f8d30627391d390edcba917090') version('1.5', sha256='42fcf1c97940f4b4e34ca69990a0fc9b98991357bd6a4b67f30ebe0ccc10f093') depends_on('giblib', when='@:1.5') depends_on('imlib2') depends_on('libtool') depends_on('libxcomposite') depends_on('libxfixes')
player1537-forks/spack
var/spack/repos/builtin/packages/librom/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 Librom(AutotoolsPackage): """libROM: library for computing large-scale reduced order models""" homepage = "https://github.com/LLNL/libROM" git = "https://github.com/LLNL/libROM.git" version('develop', branch='master') depends_on('lapack') depends_on('mpi') depends_on('zlib') depends_on('libszip') depends_on('hdf5') depends_on('perl') depends_on('graphviz') depends_on('doxygen') depends_on('boost') def configure_args(self): spec = self.spec args = ['--with-lapack={0}'.format(spec['lapack'].prefix), '--with-lapack-libs={0}'.format(spec['lapack'].libs.ld_flags), '--with-zlib={0}'.format(spec['zlib'].prefix), '--with-szlib={0}'.format(spec['libszip'].prefix), '--with-hdf5={0}'.format(spec['hdf5'].prefix), '--with-MPICC={0}'.format(spec['mpi'].mpicc), '--with-mpi-include={0}'.format(spec['mpi'].prefix.include), '--with-mpi-libs={0}'.format(spec['mpi'].libs.ld_flags), '--with-perl={0}'.format(spec['perl'].prefix), '--with-doxygen={0}'.format(spec['doxygen'].prefix)] return args # TODO(<EMAIL>): Submit PR upstream that implements # install phase in autotools def install(self, spec, prefix): mkdirp(prefix.lib) install('libROM.a', join_path(prefix.lib, 'libROM.a')) mkdirp(prefix.include) install('*.h', prefix.include) mkdirp(prefix.share) install('libROM_Design_and_Theory.pdf', join_path(prefix.share, 'libROM_Design_and_Theory.pdf')) install_tree('docs', prefix.share.docs)
player1537-forks/spack
var/spack/repos/builtin/packages/ibm-databroker/package.py
<filename>var/spack/repos/builtin/packages/ibm-databroker/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 IbmDatabroker(CMakePackage, PythonPackage): """The Data Broker (DBR) is a distributed, in-memory container of key-value stores enabling applications in a workflow to exchange data through one or more shared namespaces. Thanks to a small set of primitives, applications in a workflow deployed in a (possibly) shared nothing distributed cluster, can easily share and exchange data and messages with applications.""" homepage = "https://github.com/IBM/data-broker" git = "https://github.com/IBM/data-broker" url = 'https://github.com/IBM/data-broker/archive/0.6.1.tar.gz' # IBM dev team should take over maintainers = ['bhatiaharsh'] version('master', branch='master') version('0.7.0', sha256='5460fa1c5c05ad25c759b2ee4cecee92980d4dde5bc7c5f6da9242806cf22bb8') version('0.6.1', sha256='2c7d6c6a269d4ae97aad4d770533e742f367da84758130c283733f25df83e535') version('0.6.0', sha256='5856209d965c923548ebb69119344f1fc596d4c0631121b230448cc91bac4290') variant('python', default=False, description='Build Python bindings') depends_on('cmake@2.8:', type='build') depends_on('redis@5.0.2:', type='run') depends_on('libevent@2.1.8', type=('build', 'run')) extends('python', when='+python') depends_on('python@3.7:', when='+python') depends_on('py-setuptools', when='+python') patch('fixes_in_v0.6.1.patch', when='@0.6.1') patch('fixes_in_v0.7.0.patch', when='@0.7.0') def cmake_args(self): args = [] args.append('-DDEFAULT_BE=redis') if '+python' in self.spec: args.append('-DPYDBR=1') return args
player1537-forks/spack
var/spack/repos/builtin/packages/r-matrixgenerics/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 RMatrixgenerics(RPackage): """S4 Generic Summary Statistic Functions that Operate on Matrix-Like Objects. S4 generic functions modeled after the 'matrixStats' API for alternative matrix implementations. Packages with alternative matrix implementation can depend on this package and implement the generic functions that are defined here for a useful set of row and column summary statistics. Other package developers can import this package and handle a different matrix implementations without worrying about incompatibilities.""" bioc = "MatrixGenerics" version('1.6.0', commit='<PASSWORD>') version('1.2.1', commit='<PASSWORD>') depends_on('r-matrixstats@0.57.1:', type=('build', 'run')) depends_on('r-matrixstats@0.60.1:', type=('build', 'run'), when='@1.6.0:')
player1537-forks/spack
var/spack/repos/builtin/packages/perl-pdf-api2/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 PerlPdfApi2(PerlPackage): """Facilitates the creation and modification of PDF files""" homepage = "https://metacpan.org/pod/PDF::API2" url = "http://search.cpan.org/CPAN/authors/id/S/SS/SSIMMS/PDF-API2-2.033.tar.gz" version('2.033', sha256='9c0866ec1a3053f73afaca5f5cdbe6925903b4ce606f4bf4ac317731a69d27a0') depends_on('perl-test-exception', type=('build', 'run')) depends_on('perl-test-memory-cycle', type=('build', 'run')) depends_on('perl-font-ttf', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/cppcoro/package.py
# Copyright 2013-2021 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 Cppcoro(CMakePackage): """A library of C++ coroutine abstractions.""" homepage = "https://github.com/andreasbuhr/cppcoro" git = "https://github.com/andreasbuhr/cppcoro.git" maintainers = ['pbrady'] version('develop', branch="master") version('2021-01-13', commit='<PASSWORD>') depends_on('cmake@3.12:', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/r-terra/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 RTerra(RPackage): """Spatial Data Analysis. Methods for spatial data analysis with raster and vector data. Raster methods allow for low-level data manipulation as well as high-level global, local, zonal, and focal computation. The predict and interpolate methods facilitate the use of regression type (interpolation, machine learning) models for spatial prediction, including with satellite remote sensing data. Processing of very large files is supported. See the manual and tutorials on <https://rspatial.org/terra/> to get started. 'terra' is very similar to the 'raster' package; but 'terra' can do more, is easier to use, and it is faster.""" cran = "terra" version('1.5-17', sha256='e7ac57d1712d280616a4b5a85cd915b2b3e24fe08ee044b740588d884e6be6e7') version('1.5-12', sha256='865cc14ee8c3239037c08170df4011eed27cf638ac1d05f0b7cd704abf97cc19') version('1.4-22', sha256='b8eccfa36764577248d7b390e24af6db65fb8824c07f9b782bd6b83c4d2b3976') depends_on('r@3.5.0:', type=('build', 'run')) depends_on('r-rcpp', type=('build', 'run')) depends_on('gdal@2.2.3:') depends_on('geos@3.4.0:') depends_on('proj@4.9.3:') depends_on('sqlite')
player1537-forks/spack
lib/spack/spack/modules/__init__.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) """This package contains code for creating environment modules, which can include TCL non-hierarchical modules, LUA hierarchical modules, and others. """ from __future__ import absolute_import from .common import disable_modules from .lmod import LmodModulefileWriter from .tcl import TclModulefileWriter __all__ = [ 'TclModulefileWriter', 'LmodModulefileWriter', 'disable_modules' ] module_types = { 'tcl': TclModulefileWriter, 'lmod': LmodModulefileWriter }
player1537-forks/spack
var/spack/repos/builtin/packages/r-somaticsignatures/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 RSomaticsignatures(RPackage): """Somatic Signatures. The SomaticSignatures package identifies mutational signatures of single nucleotide variants (SNVs). It provides a infrastructure related to the methodology described in Nik-Zainal (2012, Cell), with flexibility in the matrix decomposition algorithms.""" bioc = "SomaticSignatures" version('2.30.0', commit='<PASSWORD>') version('2.26.0', commit='9d4bed6e118ac76755ffb7abd058b09bac58a9d7') version('2.20.0', commit='<PASSWORD>') version('2.18.0', commit='facccd67eee5202fcbe6ad32e667546546e7ccff') version('2.16.0', commit='<PASSWORD>') version('2.14.0', commit='b12d24f86e96a7c6a17cbbad21ca14fa3aa7c60f') version('2.12.1', commit='<PASSWORD>') depends_on('r@3.1.0:', type=('build', 'run')) depends_on('r-variantannotation', type=('build', 'run')) depends_on('r-genomicranges', type=('build', 'run')) depends_on('r-nmf', type=('build', 'run')) depends_on('r-s4vectors', type=('build', 'run')) depends_on('r-iranges', type=('build', 'run')) depends_on('r-genomeinfodb', type=('build', 'run')) depends_on('r-biostrings', type=('build', 'run')) depends_on('r-ggplot2', type=('build', 'run')) depends_on('r-ggbio', type=('build', 'run')) depends_on('r-reshape2', type=('build', 'run')) depends_on('r-nmf', type=('build', 'run'), when='@2.26.0:') depends_on('r-pcamethods', type=('build', 'run')) depends_on('r-biobase', type=('build', 'run')) depends_on('r-proxy', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/mcl/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 Mcl(AutotoolsPackage): """The MCL algorithm is short for the Markov Cluster Algorithm, a fast and scalable unsupervised cluster algorithm for graphs (also known as networks) based on simulation of (stochastic) flow in graphs.""" homepage = "https://www.micans.org/mcl/index.html" url = "https://www.micans.org/mcl/src/mcl-14-137.tar.gz" version('14-137', sha256='b5786897a8a8ca119eb355a5630806a4da72ea84243dba85b19a86f14757b497') @when('%gcc@10:') def patch(self): filter_file('^dim', 'extern dim', 'src/impala/iface.h') filter_file('^double', 'extern double', 'src/impala/iface.h')
player1537-forks/spack
var/spack/repos/builtin/packages/py-poetry/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 PyPoetry(PythonPackage): """Python dependency management and packaging made easy.""" homepage = "https://python-poetry.org/" pypi = "poetry/poetry-1.1.12.tar.gz" version('1.1.12', sha256='5c66e2357fe37b552462a88b7d31bfa2ed8e84172208becd666933c776252567') depends_on('python@2.7,3.5:3', type=('build', 'run')) depends_on('py-poetry-core@1.0.7:1.0', type=('build', 'run')) depends_on('py-cleo@0.8.1:0.8', type=('build', 'run')) depends_on('py-clikit@0.6.2:0.6', type=('build', 'run')) depends_on('py-crashtest@0.3.0:0.3', when='^python@3.6:3', type=('build', 'run')) depends_on('py-requests@2.18:2', type=('build', 'run')) depends_on('py-cachy@0.3.0:0.3', type=('build', 'run')) depends_on('py-requests-toolbelt@0.9.1:0.9', type=('build', 'run')) depends_on('py-cachecontrol@0.12.4:0.12+filecache', when='^python@:3.5', type=('build', 'run')) depends_on('py-cachecontrol@0.12.9:0.12+filecache', when='^python@3.6:3', type=('build', 'run')) depends_on('py-pkginfo@1.4:1', type=('build', 'run')) depends_on('py-html5lib@1.0:1', type=('build', 'run')) depends_on('py-shellingham@1.1:1', type=('build', 'run')) depends_on('py-tomlkit@0.7:0', type=('build', 'run')) depends_on('py-pexpect@4.7:4', type=('build', 'run')) depends_on('py-packaging@20.4:20', type=('build', 'run')) depends_on('py-virtualenv@20.0.26:20', type=('build', 'run')) depends_on('py-typing@3.6:3', when='^python@2.7', type=('build', 'run')) depends_on('py-pathlib2@2.3:2', when='^python@2.7', type=('build', 'run')) depends_on('py-futures@3.3:3', when='^python@2.7', type=('build', 'run')) depends_on('py-glob2@0.6.0:0.6', when='^python@2.7', type=('build', 'run')) depends_on('py-functools32@3.2.3:3', when='^python@2.7', type=('build', 'run')) depends_on('py-keyring@18.0.1:18', when='^python@2.7', type=('build', 'run')) depends_on('py-keyring@20.0.1:20', when='^python@3.5', type=('build', 'run')) depends_on('py-keyring@21.2.0:21', when='^python@3.6:3', type=('build', 'run')) depends_on('py-subprocess32@3.5:3', when='^python@2.7', type=('build', 'run')) depends_on('py-importlib-metadata@1.6:1', when='^python@:3.7', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-build/package.py
<filename>var/spack/repos/builtin/packages/py-build/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 PyBuild(PythonPackage): """A simple, correct PEP517 package builder.""" homepage = "https://github.com/pypa/build" pypi = "build/build-0.7.0.tar.gz" version('0.7.0', sha256='1aaadcd69338252ade4f7ec1265e1a19184bf916d84c9b7df095f423948cb89f') variant('virtualenv', default=False, description='Install optional virtualenv dependency') depends_on('python@3.6:', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-packaging@19:', type=('build', 'run')) depends_on('py-pep517@0.9.1:', type=('build', 'run')) depends_on('py-tomli@1:', type=('build', 'run')) depends_on('py-colorama', when='platform=windows', type=('build', 'run')) depends_on('py-importlib-metadata@0.22:', when='^python@:3.7', type=('build', 'run')) depends_on('py-virtualenv@20.0.35:', when='+virtualenv', type=('build', 'run')) # https://github.com/pypa/build/issues/266 # https://github.com/pypa/build/issues/406 patch('isolation.patch', when='@0.7.0')
player1537-forks/spack
var/spack/repos/builtin/packages/r-memuse/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 RMemuse(RPackage): """Memory Estimation Utilities. How much ram do you need to store a 100,000 by 100,000 matrix? How much ram is your current R session using? How much ram do you even have? Learn the scintillating answer to these and many more such questions with the 'memuse' package.""" cran = "memuse" maintainers = ['dorton21'] version('4.2-1', sha256='f5e9dbaad4efbbfe219a93f446e318a00cad5b294bfc60ca2146eca894b47cf3') version('4.1-0', sha256='58d6d1ca5d6bd481f4ed299eff6a9d5660eb0f8db1abe54c49e144093cba72ad') depends_on('r@3.0.0:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-pheatmap/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 RPheatmap(RPackage): """Pretty Heatmaps. Implementation of heatmaps that offers more control over dimensions and appearance.""" cran = "pheatmap" version('1.0.12', sha256='579d96ee0417203b85417780eca921969cda3acc210c859bf9dfeff11539b0c1') depends_on('r@2.0:', type=('build', 'run')) depends_on('r-rcolorbrewer', type=('build', 'run')) depends_on('r-scales', type=('build', 'run')) depends_on('r-gtable', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/gengeo/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 Gengeo(AutotoolsPackage): """GenGeo is a library of tools for creating complex particle geometries for use in ESyS-Particle simulations. GenGeo is a standalone application with a Python API that creates geometry files suitable for importing into ESyS-Particle simulations. The functionality of GenGeo far exceeds the in-simulation geometry creation utilities provided by ESyS-Particle itself.""" homepage = "https://launchpad.net/esys-particle/gengeo" url = "https://launchpad.net/esys-particle/trunk/3.0-alpha/+download/gengeo-163.tar.gz" maintainers = ['dorton21'] version('163', sha256='9c896d430d8f315a45379d2b82e7d374f36259af66a745bfdee4c022a080d34d') extends('python') depends_on('autoconf', type='build') depends_on('automake', type='build') depends_on('libtool', type='build') depends_on('m4', type='build') depends_on('boost+python') depends_on('openmpi') def autoreconf(self, spec, prefix): autogen = Executable('./autogen.sh') autogen() def configure_args(self): args = [ '--verbose', '--with-boost=' + self.spec['boost'].prefix, 'CCFLAGS=-fpermissive', 'CXXFLAGS=-fpermissive', ] return args
player1537-forks/spack
var/spack/repos/builtin/packages/libnbc/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 Libnbc(AutotoolsPackage): """LibNBC is a prototypic implementation of a nonblocking interface for MPI collective operations. Based on ANSI C and MPI-1, it supports all MPI-1 collective operations in a nonblocking manner. LibNBC is distributed under the BSD license. """ homepage = "http://unixer.de/research/nbcoll/libnbc/" url = "http://unixer.de/research/nbcoll/libnbc/libNBC-1.1.1.tar.gz" version('1.1.1', sha256='63aa5f75f84c191da0688cb551ebd0e9e46928edfba350b2a534eb0c704dd9c3') depends_on("mpi")
player1537-forks/spack
var/spack/repos/builtin/packages/transabyss/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 Transabyss(Package): """De novo assembly of RNAseq data using ABySS""" homepage = "https://www.bcgsc.ca/platform/bioinfo/software/trans-abyss" url = "https://www.bcgsc.ca/platform/bioinfo/software/trans-abyss/releases/1.5.5/transabyss-1.5.5.zip" version('1.5.5', sha256='7804961c13296c587a1b22180dd3f02091a4494cbbd04fc33c2060599caadb0b') depends_on('abyss@1.5.2') depends_on('python@2.7.6:', type=('build', 'run')) depends_on('py-python-igraph@0.7.0:', type=('build', 'run')) depends_on('blat') def install(self, spec, prefix): install('transabyss', prefix) install('transabyss-merge', prefix) install_tree('bin', prefix.bin) install_tree('utilities', prefix.utilities)
player1537-forks/spack
lib/spack/spack/test/container/docker.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 pytest import spack.container.writers as writers def test_manifest(minimal_configuration): writer = writers.create(minimal_configuration) manifest_str = writer.manifest for line in manifest_str.split('\n'): assert 'echo' in line def test_build_and_run_images(minimal_configuration): writer = writers.create(minimal_configuration) # Test the output of run property run = writer.run assert run.image == 'ubuntu:18.04' # Test the output of the build property build = writer.build assert build.image == 'spack/ubuntu-bionic:latest' def test_packages(minimal_configuration): # In this minimal configuration we don't have packages writer = writers.create(minimal_configuration) assert writer.os_packages_build is None assert writer.os_packages_final is None # If we add them a list should be returned pkgs = ['libgomp1'] minimal_configuration['spack']['container']['os_packages'] = { 'final': pkgs } writer = writers.create(minimal_configuration) p = writer.os_packages_final assert p.update assert p.install assert p.clean assert p.list == pkgs def test_ensure_render_works(minimal_configuration, default_config): # Here we just want to ensure that nothing is raised writer = writers.create(minimal_configuration) writer() def test_strip_is_set_from_config(minimal_configuration): writer = writers.create(minimal_configuration) assert writer.strip is True minimal_configuration['spack']['container']['strip'] = False writer = writers.create(minimal_configuration) assert writer.strip is False def test_extra_instructions_is_set_from_config(minimal_configuration): writer = writers.create(minimal_configuration) assert writer.extra_instructions == (None, None) test_line = 'RUN echo Hello world!' e = minimal_configuration['spack']['container'] e['extra_instructions'] = {} e['extra_instructions']['build'] = test_line writer = writers.create(minimal_configuration) assert writer.extra_instructions == (test_line, None) e['extra_instructions']['final'] = test_line del e['extra_instructions']['build'] writer = writers.create(minimal_configuration) assert writer.extra_instructions == (None, test_line) def test_custom_base_images(minimal_configuration): """Test setting custom base images from configuration file""" minimal_configuration['spack']['container']['images'] = { 'build': 'custom-build:latest', 'final': 'custom-final:latest' } writer = writers.create(minimal_configuration) assert writer.bootstrap.image is None assert writer.build.image == 'custom-build:latest' assert writer.run.image == 'custom-final:latest' @pytest.mark.parametrize('images_cfg,expected', [ ({'os': 'amazonlinux:2', 'spack': 'develop'}, { 'bootstrap_image': 'amazonlinux:2', 'build_image': 'bootstrap', 'final_image': 'amazonlinux:2' }) ]) def test_base_images_with_bootstrap( minimal_configuration, images_cfg, expected ): """Check that base images are computed correctly when a bootstrap phase is present """ minimal_configuration['spack']['container']['images'] = images_cfg writer = writers.create(minimal_configuration) for property_name, value in expected.items(): assert getattr(writer, property_name) == value def test_error_message_invalid_os(minimal_configuration): minimal_configuration['spack']['container']['images']['os'] = 'invalid:1' with pytest.raises(ValueError, match='invalid operating system'): writers.create(minimal_configuration)
player1537-forks/spack
var/spack/repos/builtin/packages/dataspaces/package.py
<filename>var/spack/repos/builtin/packages/dataspaces/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 six from spack import * def is_string(x): """validate a string""" try: return isinstance(x, six.string_types) except ValueError: return False class Dataspaces(AutotoolsPackage): """an extreme scale data management framework.""" homepage = "http://www.dataspaces.org" url = "https://dataspaces.rdi2.rutgers.edu/downloads/dataspaces-1.6.2.tar.gz" version('1.8.0', sha256='7f204bb3c03c2990f5a2d76a29185466b584793c63ada03e5e694627e6060605') version('1.6.2', sha256='3c43d551c1e8198a4ab269c83928e1dc6f8054e6d41ceaee45155d91a48cf9bf') variant('dimes', default=False, description='enabled DIMES transport mode') variant('cray-drc', default=False, description='using Cray Dynamic Credentials library') variant('gni-cookie', default='0x5420000', description='Cray UGNI communication token', values=is_string) variant('ptag', default='250', description='Cray UGNI protection tag', values=is_string) variant('mpi', default=True, description='Use MPI for collective communication') depends_on('m4', type='build') depends_on('automake', type='build') depends_on('autoconf', type='build') depends_on('libtool', type='build') depends_on('mpi', when='+mpi') def autoreconf(self, spec, prefix): bash = which('bash') bash('./autogen.sh') def setup_build_environment(self, env): if self.spec.satisfies('+mpi'): env.set('CC', self.spec['mpi'].mpicc) env.set('FC', self.spec['mpi'].mpifc) env.set('CFLAGS', self.compiler.cc_pic_flag) if '%gcc@10:' in self.spec: env.set('FCFLAGS', '-fallow-argument-mismatch') def configure_args(self): args = [] cookie = self.spec.variants['gni-cookie'].value ptag = self.spec.variants['ptag'].value if self.spec.satisfies('+dimes'): args.append('--enable-dimes') if self.spec.satisfies('+cray-drc'): args.append('--enable-drc') else: args.append('--with-gni-cookie=%s' % cookie) args.append('--with-gni-ptag=%s' % ptag) return args
player1537-forks/spack
lib/spack/spack/util/py2.py
<filename>lib/spack/spack/util/py2.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 base64 from six import PY3, binary_type, text_type def b32encode(digest): # type: (binary_type) -> text_type b32 = base64.b32encode(digest) if PY3: return b32.decode() return b32
player1537-forks/spack
var/spack/repos/builtin/packages/opus/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 Opus(AutotoolsPackage): """Opus is a totally open, royalty-free, highly versatile audio codec.""" homepage = "https://opus-codec.org/" url = "http://downloads.xiph.org/releases/opus/opus-1.1.4.tar.gz" version('1.3.1', sha256='65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d') version('1.1.4', sha256='9122b6b380081dd2665189f97bfd777f04f92dc3ab6698eea1dbb27ad59d8692') version('1.1.3', sha256='58b6fe802e7e30182e95d0cde890c0ace40b6f125cffc50635f0ad2eef69b633') version('1.1.2', sha256='0e290078e31211baa7b5886bcc8ab6bc048b9fc83882532da4a1a45e58e907fd') version('1.1.1', sha256='9b84ff56bd7720d5554103c557664efac2b8b18acc4bbcc234cb881ab9a3371e') version('1.1', sha256='b9727015a58affcf3db527322bf8c4d2fcf39f5f6b8f15dbceca20206cbe1d95') version('1.0.3', sha256='191a089c92dbc403de6980463dd3604b65beb12d283c607e246c8076363cb49c') version('1.0.2', sha256='da615edbee5d019c1833071d69a4782c19f178cf9ca1401375036ecef25cd78a') version('1.0.1', sha256='80fa5c3caf2ac0fd68f8a22cce1564fc46b368c773a17554887d0066fe1841ef') version('1.0.0', sha256='9250fcc74472d45c1e14745542ec9c8d09982538aefed56962495614be3e0d2d') version('0.9.14', sha256='b1cad6846a8f819a141009fe3f8f10c946e8eff7e9c2339cd517bb136cc59eae') version('0.9.10', sha256='4e379a98ba95bbbfe9087ef10fdd05c8ac9060b6d695f587ea82a7b43a0df4fe') version('0.9.9', sha256='2f62359f09151fa3b242040dc9b4c5b6bda15557c5daea59c8420f1a2ff328b7') version('0.9.8', sha256='4aa30d2e0652ffb4a7a22cc8a29c4ce78267626f560a2d9213b1d2d4e618cf36') version('0.9.7', sha256='1b69772c31c5cbaa43d1dfa5b1c495fc29712e8e0ff69d6f8ad46459e5c6715f') version('0.9.6', sha256='3bfaeb25f4b4a625a0bc994d6fc6f6776a05193f60099e0a99f7530c6b256309') version('0.9.5', sha256='53801066fa97329768e7b871fd1495740269ec46802e1c9051aa7e78c6edee5b') version('0.9.3', sha256='d916e34c18a396eb7dffc47af754f441af52a290b761e20db9aedb65928c699e') version('0.9.2', sha256='6e85c1b57e1d7b7dfe2928bf92586b96b73a9067e054ede45bd8e6d24bd30582') version('0.9.1', sha256='206221afc47b87496588013bd4523e1e9f556336c0813f4372773fc536dd4293') version('0.9.0', sha256='b2f75c4ac5ab837845eb028413fae2a28754bfb0a6d76416e2af1441ef447649') depends_on('libvorbis')
player1537-forks/spack
var/spack/repos/builtin/packages/py-pyrect/package.py
<filename>var/spack/repos/builtin/packages/py-pyrect/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 PyPyrect(PythonPackage): """PyRect is a simple module with a Rect class for Pygame-like rectangular areas.""" homepage = "https://github.com/asweigart/pyrect" pypi = "PyRect/PyRect-0.1.4.tar.gz" version('0.1.4', sha256='3b2fa7353ce32a11aa6b0a15495968d2a763423c8947ae248b92c037def4e202') depends_on('py-setuptools', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/py-pyfits/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 PyPyfits(PythonPackage): """The PyFITS module is a Python library providing access to FITS(Flexible Image Transport System) files.""" homepage = "https://github.com/spacetelescope/pyfits" url = "https://github.com/spacetelescope/PyFITS/archive/3.5.tar.gz" version('3.5', sha256='fd32596ee09170a70ddc87d0dfc5503d860ef6b68abcff486d7aa6993dff6162') depends_on('py-setuptools', type='build') depends_on('py-numpy', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-azureml-pipeline-steps/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 PyAzuremlPipelineSteps(PythonPackage): """Represents a unit of computation in azureml-pipeline.""" homepage = "https://docs.microsoft.com/en-us/azure/machine-learning/service/" url = "https://pypi.io/packages/py3/a/azureml_pipeline_steps/azureml_pipeline_steps-1.11.0-py3-none-any.whl" version('1.23.0', sha256='72154c2f75624a1e7500b8e2239ae1354eeedf66d2cabb11e213b7eb80aedddb', expand=False) version('1.11.0', sha256='674317d9c74ec4cb05e443f50de1732e14dc4519cbe2743a44f8db0bc5e71214', expand=False) version('1.8.0', sha256='3310674207ed457a26fb978e7168e400306c695f7f854f354dee9d5c7c81304c', expand=False) depends_on('python@3:', type=('build', 'run')) depends_on('py-azureml-train-core@1.23.0:1.23', when='@1.23.0', type=('build', 'run')) depends_on('py-azureml-train-automl-client@1.23.0:1.23', when='@1.23.0', type=('build', 'run')) depends_on('py-azureml-pipeline-core@1.23.0:1.23', when='@1.23.0', type=('build', 'run')) depends_on('py-azureml-train-core@1.11.0:1.11', when='@1.11.0', type=('build', 'run')) depends_on('py-azureml-train-automl-client@1.11.0:1.11', when='@1.11.0', type=('build', 'run')) depends_on('py-azureml-pipeline-core@1.11.0:1.11', when='@1.11.0', type=('build', 'run')) depends_on('py-azureml-train-core@1.8.0:1.8', when='@1.8.0', type=('build', 'run')) depends_on('py-azureml-train-automl-client@1.8.0:1.8', when='@1.8.0', type=('build', 'run')) depends_on('py-azureml-pipeline-core@1.8.0:1.8', when='@1.8.0', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin.mock/packages/multi-provider-mpi/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 MultiProviderMpi(Package): """This is a fake MPI package used to test packages providing multiple virtuals at the same version.""" homepage = "http://www.spack-fake-mpi.org" url = "http://www.spack-fake-mpi.org/downloads/multi-mpi-1.0.tar.gz" version('2.0.0', '0123456789abcdef0123456789abcdef') version('1.10.3', '0123456789abcdef0123456789abcdef') version('1.10.2', '0123456789abcdef0123456789abcdef') version('1.10.1', '0123456789abcdef0123456789abcdef') version('1.10.0', '0123456789abcdef0123456789abcdef') version('1.8.8', '0123456789abcdef0123456789abcdef') version('1.6.5', '0123456789abcdef0123456789abcdef') provides('mpi@3.1', when='@2.0.0') provides('mpi@3.0', when='@1.10.3') provides('mpi@3.0', when='@1.10.2') provides('mpi@3.0', when='@1.10.1') provides('mpi@3.0', when='@1.10.0') provides('mpi@3.0', when='@1.8.8') provides('mpi@2.2', when='@1.6.5')
player1537-forks/spack
var/spack/repos/builtin/packages/r-seuratobject/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 RSeuratobject(RPackage): """Data Structures for Single Cell Data. Defines S4 classes for single-cell genomic data and associated information, such as dimensionality reduction embeddings, nearest-neighbor graphs, and spatially-resolved coordinates. Provides data access methods and R-native hooks to ensure the Seurat object is familiar to other R users. See Satija R, <NAME>, <NAME>, et al (2015) <doi:10.1038/nbt.3192>, <NAME>, <NAME>, <NAME>, et al (2015) <doi:10.1016/j.cell.2015.05.002>, and Stuart T, <NAME>, et al (2019) <doi:10.1016/j.cell.2019.05.031> for more details.""" cran = "SeuratObject" version('4.0.4', sha256='585261b7d2045193accf817a29e2e3356e731f57c554bed37d232fa49784088c') depends_on('r@4.0.0:', type=('build', 'run')) depends_on('r-matrix@1.3-3:', type=('build', 'run')) depends_on('r-rcpp@1.0.5:', type=('build', 'run')) depends_on('r-rlang@0.4.7:', type=('build', 'run')) depends_on('r-rcppeigen', type=('build', 'run'))