repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
player1537-forks/spack
var/spack/repos/builtin/packages/reditools/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 Reditools(PythonPackage): """REDItools: python scripts for RNA editing detection by RNA-Seq data. REDItools are simple python scripts conceived to facilitate the investigation of RNA editing at large-scale and devoted to research groups that would to explore such phenomenon in own data but don't have sufficient bioinformatics skills. They work on main operating systems (although unix/linux-based OS are preferred), can handle reads from whatever platform in the standard BAM format and implement a variety of filters.""" homepage = "https://github.com/BioinfoUNIBA/REDItools" git = "https://github.com/BioinfoUNIBA/REDItools.git" maintainers = ['glennpj'] version('1.3_2020-08-03', commit='<PASSWORD>') version('1.3_2020-03-20', commit='cf47f3d54f324aeb9650bcf8bfacf5a967762a55') variant('nature_protocol', default=False, description='Install the Nature Protocol scripts and files') # pip silently replaces distutils with setuptools depends_on('py-setuptools', type='build') depends_on('py-reindent', type='build', when='^python@3:') depends_on('blat', type='run') depends_on('py-fisher', type='run') depends_on('py-numpy', type='run') depends_on('py-pandas', type='run') depends_on('py-pysam', type='run') depends_on('py-scipy', type='run') depends_on('tabix', type='run') # Nature Protocol depends_on('bcftools', type='run', when='+nature_protocol') depends_on('bedtools2', type='run', when='+nature_protocol') depends_on('bwa', type='run', when='+nature_protocol') depends_on('bzip2', type='run', when='+nature_protocol') depends_on('fastp', type='run', when='+nature_protocol') depends_on('fastqc', type='run', when='+nature_protocol') depends_on('git', type='run', when='+nature_protocol') depends_on('gmap-gsnap', type='run', when='+nature_protocol') depends_on('htslib', type='run', when='+nature_protocol') depends_on('libdeflate', type='run', when='+nature_protocol') depends_on('py-bx-python', type='run', when='+nature_protocol') depends_on('py-rseqc', type='run', when='+nature_protocol') depends_on('samtools', type='run', when='+nature_protocol') depends_on('star', type='run', when='+nature_protocol') depends_on('wget', type='run', when='+nature_protocol') patch('interpreter.patch') patch('setup.py.patch') patch('batch_sort.patch', when='^python@3:') @run_before('install') def p2_to_p3(self): if '^python@3:' in self.spec: # clean up space/tab mixing reindent = which('reindent') reindent('--nobackup', '--recurse', '.') # convert to be python3 compatible p2_to_p3 = which('2to3') p2_to_p3('--nobackups', '--write', '.') @run_after('install') def nature_protocol(self): if '+nature_protocol' in self.spec: mkdirp(prefix.NPfiles) install_tree('NPfiles', prefix.NPfiles) ignore_files = [ 'conda_pckg_installer_docker.py', 'conda_pckgs_installer.py', 'download-prepare-data-NP_docker.py', ] docker_conda = lambda p: p in ignore_files install_tree('NPscripts', prefix.bin, ignore=docker_conda)
player1537-forks/spack
var/spack/repos/builtin/packages/r-bslib/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 RBslib(RPackage): """Custom 'Bootstrap' 'Sass' Themes for 'shiny' and 'rmarkdown'. Simplifies custom 'CSS' styling of both 'shiny' and 'rmarkdown' via 'Bootstrap' 'Sass'. Supports both 'Bootstrap' 3 and 4 as well as their various 'Bootswatch' themes. An interactive widget is also provided for previewing themes in real time.""" cran = "bslib" version('0.3.1', sha256='5f5cb56e5cab9039a24cd9d70d73b69c2cab5b2f5f37afc15f71dae0339d9849') depends_on('r@2.10:', type=('build', 'run')) depends_on('r-htmltools@0.5.2:', type=('build', 'run')) depends_on('r-jsonlite', type=('build', 'run')) depends_on('r-sass@0.4.0:', type=('build', 'run')) depends_on('r-jquerylib@0.1.3:', type=('build', 'run')) depends_on('r-rlang', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/ape/package.py
<filename>var/spack/repos/builtin/packages/ape/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 Ape(Package): """A tool for generating atomic pseudopotentials within a Density-Functional Theory framework""" homepage = "https://www.tddft.org/programs/APE/" url = "http://www.tddft.org/programs/APE/sites/default/files/ape-2.2.1.tar.gz" version('2.2.1', sha256='1bdb7f987fde81f8a5f335da6b59fa884e6d185d4a0995c90fde7c04376ce9e3') depends_on('gsl') depends_on('libxc@:4', when='@2.3.0:') depends_on('libxc@:2.2.2', when='@:2.2.1') def install(self, spec, prefix): args = [] args.extend([ '--prefix=%s' % prefix, '--with-gsl-prefix=%s' % spec['gsl'].prefix, '--with-libxc-prefix=%s' % spec['libxc'].prefix ]) # When preprocessor expands macros (i.e. CFLAGS) defined as quoted # strings the result may be > 132 chars and is terminated. # This will look to a compiler as an Unterminated character constant # and produce Line truncated errors. To overcome this, add flags to # let compiler know that the entire line is meaningful. # TODO: For the lack of better approach, assume that clang is mixed # TODO: with GNU fortran. if (spec.satisfies('%apple-clang') or spec.satisfies('%clang') or spec.satisfies('%gcc')): args.extend([ 'FCFLAGS=-O2 -ffree-line-length-none' ]) configure(*args) make() make('install')
player1537-forks/spack
var/spack/repos/builtin/packages/r-pcapp/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 RPcapp(RPackage): """Provides functions for robust PCA by projection pursuit. Provides functions for robust PCA by projection pursuit. The methods are described in Croux et al. (2006) <doi:10.2139/ssrn.968376>, Croux et al. (2013) <doi:10.1080/00401706.2012.727746>, Todorov and Filzmoser (2013) <doi:10.1007/978-3-642-33042-1_31>.""" cran = "pcaPP" version('1.9-74', sha256='50837b434d67e4b5fcec34c689a9e30c7a9fb94c561b39f24e68a1456ff999b6') version('1.9-73', sha256='ca4566b0babfbe83ef9418283b08a12b3420dc362f93c6562f265df7926b53fc') version('1.9-72.1', sha256='a9e39ee15a650930c07672092f9f0c431807869b68b5471037eb7290a4d65bd5') version('1.9-72', sha256='58bd0bfb5931aecd734801654bac95f28dab6d30fd043c66c5b719b497104844') version('1.9-70', sha256='359e2b376b8b7e2de68b0f33f772d99ecbe9a94f8f460574ac2e3c07513c96d5') version('1.9-61', sha256='7dc395e159ff1a56135baaf0b1bea40f871c30f6dadd38992f4ccdfc4e88dc29') version('1.9-60', sha256='9a4b471957ac39ed7c860e3165bf8e099b5b55cf814654adb58f9d19df2718e7') version('1.9-50', sha256='137637314fba6e11883c63b0475d8e50aa7f363e064baa1e70245f7692565b56') depends_on('r-mvtnorm', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-fastmap/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 RFastmap(RPackage): """Fast Implementation of a Key-Value Store. Fast implementation of a key-value store. Environments are commonly used as key-value stores, but every time a new key is used, it is added to R's global symbol table, causing a small amount of memory leakage. This can be problematic in cases where many different keys are used. Fastmap avoids this memory leak issue by implementing the map using data structures in C++.""" cran = "fastmap" version('1.1.0', sha256='9113e526b4c096302cfeae660a06de2c4c82ae4e2d3d6ef53af6de812d4c822b') version('1.0.1', sha256='4778b05dfebd356f8df980dfeff3b973a72bca14898f870e5c40c1d84db9faec')
player1537-forks/spack
var/spack/repos/builtin/packages/r-rcppparallel/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 RRcppparallel(RPackage): """Parallel Programming Tools for 'Rcpp'. High level functions for parallel programming with 'Rcpp'. For example, the 'parallelFor()' function can be used to convert the work of a standard serial "for" loop into a parallel one and the 'parallelReduce()' function can be used for accumulating aggregate or other values.""" cran = "RcppParallel" version('5.1.5', sha256='6396322b3b6d6f7019aac808ceb74707bc5c4ed01677fab408372c2a5508c2ea') version('5.0.2', sha256='8ca200908c6365aafb2063be1789f0894969adc03c0f523c6cc45434b8236f81') version('4.4.3', sha256='7a04929ecab97e46c0b09fe5cdbac9d7bfa17ad7d111f1a9787a9997f45fa0fa') depends_on('r@3.0.2:', type=('build', 'run')) depends_on('gmake', type='build') depends_on('tbb', when='@5.1.5:') patch('asclang.patch', when='%fj')
player1537-forks/spack
var/spack/repos/builtin/packages/libnetfilter-conntrack/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 LibnetfilterConntrack(AutotoolsPackage): """libnetfilter_conntrack is a userspace library providing a programming interface (API) to the in-kernel connection tracking state table.""" homepage = "https://netfilter.org" url = "https://github.com/Distrotech/libnetfilter_conntrack/archive/libnetfilter_conntrack-1.0.4.tar.gz" version('1.0.4', sha256='68168697b9d6430b7797ddd579e13a2cef06ea15c154dfd14e18be64e035ea6e') version('1.0.3', sha256='e2129d7c0346c7140355d643da8e3409cbd755689ea889bc0d6dbd557f1b5671') version('1.0.2', sha256='97f641a2e47053bd87bc817292519d6661e8f84a22d3314724b83b9f5eaddbff') depends_on('autoconf', type='build') depends_on('automake', type='build') depends_on('libtool', type='build') depends_on('m4', type='build') depends_on('pkgconfig', type='build') depends_on('libmnl@1.0.3:') depends_on('libnfnetlink@1.0.0:')
player1537-forks/spack
var/spack/repos/builtin/packages/r-sass/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 RSass(RPackage): """Syntactically Awesome Style Sheets ('Sass'). An 'SCSS' compiler, powered by the 'LibSass' library. With this, R developers can use variables, inheritance, and functions to generate dynamic style sheets. The package uses the 'Sass CSS' extension language, which is stable, powerful, and CSS compatible.""" cran = "sass" version('0.4.0', sha256='7d06ca15239142a49e88bb3be494515abdd8c75f00f3f1b0ee7bccb55019bc2b') depends_on('r-fs', type=('build', 'run')) depends_on('r-rlang@0.4.10:', type=('build', 'run')) depends_on('r-htmltools@0.5.1:', type=('build', 'run')) depends_on('r-r6', type=('build', 'run')) depends_on('r-rappdirs', type=('build', 'run')) depends_on('gmake', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/dbcsr/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 Dbcsr(CMakePackage, CudaPackage, ROCmPackage): """Distributed Block Compressed Sparse Row matrix library.""" homepage = "https://github.com/cp2k/dbcsr" git = "https://github.com/cp2k/dbcsr.git" maintainers = ['dev-zero'] version('develop', branch='develop') variant('mpi', default=True, description='Compile with MPI') variant('openmp', default=False, description='Build with OpenMP support') variant('shared', default=True, description='Build shared library') variant('smm', default='libxsmm', values=('libxsmm', 'blas'), description='Library for small matrix multiplications') variant('cuda_arch_35_k20x', default=False, description=('CP2K (resp. DBCSR) has specific parameter sets for' ' different GPU models. Enable this when building' ' with cuda_arch=35 for a K20x instead of a K40')) variant('opencl', default=False, description='Enable OpenCL backend') depends_on('blas') depends_on('lapack') depends_on('mpi', when='+mpi') depends_on('libxsmm@1.11:~header-only', when='smm=libxsmm') depends_on('cmake@3.12:', type='build') depends_on('py-fypp', type='build') depends_on('pkgconfig', type='build') depends_on('python@3.6:', type='build', when='+cuda') depends_on('hipblas', when='+rocm') depends_on('opencl', when='+opencl') # We only support specific gpu archs for which we have parameter files # for optimal kernels. Note that we don't override the parent class arch # properties, since the parent class defines constraints for different archs # Instead just mark all unsupported cuda archs as conflicting. dbcsr_cuda_archs = ('35', '37', '60', '70') cuda_msg = 'dbcsr only supports cuda_arch {0}'.format(dbcsr_cuda_archs) for arch in CudaPackage.cuda_arch_values: if arch not in dbcsr_cuda_archs: conflicts('+cuda', when='cuda_arch={0}'.format(arch), msg=cuda_msg) conflicts('+cuda', when='cuda_arch=none', msg=cuda_msg) dbcsr_amdgpu_targets = ('gfx906') amd_msg = 'DBCSR only supports amdgpu_target {0}'.format(dbcsr_amdgpu_targets) for arch in ROCmPackage.amdgpu_targets: if arch not in dbcsr_amdgpu_targets: conflicts('+rocm', when='amdgpu_target={0}'.format(arch), msg=amd_msg) accel_msg = "CUDA, ROCm and OpenCL support are mutually exlusive" conflicts('+cuda', when='+rocm', msg=accel_msg) conflicts('+cuda', when='+opencl', msg=accel_msg) conflicts('+rocm', when='+opencl', msg=accel_msg) # Require openmp threading for OpenBLAS by making other options conflict conflicts('^openblas threads=pthreads', when='+openmp') conflicts('^openblas threads=none', when='+openmp') conflicts('smm=blas', when='+opencl') generator = 'Ninja' depends_on('ninja@1.10:', type='build') def cmake_args(self): spec = self.spec if len(spec.variants['cuda_arch'].value) > 1: raise InstallError("dbcsr supports only one cuda_arch at a time") if len(spec.variants['amdgpu_target'].value) > 1: raise InstallError("DBCSR supports only one amdgpu_arch at a time") args = [ '-DUSE_SMM=%s' % ('libxsmm' if 'smm=libxsmm' in spec else 'blas'), self.define_from_variant('USE_MPI', 'mpi'), self.define_from_variant('USE_OPENMP', 'openmp'), # C API needs MPI self.define_from_variant('WITH_C_API', 'mpi'), '-DBLAS_FOUND=true', '-DBLAS_LIBRARIES=%s' % (spec['blas'].libs.joined(';')), '-DLAPACK_FOUND=true', '-DLAPACK_LIBRARIES=%s' % (spec['lapack'].libs.joined(';')), '-DWITH_EXAMPLES=ON', self.define_from_variant('BUILD_SHARED_LIBS', 'shared'), ] if self.spec.satisfies('+cuda'): cuda_arch = self.spec.variants['cuda_arch'].value[0] gpuver = { '35': 'K40', '37': 'K80', '60': 'P100', '70': 'V100', }[cuda_arch] if (cuda_arch == '35' and self.spec.satisfies('+cuda_arch_35_k20x')): gpuver = 'K20X' args += [ '-DWITH_GPU=%s' % gpuver, '-DUSE_ACCEL=cuda' ] if self.spec.satisfies('+rocm'): amd_arch = self.spec.variants['amdgpu_target'].value[0] gpuver = { 'gfx906': 'Mi50' }[amd_arch] args += [ '-DWITH_GPU={0}'.format(gpuver), '-DUSE_ACCEL=hip' ] if self.spec.satisfies('+opencl'): args += [ '-DUSE_ACCEL=opencl' ] return args def check(self): """Override CMakePackage's check() to enforce seralized test runs since they are already parallelized""" with working_dir(self.build_directory): self._if_ninja_target_execute('test', parallel=False)
player1537-forks/spack
var/spack/repos/builtin/packages/fastjet/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 Fastjet(AutotoolsPackage): """ A high energy physics software package for jet finding in pp and e+e- collisions. """ homepage = "http://fastjet.fr/" url = "http://fastjet.fr/repo/fastjet-3.3.3.tar.gz" tags = ['hep'] maintainers = ['drbenmorgan', 'vvolkl'] version('3.3.4', sha256='432b51401e1335697c9248519ce3737809808fc1f6d1644bfae948716dddfc03') version('3.3.3', sha256='30b0a0282ce5aeac9e45862314f5966f0be941ce118a83ee4805d39b827d732b') version('3.3.2', sha256='3f59af13bfc54182c6bb0b0a6a8541b409c6fda5d105f17e03c4cce8db9963c2') version('3.3.1', sha256='76bfed9b87e5efdb93bcd0f7779e27427fbe38e05fe908c2a2e80a9ca0876c53') version('3.3.0', sha256='e9da5b9840cbbec6d05c9223f73c97af1d955c166826638e0255706a6b2da70f') version('3.2.2', sha256='3a70cb6ba64071db49a7eecad821679e1a0dadd84e8abca83e518802b3d876e5') version('3.2.1', sha256='c858b6c4f348c3676afa173251bb16d987674e64679a84306510e3963f858d5b') version('3.2.0', sha256='96a927f1a336ad93cff30f07e2dc137a4de8ff7d74d5cd43eb455f42cf5275e3') version('3.1.3', sha256='9809c2a0c89aec30890397d01eda56621e036589b66d7b3cd196cf087c65e40d') version('3.1.2', sha256='dcc834e53da821cbac459c00249d5d18aee6ac866f37551d6a0c60690d3c170b') version('3.1.1', sha256='38303789390726803bd3e7b3a245933273e86342d080b82754df44f5168634eb') version('3.1.0', sha256='f8dc701dfdb124f009b7614010b911e8cc552655c2a966a7f2608a6caa062263') version('3.0.6', sha256='9718f1d014afe4433bc0612a67a050d720c486fcfa7ad9c9b96bf087b0f3da0b') version('3.0.5', sha256='0781a5528a0374b3189190abc8e8a2bdfbeaab7ed64e8c74ec0389a86bbabff9') version('3.0.4', sha256='8161ea18087cea97de37bd9df2a49895ca1ef72732f5766af7c62738b21ed2c9') version('3.0.3', sha256='6a3e5869cf43b325c7222a925e195b2bd624db922958a926cb4211c00882a50d') version('3.0.2', sha256='6035a3295253bcd6dd68408985dbedc4a7c5aec13ed1dfa5fdb3cb9229dc6d31') version('3.0.1', sha256='4f17c235e73a6fcbc8ee39c15a00f166b701e732033e623625f55fe93220a4ed') version('3.0.0', sha256='f63252e3e9d27553c65642ff35d82913b804dfd569d2446c01166882dbf2577f') version('2.4.5', sha256='a175849393a3a251b8f92ea9f747b74236dfc83d2786ef5dd92b39c57316a727') version('2.4.4', sha256='4d97a8494e9aae7e5738e97d224f5aafb44ae8c5d5021f836d5c8c20fc5030fc') version('2.4.3', sha256='0560622140f9f2dfd9e316bfba6a7582c4aac68fbe06f333bd442363f54a3e40') version('2.4.2', sha256='504714b8d4895b41c6399347a873bbcf515037d9f5cf3cd5413c9d7aac67f16f') version('2.4.1', sha256='764de6c3b9ff3e6d1f48022eb0d536054e7321e73c9f71f7eb1e93f90b6e8ad0') version('2.4.0', sha256='96af9b21076be779e686c83a921d4598d93329eb69f9789fe619e27cbad6034a') version('2.3.4', sha256='8bd1d9c12866cc768974e9c05c95e00c2fec3c65854ee91b7fb11709db9c5c12') version('2.3.3', sha256='c7eadb8ddd956815f3387ed611faae746c05b69b7550de8ae802a00342b159b0') version('2.3.2', sha256='ba8b17fcc8edae16faa74608e8da53e87a8c574aa21a28c985ea0dfedcb95210') version('2.3.1', sha256='16c32b420e1aa7d0b6fecddd980ea0f2b7e3c2c66585e06f0eb3142677ab6ccf') version('2.3.0', sha256='e452fe4a9716627bcdb726cfb0917f46a7ac31f6006330a6ccc1abc43d9c2d53') # older version use .tar instead of .tar.gz extension, to be added variant('shared', default=True, description='Builds a shared version of the library') variant('auto-ptr', default=False, description='Use auto_ptr') variant('atlas', default=False, description='Patch to make random generator thread_local') patch('atlas.patch', when='+atlas', level=0) def configure_args(self): extra_args = ["--enable-allplugins"] extra_args += self.enable_or_disable('shared') extra_args += self.enable_or_disable('auto-ptr') return extra_args
player1537-forks/spack
var/spack/repos/builtin/packages/py-azureml-dataprep-native/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 sys class PyAzuremlDataprepNative(PythonPackage): """Python Package for AzureML DataPrep specific native extensions.""" homepage = "https://docs.microsoft.com/en-us/python/api/overview/azure/ml/?view=azure-ml-py" if sys.platform == 'darwin': version('30.0.0-py3.9', sha256='eaf3fcd9f965e87b03fe89d7c6fe6abce53483a79afc963e4981061f4c250e85', expand=False, url='https://pypi.io/packages/cp39/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp39-cp39-macosx_10_9_x86_64.whl') version('30.0.0-py3.8', sha256='6772b638f9d03a041b17ce4343061f5d543019200904b9d361b2b2629c3595a7', expand=False, preferred=True, url='https://pypi.io/packages/cp38/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp38-cp38-macosx_10_9_x86_64.whl') version('30.0.0-py3.7', sha256='1fb47c48edf795aaa1b3e589a4d580fc61d639c0bb26519271736c72155d008e', expand=False, url='https://pypi.io/packages/cp37/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp37-cp37m-macosx_10_9_x86_64.whl') version('30.0.0-py3.6', sha256='bd81f0ac0df442b4e09bd2ee76ccff1279437b73e08324d9038c13a5e4708598', expand=False, url='https://pypi.io/packages/cp36/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp36-cp36m-macosx_10_9_x86_64.whl') version('30.0.0-py3.5', sha256='2d1702a2dd9b851ccba9d4624a240f5657f3f34a89977f01ee99f9ccaab905a9', expand=False, url='https://pypi.io/packages/cp35/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp35-cp35m-macosx_10_9_x86_64.whl') version('14.2.1-py3.7', sha256='0711ea6465a555d4ed052b7ecf3ed580d711ca7499a12be4c9736d5555ab2786', expand=False, url='https://pypi.io/packages/cp37/a/azureml_dataprep_native/azureml_dataprep_native-14.2.1-cp37-cp37m-macosx_10_9_x86_64.whl') elif sys.platform.startswith('linux'): version('30.0.0-py3.9', sha256='b8673136948f682c84d047feacbfee436df053cba4f386f31c4c3a245a4e3646', expand=False, url='https://pypi.io/packages/cp39/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp39-cp39-manylinux1_x86_64.whl') version('30.0.0-py3.8', sha256='d07cf20f22b14c98576e135bbad9bb8aaa3108941d2beaadf050b4238bc93a18', expand=False, preferred=True, url='https://pypi.io/packages/cp38/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp38-cp38-manylinux1_x86_64.whl') version('30.0.0-py3.7', sha256='897063c21d7b1b8cb070f8992e78291c402559434e9d4a5bb85b595a5c676fe6', expand=False, url='https://pypi.io/packages/cp37/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp37-cp37m-manylinux1_x86_64.whl') version('30.0.0-py3.6', sha256='d2560d3f20cd3b8ad2d2159b1048b83dd330cf8c44aa8becedd6dcaf72876062', expand=False, url='https://pypi.io/packages/cp36/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp36-cp36m-manylinux1_x86_64.whl') version('30.0.0-py3.5', sha256='15b55d903d5688b5a9a290e388db62c8f3d042bc1796db44723f4455b7b18d07', expand=False, url='https://pypi.io/packages/cp35/a/azureml_dataprep_native/azureml_dataprep_native-30.0.0-cp35-cp35m-manylinux1_x86_64.whl') version('14.2.1-py3.7', sha256='0817ec5c378a9bcd1af8edda511ca9d02bdc7087e6f8802c459c9b8f3fde4ade', expand=False, url='https://pypi.io/packages/cp37/a/azureml_dataprep_native/azureml_dataprep_native-14.2.1-cp37-cp37m-manylinux1_x86_64.whl') depends_on('python@3.9.0:3.9', when='@30.0.0-py3.9', type=('build', 'run')) depends_on('python@3.8.0:3.8', when='@30.0.0-py3.8', type=('build', 'run')) depends_on('python@3.7.0:3.7', when='@30.0.0-py3.7', type=('build', 'run')) depends_on('python@3.6.0:3.6', when='@30.0.0-py3.6', type=('build', 'run')) depends_on('python@3.5.0:3.5', when='@30.0.0-py3.5', type=('build', 'run')) depends_on('python@3.7.0:3.7', when='@14.2.1-py3.7', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-lobstr/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 RLobstr(RPackage): """Visualize R Data Structures with Trees. A set of tools for inspecting and understanding R data structures inspired by str(). Includes ast() for visualizing abstract syntax trees, ref() for showing shared references, cst() for showing call stack trees, and obj_size() for computing object sizes.""" cran = "lobstr" version('1.1.1', sha256='b8c9ce00095bd4f304b4883ef71da24572022f0632a18c3e1ba317814e70716e') version('1.0.1', sha256='25fb288f73dbaf680ebbf27a50da338868c55d788501118fd33748854c5104fb') version('1.0.0', sha256='9d24de1519c51b3bac79066a1abf623b939e884ba5b3005110bb9c2016954b3d') depends_on('r@3.1:', type=('build', 'run')) depends_on('r@3.2:', type=('build', 'run'), when='@1.1.1:') depends_on('r-crayon', type=('build', 'run')) depends_on('r-rcpp', type=('build', 'run')) depends_on('r-rlang@0.3.0:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-pillow/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 PyPillowBase(PythonPackage): """Base class for Pillow and its fork Pillow-SIMD.""" maintainers = ['adamjstewart'] provides('pil') # These defaults correspond to Pillow defaults # https://pillow.readthedocs.io/en/stable/installation.html#external-libraries variant('zlib', default=True, description='Compressed PNG functionality') variant('jpeg', default=True, description='JPEG functionality') variant('tiff', default=False, description='Compressed TIFF functionality') variant('freetype', default=False, description='Type related services') variant('lcms', default=False, description='Color management') variant('webp', default=False, description='WebP format') variant('webpmux', default=False, description='WebP metadata') variant('jpeg2000', default=False, description='JPEG 2000 functionality') variant('imagequant', default=False, description='Improved color quantization') variant('xcb', default=False, description='X11 screengrab support') # Required dependencies # https://pillow.readthedocs.io/en/latest/installation.html#notes depends_on('python@3.7:3.10', when='@9:', type=('build', 'run')) depends_on('python@3.6:3.10', when='@8.3.2:8.4', type=('build', 'run')) depends_on('python@3.6:3.9', when='@8:8.3.1', type=('build', 'run')) depends_on('python@3.5:3.8', when='@7.0:7.2', type=('build', 'run')) depends_on('python@2.7:2.8,3.5:3.8', when='@6.2.1:6.2.2', type=('build', 'run')) depends_on('python@2.7:2.8,3.5:3.7', when='@6.0:6.2.0', type=('build', 'run')) depends_on('python@2.7:2.8,3.4:3.7', when='@5.2:5.4', type=('build', 'run')) depends_on('python@2.7:2.8,3.4:3.6', when='@5.0:5.1', type=('build', 'run')) depends_on('python@2.7:2.8,3.3:3.6', when='@4.0:4', type=('build', 'run')) depends_on('python@2.6:2.8,3.2:3.5', when='@2:3', type=('build', 'run')) depends_on('python@2.4:2.7', when='@:1', type=('build', 'run')) depends_on('py-setuptools', type='build') # Optional dependencies depends_on('zlib', when='+zlib') depends_on('jpeg', when='+jpeg') depends_on('libtiff', when='+tiff') depends_on('freetype', when='+freetype') depends_on('lcms@2:', when='+lcms') depends_on('libwebp', when='+webp') depends_on('libwebp+libwebpmux+libwebpdemux', when='+webpmux') depends_on('openjpeg', when='+jpeg2000') depends_on('libimagequant', when='+imagequant') depends_on('libxcb', when='+xcb') conflicts('+webpmux', when='~webp', msg='Webpmux relies on WebP support') conflicts('+imagequant', when='@:3.2', msg='imagequant support was added in 3.3') conflicts('+xcb', when='@:7.0', msg='XCB support was added in 7.1') def patch(self): """Patch setup.py to provide library and include directories for dependencies.""" library_dirs = [] include_dirs = [] for dep in self.spec.dependencies(deptype='link'): query = self.spec[dep.name] library_dirs.extend(query.libs.directories) include_dirs.extend(query.headers.directories) setup = FileFilter('setup.py') setup.filter('library_dirs = []', 'library_dirs = {0}'.format(library_dirs), string=True) setup.filter('include_dirs = []', 'include_dirs = {0}'.format(include_dirs), string=True) def variant_to_cfg(variant): able = 'enable' if '+' + variant in self.spec else 'disable' return '{0}-{1}=1\n'.format(able, variant) with open('setup.cfg', 'a') as setup: setup.write('[build_ext]\n') variants = list(self.spec.variants) if self.spec.satisfies('@:7.0'): variants.remove('xcb') if self.spec.satisfies('@:3.2'): variants.remove('imagequant') for variant in variants: setup.write(variant_to_cfg(variant)) setup.write('rpath={0}\n'.format(':'.join(self.rpath))) setup.write('[install]\n') def setup_build_environment(self, env): env.set('MAX_CONCURRENCY', str(make_jobs)) class PyPillow(PyPillowBase): """Pillow is a fork of the Python Imaging Library (PIL). It adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics capabilities.""" homepage = "https://python-pillow.org/" pypi = "Pillow/Pillow-7.2.0.tar.gz" version('9.0.0', sha256='ee6e2963e92762923956fe5d3479b1fdc3b76c83f290aad131a2f98c3df0593e') version('8.4.0', sha256='b8e2f83c56e141920c39464b852de3719dfbfb6e3c99a2d8da0edf4fb33176ed') version('8.0.0', sha256='59304c67d12394815331eda95ec892bf54ad95e0aa7bc1ccd8e0a4a5a25d4bf3') version('7.2.0', sha256='97f9e7953a77d5a70f49b9a48da7776dc51e9b738151b22dacf101641594a626') version('7.0.0', sha256='4d9ed9a64095e031435af120d3c910148067087541131e82b3e8db302f4c8946') version('6.2.2', sha256='db9ff0c251ed066d367f53b64827cc9e18ccea001b986d08c265e53625dab950') version('6.2.1', sha256='bf4e972a88f8841d8fdc6db1a75e0f8d763e66e3754b03006cbc3854d89f1cb1') version('6.2.0', sha256='4548236844327a718ce3bb182ab32a16fa2050c61e334e959f554cac052fb0df') version('6.0.0', sha256='809c0a2ce9032cbcd7b5313f71af4bdc5c8c771cb86eb7559afd954cab82ebb5') version('5.4.1', sha256='5233664eadfa342c639b9b9977190d64ad7aca4edc51a966394d7e08e7f38a9f') version('5.1.0', sha256='cee9bc75bff455d317b6947081df0824a8f118de2786dc3d74a3503fd631f4ef') version('3.2.0', sha256='64b0a057210c480aea99406c9391180cd866fc0fd8f0b53367e3af21b195784a') version('3.0.0', sha256='ad50bef540fe5518a4653c3820452a881b6a042cb0f8bb7657c491c6bd3654bb') for ver in [ '9.0.0', '8.4.0', '8.0.0', '7.2.0', '7.0.0', '6.2.2', '6.2.1', '6.2.0', '6.0.0', '5.4.1', '5.1.0', '3.2.0', '3.0.0' ]: provides('pil@' + ver, when='@' + ver)
player1537-forks/spack
var/spack/repos/builtin/packages/fraggenescan/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 Fraggenescan(MakefilePackage): """FragGeneScan is an application for finding (fragmented) genes in short reads. It can also be applied to predict prokaryotic genes in incomplete assemblies or complete genomes.""" homepage = "https://sourceforge.net/projects/fraggenescan/" url = "https://downloads.sourceforge.net/project/fraggenescan/FragGeneScan1.31.tar.gz" version('1.31', sha256='cd3212d0f148218eb3b17d24fcd1fc897fb9fee9b2c902682edde29f895f426c') version('1.30', sha256='f2d7f0dfa4a5f4bbea295ed865dcbfedf16c954ea1534c2a879ebdcfb8650d95') def edit(self, spec, prefix): filter_file('gcc', spack_cc, 'Makefile', string=True) def build(self, spec, prefic): make('clean') make('fgs') def install(self, spec, prefix): install_tree('.', prefix.bin)
player1537-forks/spack
var/spack/repos/builtin/packages/r-squash/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 RSquash(RPackage): """Color-Based Plots for Multivariate Visualization. Functions for color-based visualization of multivariate data, i.e. colorgrams or heatmaps. Lower-level functions map numeric values to colors, display a matrix as an array of colors, and draw color keys. Higher-level plotting functions generate a bivariate histogram, a dendrogram aligned with a color-coded matrix, a triangular distance matrix, and more.""" cran = "squash" version('1.0.9', sha256='ff381c85071e3407574e3db28d789657f64e7d3f9d74ac123539de22ab8ac6f4') version('1.0.8', sha256='e6932c0a461d5c85f7180a31d18a3eb4f28afd6769efe251075a4de12de039f4') version('1.0.7', sha256='d2d7182a72dfd93b8b65e775bea11e891c38598fa49a3ed4f92ec1159ffab6f1')
player1537-forks/spack
lib/spack/spack/schema/gitlab_ci.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) """Schema for gitlab-ci.yaml configuration file. .. literalinclude:: ../spack/schema/gitlab_ci.py :lines: 13- """ from llnl.util.lang import union_dicts image_schema = { 'oneOf': [ { 'type': 'string' }, { 'type': 'object', 'properties': { 'name': {'type': 'string'}, 'entrypoint': { 'type': 'array', 'items': { 'type': 'string', }, }, }, }, ], } runner_attributes_schema_items = { 'image': image_schema, 'tags': { 'type': 'array', 'items': {'type': 'string'} }, 'variables': { 'type': 'object', 'patternProperties': { r'[\w\d\-_\.]+': { 'type': 'string', }, }, }, 'before_script': { 'type': 'array', 'items': {'type': 'string'} }, 'script': { 'type': 'array', 'items': {'type': 'string'} }, 'after_script': { 'type': 'array', 'items': {'type': 'string'} }, } runner_selector_schema = { 'type': 'object', 'additionalProperties': False, 'required': ['tags'], 'properties': runner_attributes_schema_items, } core_shared_properties = union_dicts( runner_attributes_schema_items, { 'bootstrap': { 'type': 'array', 'items': { 'anyOf': [ { 'type': 'string', }, { 'type': 'object', 'additionalProperties': False, 'required': ['name'], 'properties': { 'name': { 'type': 'string', }, 'compiler-agnostic': { 'type': 'boolean', 'default': False, }, }, }, ], }, }, 'mappings': { 'type': 'array', 'items': { 'type': 'object', 'additionalProperties': False, 'required': ['match'], 'properties': { 'match': { 'type': 'array', 'items': { 'type': 'string', }, }, 'runner-attributes': runner_selector_schema, }, }, }, 'service-job-attributes': runner_selector_schema, 'rebuild-index': {'type': 'boolean'}, 'broken-specs-url': {'type': 'string'}, }, ) gitlab_ci_properties = { 'anyOf': [ { 'type': 'object', 'additionalProperties': False, 'required': ['mappings'], 'properties': union_dicts( core_shared_properties, { 'enable-artifacts-buildcache': { 'type': 'boolean', }, }, ), }, { 'type': 'object', 'additionalProperties': False, 'required': ['mappings'], 'properties': union_dicts( core_shared_properties, { 'temporary-storage-url-prefix': { 'type': 'string', }, }, ), }, ] } #: Properties for inclusion in other schemas properties = { 'gitlab-ci': gitlab_ci_properties, } #: Full schema with metadata schema = { '$schema': 'http://json-schema.org/draft-07/schema#', 'title': 'Spack gitlab-ci configuration file schema', 'type': 'object', 'additionalProperties': False, 'properties': properties, }
player1537-forks/spack
var/spack/repos/builtin/packages/cupla/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 Cupla(Package): """C++ User interface for the Platform independent Library Alpaka""" homepage = "https://github.com/alpaka-group/cupla" git = "https://github.com/alpaka-group/cupla.git" url = "https://github.com/alpaka-group/cupla/archive/refs/tags/0.3.0.tar.gz" maintainers = ['vvolkl'] version('develop', branch='dev') version('master', branch='master') version('0.3.0', sha256='035512517167967697e73544c788453de5e3f0bc4e8d4864b41b2e287365cbaf') depends_on('alpaka@0.6.0:0.7') def install(self, spec, prefix): install_tree('include', self.prefix.include) install_tree('src', self.prefix.src) install_tree('doc', self.prefix.share.cupla.doc) install_tree('example', self.prefix.example) install_tree('cmake', self.prefix.cmake) install('Findcupla.cmake', self.prefix) install('cuplaConfig.cmake', self.prefix) def setup_run_environment(self, env): env.set("CUPLA_ROOT", self.prefix) env.prepend_path("CMAKE_PREFIX_PATH", self.prefix) env.set("CUPLA", self.prefix.share.cupla) def setup_dependent_build_environment(self, env, dependent_spec): env.set("CUPLA_ROOT", self.prefix) env.prepend_path("CMAKE_PREFIX_PATH", self.prefix) env.set("CUPLA", self.prefix.share.cupla)
player1537-forks/spack
var/spack/repos/builtin/packages/setxkbmap/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 Setxkbmap(AutotoolsPackage, XorgPackage): """setxkbmap is an X11 client to change the keymaps in the X server for a specified keyboard to use the layout determined by the options listed on the command line.""" homepage = "https://cgit.freedesktop.org/xorg/app/setxkbmap" xorg_mirror_path = "app/setxkbmap-1.3.1.tar.gz" version('1.3.1', sha256='e24a73669007fa3b280eba4bdc7f75715aeb2e394bf2d63f5cc872502ddde264') depends_on('libxkbfile') depends_on('libx11') depends_on('pkgconfig', type='build') depends_on('util-macros', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/cram/package.py
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/cram/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 Cram(CMakePackage): """Cram runs many small MPI jobs inside one large MPI job.""" homepage = "https://github.com/llnl/cram" url = "http://github.com/llnl/cram/archive/v1.0.1.tar.gz" version('1.0.1', sha256='985888018f6481c3e9ab4f1d1788e25725d8b92a1cf52b1366ee93793614709a') extends('python') depends_on('python@2.7:') depends_on('mpi') depends_on('cmake@2.8:', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/amr-wind/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 itertools from spack import * def process_amrex_constraints(): """Map constraints when building with external AMReX""" a1 = ['+', '~'] a2 = ['mpi', 'hypre', 'cuda'] a3 = [[x + y for x in a1] for y in a2] for k in itertools.product(*a3): if '+cuda' in k: for arch in CudaPackage.cuda_arch_values: yield ''.join(k) + " cuda_arch=%s" % arch else: yield ''.join(k) class AmrWind(CMakePackage, CudaPackage): """AMR-Wind is a massively parallel, block-structured adaptive-mesh, incompressible flow sover for wind turbine and wind farm simulations. """ homepage = "https://github.com/Exawind/amr-wind" git = "https://github.com/Exawind/amr-wind.git" maintainers = ['jrood-nrel', 'michaeljbrazell'] tags = ['ecp', 'ecp-apps'] version('main', branch='main', submodules=True) variant('shared', default=True, description='Build shared libraries') variant('unit', default=True, description='Build unit tests') variant('tests', default=True, description='Activate regression tests') variant('mpi', default=True, description='Enable MPI support') variant('openmp', default=False, description='Enable OpenMP for CPU builds') variant('netcdf', default=True, description='Enable NetCDF support') variant('hypre', default=True, description='Enable Hypre integration') variant('masa', default=False, description='Enable MASA integration') variant('openfast', default=False, description='Enable OpenFAST integration') variant('internal-amrex', default=True, description='Use AMRex submodule to build') conflicts('+openmp', when='+cuda') depends_on('mpi', when='+mpi') for opt in process_amrex_constraints(): dopt = '+particles' + opt depends_on('amrex@develop' + dopt, when='~internal-amrex' + opt) depends_on('hypre+shared+mpi~int64~cuda@2.20.0:', when='+mpi~cuda+hypre') depends_on('hypre+shared~mpi~int64~cuda@2.20.0:', when='~mpi~cuda+hypre') for arch in CudaPackage.cuda_arch_values: depends_on('hypre+shared+mpi~int64+cuda cuda_arch=%s @2.20.0:' % arch, when='+mpi+cuda+hypre cuda_arch=%s' % arch) depends_on('hypre+shared~mpi~int64+cuda cuda_arch=%s @2.20.0:' % arch, when='~mpi+cuda+hypre cuda_arch=%s' % arch) depends_on('netcdf-c', when='+netcdf') depends_on('masa', when='+masa') depends_on('openfast+cxx', when='+openfast') def cmake_args(self): define = CMakePackage.define vs = ["mpi", "cuda", "openmp", "netcdf", "hypre", "masa", "openfast", "tests"] args = [ self.define_from_variant("AMR_WIND_ENABLE_%s" % v.upper(), v) for v in vs ] args += [ define('CMAKE_EXPORT_COMPILE_COMMANDS', True), define('AMR_WIND_ENABLE_ALL_WARNINGS', True), self.define_from_variant('BUILD_SHARED_LIBS', 'shared'), self.define_from_variant('AMR_WIND_TEST_WITH_FCOMPARE', 'tests'), ] if '+cuda' in self.spec: amrex_arch = ['{0:.1f}'.format(float(i) / 10.0) for i in self.spec.variants['cuda_arch'].value] if amrex_arch: args.append(define('AMReX_CUDA_ARCH', amrex_arch)) if '+internal-amrex' in self.spec: args.append(self.define('AMR_WIND_USE_INTERNAL_AMREX', True)) else: args += [ self.define('AMR_WIND_USE_INTERNAL_AMREX', False), self.define('AMReX_ROOT', self.spec['amrex'].prefix) ] return args
player1537-forks/spack
var/spack/repos/builtin/packages/nemsiogfs/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 Nemsiogfs(CMakePackage): """ Performs I/O for the NEMS-GFS model. This is part of NOAA's NCEPLIBS project.""" homepage = "https://github.com/NOAA-EMC/NCEPLIBS-nemsiogfs" url = "https://github.com/NOAA-EMC/NCEPLIBS-nemsiogfs/archive/refs/tags/v2.5.3.tar.gz" maintainers = ['kgerheiser', 'Hang-Lei-NOAA', 'edwardhartnett'] version('2.5.3', sha256='bf84206b08c8779787bef33e4aba18404df05f8b2fdd20fc40b3af608ae4b9af') depends_on('nemsio')
player1537-forks/spack
lib/spack/spack/build_systems/gnu.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 spack.package import spack.util.url class GNUMirrorPackage(spack.package.PackageBase): """Mixin that takes care of setting url and mirrors for GNU packages.""" #: Path of the package in a GNU mirror gnu_mirror_path = None #: List of GNU mirrors used by Spack base_mirrors = [ 'https://ftpmirror.gnu.org/', 'https://ftp.gnu.org/gnu/', # Fall back to http if https didn't work (for instance because # Spack is bootstrapping curl) 'http://ftpmirror.gnu.org/' ] @property def urls(self): self._ensure_gnu_mirror_path_is_set_or_raise() return [ spack.util.url.join(m, self.gnu_mirror_path, resolve_href=True) for m in self.base_mirrors ] def _ensure_gnu_mirror_path_is_set_or_raise(self): if self.gnu_mirror_path is None: cls_name = type(self).__name__ msg = ('{0} must define a `gnu_mirror_path` attribute' ' [none defined]') raise AttributeError(msg.format(cls_name))
player1537-forks/spack
lib/spack/llnl/util/multiproc.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 implements a parallel map operation but it can accept more values than multiprocessing.Pool.apply() can. For example, apply() will fail to pickle functions if they're passed indirectly as parameters. """ from multiprocessing import Semaphore, Value __all__ = ['Barrier'] class Barrier: """Simple reusable semaphore barrier. Python 2 doesn't have multiprocessing barriers so we implement this. See http://greenteapress.com/semaphores/downey08semaphores.pdf, p. 41. """ def __init__(self, n, timeout=None): self.n = n self.to = timeout self.count = Value('i', 0) self.mutex = Semaphore(1) self.turnstile1 = Semaphore(0) self.turnstile2 = Semaphore(1) def wait(self): if not self.mutex.acquire(timeout=self.to): raise BarrierTimeoutError() self.count.value += 1 if self.count.value == self.n: if not self.turnstile2.acquire(timeout=self.to): raise BarrierTimeoutError() self.turnstile1.release() self.mutex.release() if not self.turnstile1.acquire(timeout=self.to): raise BarrierTimeoutError() self.turnstile1.release() if not self.mutex.acquire(timeout=self.to): raise BarrierTimeoutError() self.count.value -= 1 if self.count.value == 0: if not self.turnstile1.acquire(timeout=self.to): raise BarrierTimeoutError() self.turnstile2.release() self.mutex.release() if not self.turnstile2.acquire(timeout=self.to): raise BarrierTimeoutError() self.turnstile2.release() class BarrierTimeoutError(Exception): pass
player1537-forks/spack
var/spack/repos/builtin/packages/py-archspec/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 PyArchspec(PythonPackage): """A library for detecting, labeling and reasoning about microarchitectures. """ homepage = "https://archspec.readthedocs.io/en/latest/" pypi = "archspec/archspec-0.1.1.tar.gz" maintainers = ['alalazo'] version('0.1.3', sha256='a1aa7abde4d4ce38d115dfd572584906fa8e192e3272b8897e7b4fa1213ec27c') version('0.1.2', sha256='8bb998370f0dc3e509d57c13724ab4109d761fd74af20da26fbe513b0fe01c46') version('0.1.1', sha256='34bafad493b41208857232e21776216d716de37ab051a6a4a1cc1653f7e26423') version('0.1.0', sha256='a4431d0bbe9c9dd7b293c39d8e7590034d512ce5f5a1278a6cbdf61b33f7202d') depends_on('python@2.7:2.8,3.5:', type=('build', 'run')) depends_on('py-click@7.1.2:7', type=('build', 'run')) depends_on('py-six@1.13.0:1', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-poetry-core@1.0.0:', type='build') def patch(self): # See https://python-poetry.org/docs/pyproject/#poetry-and-pep-517 with working_dir(self.build_directory): if self.spec.satisfies('@:0.1.3'): filter_file("poetry>=0.12", "poetry_core>=1.0.0", 'pyproject.toml') filter_file( "poetry.masonry.api", "poetry.core.masonry.api", 'pyproject.toml' )
player1537-forks/spack
var/spack/repos/builtin/packages/libbytesize/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 Libbytesize(AutotoolsPackage): """The goal of this project is to provide a tiny library that would facilitate the common operations with sizes in bytes.""" homepage = "https://github.com/storaged-project/libbytesize" url = "https://github.com/storaged-project/libbytesize/releases/download/2.4/libbytesize-2.4.tar.gz" version('2.4', sha256='25ccb5762bb8c860b63ed1d40e0c5564e3e0084693fbe6554467a8ca1c1d8c7f') version('2.3', sha256='3c74113fc8cd1a2fbd8870fa0ed7cef2ef24d60ef91e7145fbc041f9aa144479') version('2.2', sha256='b93c54b502880c095c9f5767a42464853e2687db2e5e3084908a615bafe73baa') extends('python') depends_on('pcre2') depends_on('gmp') depends_on('mpfr')
player1537-forks/spack
var/spack/repos/builtin/packages/ftk/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 Ftk(CMakePackage): """FTK is a library that simplifies, scales, and delivers feature tracking algorithms for scientific data.""" # Add a proper url for your package's homepage here. homepage = "https://github.com/hguo/ftk" url = "https://github.com/hguo/ftk/archive/0.0.5.tar.gz" git = "https://github.com/hguo/ftk.git" # Add a list of GitHub accounts to # notify when the package is updated. maintainers = ['hguo'] version('master', branch='master') version('dev', branch='dev') version('0.0.5', sha256='9d5c84a73b7761b9fc7dac62d4296df9f3052b722ec1b06518b2b8f51a8d3440') version('0.0.4', sha256='1674904da8d88dbd4c7d2b6a2629883f0444e70aefc99b48d285735d394897fa') # variants variant("adios2", default=False) variant("cuda", default=False) variant("gmp", default=True) variant("hdf5", default=False) variant("mpi", default=False) variant("netcdf", default=False) variant("vtk", default=False) # optional dependencies depends_on('adios2', when='+adios2') depends_on('cuda', when='+cuda') depends_on('hdf5', when='+hdf5') depends_on('gmp', when='+gmp') depends_on('mpi', when='+mpi') depends_on('netcdf-c', when='+netcdf') depends_on('vtk', when='+vtk') def add_cmake_option(self, args, dependency, option): if dependency in self.spec: args.append('-D' + option + '=ON') else: args.append('-D' + option + '=OFF') def cmake_args(self): args = [] self.add_cmake_option(args, '+adios2', 'FTK_USE_ADIOS2') self.add_cmake_option(args, '+cuda', 'FTK_USE_CUDA') self.add_cmake_option(args, '+gmp', 'FTK_USE_GMP') self.add_cmake_option(args, '+hdf5', 'FTK_USE_HDF5') self.add_cmake_option(args, '+mpi', 'FTK_USE_MPI') self.add_cmake_option(args, '+netcdf', 'FTK_USE_NETCDF') self.add_cmake_option(args, '+vtk', 'FTK_USE_VTK') return args
player1537-forks/spack
var/spack/repos/builtin/packages/py-mxfold2/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 PyMxfold2(PythonPackage): """MXfold2: RNA secondary structure prediction using deep learning with thermodynamic integration""" homepage = "https://github.com/keio-bioinformatics/mxfold2" url = "https://github.com/keio-bioinformatics/mxfold2/releases/download/v0.1.1/mxfold2-0.1.1.tar.gz" maintainers = ['dorton21'] version('0.1.1', sha256='9f39c6ff4138212d1ad2639005f5c05ffb4df0f7e22f5e7ad49466a05aa047e5') depends_on('python@3.7:', type=('build', 'run')) depends_on('py-torch@1.7:~valgrind', type=('build', 'run')) depends_on('py-torchvision', type=('build', 'run')) depends_on('py-wheel@0.35.1:0.36.0', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-setuptools-cpp', type='build') depends_on('cmake', type='build')
player1537-forks/spack
lib/spack/spack/cmd/resource.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 __future__ import print_function import os import llnl.util.tty as tty import llnl.util.tty.color as color import spack.repo description = "list downloadable resources (tarballs, repos, patches, etc.)" section = "basic" level = "long" def setup_parser(subparser): sp = subparser.add_subparsers( metavar='SUBCOMMAND', dest='resource_command') list_parser = sp.add_parser('list', help=resource_list.__doc__) list_parser.add_argument('--only-hashes', action='store_true', help='only print sha256 hashes of resources') show_parser = sp.add_parser('show', help=resource_show.__doc__) show_parser.add_argument('hash', action='store') def _show_patch(sha256): """Show a record from the patch index.""" patches = spack.repo.path.patch_index.index data = patches.get(sha256) if not data: candidates = [k for k in patches if k.startswith(sha256)] if not candidates: tty.die('no such resource: %s' % sha256) elif len(candidates) > 1: tty.die('%s: ambiguous hash prefix. Options are:', *candidates) sha256 = candidates[0] data = patches.get(sha256) color.cprint('@c{%s}' % sha256) for package, rec in data.items(): owner = rec['owner'] if 'relative_path' in rec: pkg_dir = spack.repo.get(owner).package_dir path = os.path.join(pkg_dir, rec['relative_path']) print(" path: %s" % path) else: print(" url: %s" % rec['url']) print(" applies to: %s" % package) if owner != package: print(" patched by: %s" % owner) def resource_list(args): """list all resources known to spack (currently just patches)""" patches = spack.repo.path.patch_index.index for sha256 in patches: if args.only_hashes: print(sha256) else: _show_patch(sha256) def resource_show(args): """show a resource, identified by its checksum""" _show_patch(args.hash) def resource(parser, args): action = { 'list': resource_list, 'show': resource_show } action[args.resource_command](args)
player1537-forks/spack
var/spack/repos/builtin/packages/zookeeper/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 Zookeeper(Package): """ Apache ZooKeeper is an effort to develop and maintain an open-source server which enables highly reliable distributed coordination. """ homepage = "https://archive.apache.org" url = "https://archive.apache.org/dist/zookeeper/zookeeper-3.4.11/zookeeper-3.4.11.tar.gz" version('3.4.11', sha256='f6bd68a1c8f7c13ea4c2c99f13082d0d71ac464ffaf3bf7a365879ab6ad10e84') def install(self, spec, prefix): install_tree('.', prefix)
player1537-forks/spack
lib/spack/spack/test/build_system_guess.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.cmd.create import spack.stage import spack.util.executable @pytest.fixture( scope='function', params=[ ('configure', 'autotools'), ('CMakeLists.txt', 'cmake'), ('project.pro', 'qmake'), ('pom.xml', 'maven'), ('SConstruct', 'scons'), ('waf', 'waf'), ('setup.py', 'python'), ('NAMESPACE', 'r'), ('WORKSPACE', 'bazel'), ('Makefile.PL', 'perlmake'), ('Build.PL', 'perlbuild'), ('foo.gemspec', 'ruby'), ('Rakefile', 'ruby'), ('setup.rb', 'ruby'), ('GNUmakefile', 'makefile'), ('makefile', 'makefile'), ('Makefile', 'makefile'), ('meson.build', 'meson'), ('configure.py', 'sip'), ('foobar', 'generic') ] ) def url_and_build_system(request, tmpdir): """Sets up the resources to be pulled by the stage with the appropriate file name and returns their url along with the correct build-system guess """ tar = spack.util.executable.which('tar') orig_dir = tmpdir.chdir() filename, system = request.param tmpdir.ensure('archive', filename) tar('czf', 'archive.tar.gz', 'archive') url = 'file://' + str(tmpdir.join('archive.tar.gz')) yield url, system orig_dir.chdir() def test_build_systems(url_and_build_system): url, build_system = url_and_build_system with spack.stage.Stage(url) as stage: stage.fetch() guesser = spack.cmd.create.BuildSystemGuesser() guesser(stage, url) assert build_system == guesser.build_system
player1537-forks/spack
var/spack/repos/builtin/packages/py-liblas/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 PyLiblas(PythonPackage): """libLAS is a C/C++ library for reading and writing the very common LAS LiDAR format. """ homepage = "https://liblas.org/" pypi = "libLAS/libLAS-1.8.1.tar.gz" version('1.8.1', sha256='4d517670912989a0c7a33bb057167747e1013db6abdaa372f0775343ff0d1e16') depends_on('py-setuptools', type='build') depends_on('liblas') def setup_build_environment(self, env): env_var = 'LD_LIBRARY_PATH' if self.spec.satisfies('platform=darwin'): env_var = 'DYLD_FALLBACK_LIBRARY_PATH' env.prepend_path(env_var, self.spec['liblas'].libs.directories[0]) setup_run_environment = setup_build_environment
player1537-forks/spack
var/spack/repos/builtin/packages/py-psycopg2/package.py
<filename>var/spack/repos/builtin/packages/py-psycopg2/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 PyPsycopg2(PythonPackage): """Python interface to PostgreSQL databases""" homepage = "https://psycopg.org/" pypi = "psycopg2/psycopg2-2.8.6.tar.gz" version('2.9.1', sha256='de5303a6f1d0a7a34b9d40e4d3bef684ccc44a49bbe3eb85e3c0bffb4a131b7c') version('2.8.6', sha256='fb23f6c71107c37fd667cb4ea363ddeb936b348bbd6449278eb92c189699f543') version('2.7.5', sha256='eccf962d41ca46e6326b97c8fe0a6687b58dfc1a5f6540ed071ff1474cea749e') # https://www.psycopg.org/docs/install.html#prerequisites depends_on('python@3.6:3.9', type=('build', 'link', 'run'), when='@2.9:') depends_on('python@2.7:2.8,3.4:3.8', type=('build', 'link', 'run'), when='@2.8') depends_on('python@2.6:2.8,3.2:3.7', type=('build', 'link', 'run'), when='@:2.7') depends_on('py-setuptools', type='build') depends_on('postgresql@9.1:13', type=('build', 'link', 'run'), when='@2.9:') depends_on('postgresql@9.1:12', type=('build', 'link', 'run'), when='@:2.8')
player1537-forks/spack
var/spack/repos/builtin/packages/keepalived/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 Keepalived(AutotoolsPackage): """ Keepalived implements a set of checkers to dynamically and adaptively maintain and manage loadbalanced server pool according their health """ homepage = "https://www.keepalived.org" url = "https://www.keepalived.org/software/keepalived-1.2.0.tar.gz" version('2.0.19', sha256='0e2f8454765bc6a5fa26758bd9cec18aae42882843cdd24848aff0ae65ce4ca7') version('2.0.18', sha256='1423a2b1b8e541211029b9e1e1452e683bbe5f4b0b287eddd609aaf5ff024fd0') version('2.0.17', sha256='8965ffa2ffe243014f9c0245daa65f00a9930cf746edf33525d28a86f97497b4') version('2.0.16', sha256='f0c7dc86147a286913c1c2c918f557735016285d25779d4d2fce5732fcb888df') version('2.0.15', sha256='933ee01bc6346aa573453b998f87510d3cce4aba4537c9642b24e6dbfba5c6f4') version('2.0.14', sha256='1bf586e56ee38b47b82f2a27b27e04d0e5b23f1810db6a8e801bde9d3eb8617b') version('2.0.13', sha256='c7fb38e8a322fb898fb9f6d5d566827a30aa5a4cd1774f474bb4041c85bcbc46') version('2.0.12', sha256='fd50e433d784cfd948de5726752cf89ab7001f587fe10a5110c6c7cbda4b7b5e') version('2.0.11', sha256='a298b0c02a20959cfc365b62c14f45abd50d5e0595b2869f5bce10ec2392fa48') depends_on('openssl') def configure_args(self): args = ["--with-systemdsystemunitdir=" + self.spec['keepalived'].prefix.lib.systemd.system] return args
player1537-forks/spack
var/spack/repos/builtin/packages/py-cffi/package.py
<filename>var/spack/repos/builtin/packages/py-cffi/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) import sys from spack import * class PyCffi(PythonPackage): """Foreign Function Interface for Python calling C code""" homepage = "https://cffi.readthedocs.io/en/latest/" pypi = "cffi/cffi-1.13.0.tar.gz" version('1.15.0', sha256='920f0d66a896c2d99f0adbb391f990a84091179542c205fa53ce5787aff87954') version('1.14.6', sha256='c9a875ce9d7fe32887784274dd533c57909b7b1dcadcc128a2ac21331a9765dd') version('1.14.3', sha256='f92f789e4f9241cd262ad7a555ca2c648a98178a953af117ef7fad46aa1d5591') version('1.13.0', sha256='8fe230f612c18af1df6f348d02d682fe2c28ca0a6c3856c99599cdacae7cf226') version('1.12.2', sha256='e113878a446c6228669144ae8a56e268c91b7f1fafae927adc4879d9849e0ea7') version('1.11.5', sha256='e90f17980e6ab0f3c2f3730e56d1fe9bcba1891eeea58966e89d352492cc74f4') version('1.10.0', sha256='b3b02911eb1f6ada203b0763ba924234629b51586f72a21faacc638269f4ced5') version('1.1.2', sha256='390970b602708c91ddc73953bb6929e56291c18a4d80f360afa00fad8b6f3339') depends_on('pkgconfig', type='build') depends_on('py-setuptools', type='build') depends_on('py-pycparser', type=('build', 'run')) depends_on('libffi') def setup_build_environment(self, env): # This sets the compiler (and flags) that distutils will use # to create the final shared library. It will use the # compiler specified by the environment variable 'CC' for all # other compilation. We are setting 'LDSHARED' to the # spack compiler wrapper plus a few extra flags necessary for # building the shared library. if not sys.platform == 'darwin': env.set('LDSHARED', '{0} -shared -pthread'.format(spack_cc))
player1537-forks/spack
var/spack/repos/builtin/packages/r-iterators/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 RIterators(RPackage): """Provides Iterator Construct. Support for iterators, which allow a programmer to traverse through all the elements of a vector, list, or other collection of data.""" cran = "iterators" version('1.0.13', sha256='778e30e4c292da9f94d62acc637cf55273dae258199d847e62658f44840f11a4') version('1.0.12', sha256='96bf31d60ebd23aefae105d9b7790715e63327eec0deb2ddfb3d543994ea9f4b') version('1.0.9', sha256='de001e063805fdd124953b571ccb0ed2838c55e40cca2e9d283d8a90b0645e9b') version('1.0.8', sha256='ae4ea23385776eb0c06c992a3da6b0256a6c84558c1061034c5a1fbdd43d05b8') depends_on('r@2.5.0:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/cubist/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 Cubist(MakefilePackage): """Cubist is a powerful tool for generating rule-based models that balance the need for accurate prediction against the requirements of intelligibility. Cubist models generally give better results than those produced by simple techniques such as multivariate linear regression, while also being easier to understand than neural networks.""" homepage = "https://www.rulequest.com" url = "https://www.rulequest.com/GPL/Cubist.tgz" version('2.07', 'f2b20807cd3275e775c42263a4efd3f50df6e495a8b6dc8989ea2d41b973ac1a') def edit(self, spec, prefix): makefile = FileFilter('Makefile') makefile.filter("SHELL .*", "SHELL = /bin/bash") def install(self, spec, prefix): mkdirp(self.prefix.bin) install('cubist', prefix.bin) install('summary', prefix.bin) install('xval', prefix.bin)
player1537-forks/spack
var/spack/repos/builtin.mock/packages/external-common-openssl/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 ExternalCommonOpenssl(Package): homepage = "http://www.openssl.org" url = "http://www.openssl.org/source/openssl-1.1.1i.tar.gz" version('1.1.1i', 'be78e48cdfc1a7ad90efff146dce6cfe') depends_on('external-common-perl')
player1537-forks/spack
var/spack/repos/builtin/packages/py-pyrfr/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 PyPyrfr(PythonPackage): """This package serves as the python interface to RFR, an extensible C++ librarry for random forests.""" homepage = "https://automl.github.io/random_forest_run/installation.html" pypi = "pyrfr/pyrfr-0.8.2.tar.gz" version('0.8.2', sha256='c18a6e8f0bd971c1ea449b6dd0997a6ec1fe9a031883400bdcc95fa5ddd65975') depends_on('python@3:', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('swig')
player1537-forks/spack
var/spack/repos/builtin/packages/r-gsubfn/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 RGsubfn(RPackage): """Utilities for Strings and Function Arguments. gsubfn is like gsub but can take a replacement function or certain other objects instead of the replacement string. Matches and back references are input to the replacement function and replaced by the function output. gsubfn can be used to split strings based on content rather than delimiters and for quasi-perl-style string interpolation. The package also has facilities for translating formulas to functions and allowing such formulas in function calls instead of functions. This can be used with R functions such as apply, sapply, lapply, optim, integrate, xyplot, Filter and any other function that expects another function as an input argument or functions like cat or sql calls that may involve strings where substitution is desirable.""" cran = "gsubfn" version('0.7', sha256='89351df9e65722d2862f26a0a3985666de3c86e8400808ced8a6eb6e165a4602') version('0.6-6', sha256='bbc5d29bb48e836407f81880aeb368544a54a5513dacb3411c9838180723dda4') depends_on('r-proto', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/llvm-amdgpu/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack import * class LlvmAmdgpu(CMakePackage): """Toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.""" homepage = "https://github.com/RadeonOpenCompute/llvm-project" git = "https://github.com/RadeonOpenCompute/llvm-project.git" url = "https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-4.5.0.tar.gz" maintainers = ['srekolam', 'arjun-raj-kuppala', 'haampie'] version('master', branch='amd-stg-open') version('4.5.2', sha256='36a4f7dd961cf373b743fc679bdf622089d2a905de2cfd6fd6c9e7ff8d8ad61f') version('4.5.0', sha256='b71451bf26650ba06c0c5c4c7df70f13975151eaa673ef0cc77c1ab0000ccc97') version('4.3.1', sha256='b53c6b13be7d77dc93a7c62e4adbb414701e4e601e1af2d1e98da4ee07c9837f') version('4.3.0', sha256='1567d349cd3bcd2c217b3ecec2f70abccd5e9248bd2c3c9f21d4cdb44897fc87') version('4.2.0', sha256='751eca1d18595b565cfafa01c3cb43efb9107874865a60c80d6760ba83edb661') version('4.1.0', sha256='244e38d824fa7dfa8d0edf3c036b3c84e9c17a16791828e4b745a8d31eb374ae', deprecated=True) version('4.0.0', sha256='aa1f80f429fded465e86bcfaef72255da1af1c5c52d58a4c979bc2f6c2da5a69', deprecated=True) version('3.10.0', sha256='8262aff88c1ff6c4deb4da5a4f8cda1bf90668950e2b911f93f73edaee53b370', deprecated=True) version('3.9.0', sha256='1ff14b56d10c2c44d36c3c412b190d3d8cd1bb12cfc7cd58af004c16fd9987d1', deprecated=True) version('3.8.0', sha256='93a28464a4d0c1c9f4ba55e473e5d1cde4c5c0e6d087ec8a0a3aef1f5f5208e8', deprecated=True) version('3.7.0', sha256='3e2542ce54b91b5c841f33d542143e0e43eae95e8785731405af29f08ace725b', deprecated=True) version('3.5.0', sha256='4878fa85473b24d88edcc89938441edc85d2e8a785e567b7bd7ce274ecc2fd9c', deprecated=True) variant('build_type', default='Release', values=("Release", "Debug", "RelWithDebInfo"), description='CMake build type') variant('rocm-device-libs', default=True, description='Build ROCm device libs as external LLVM project instead of a standalone spack package.') variant('openmp', default=True, description='Enable OpenMP') variant( 'llvm_dylib', default=False, description='Build LLVM shared library, containing all ' 'components in a single shared library', ) variant( 'link_llvm_dylib', default=False, description='Link LLVM tools against the LLVM shared library', ) provides('libllvm@11', when='@3.5:3.8') provides('libllvm@12', when='@3.9:4.2') provides('libllvm@13', when='@4.3:') depends_on('cmake@3.4.3:', type='build', when='@:3.8') depends_on('cmake@3.13.4:', type='build', when='@3.9.0:') depends_on('python', type='build') depends_on('z3', type='link') depends_on('zlib', type='link') depends_on('ncurses+termlib', type='link') # openmp dependencies depends_on("perl-data-dumper", type=("build"), when='+openmp') depends_on("hwloc", when='+openmp') depends_on('libelf', type='link', when='+openmp') # Will likely only be fixed in LLVM 12 upstream patch('fix-system-zlib-ncurses.patch', when='@3.5.0:3.8.0') patch('fix-ncurses-3.9.0.patch', when='@3.9.0:4.0.0') # This is already fixed in upstream but not in 4.2.0 rocm release patch('fix-spack-detection-4.2.0.patch', when='@4.2.0:') conflicts('^cmake@3.19.0') root_cmakelists_dir = 'llvm' install_targets = ['clang-tidy', 'install'] # Add device libs sources so they can be an external LLVM project for d_version, d_shasum in [ ('4.5.2', '50e9e87ecd6b561cad0d471295d29f7220e195528e567fcabe2ec73838979f61'), ('4.5.0', '78412fb10ceb215952b5cc722ed08fa82501b5848d599dc00744ae1bdc196f77'), ('4.3.1', 'a7291813168e500bfa8aaa5d1dccf5250764ddfe27535def01b51eb5021d4592'), ('4.3.0', '055a67e63da6491c84cd45865500043553fb33c44d538313dd87040a6f3826f2'), ('4.2.0', '34a2ac39b9bb7cfa8175cbab05d30e7f3c06aaffce99eed5f79c616d0f910f5f'), ('4.1.0', 'f5f5aa6bfbd83ff80a968fa332f80220256447c4ccb71c36f1fbd2b4a8e9fc1b'), ('4.0.0', 'd0aa495f9b63f6d8cf8ac668f4dc61831d996e9ae3f15280052a37b9d7670d2a'), ('3.10.0', 'bca9291385d6bdc91a8b39a46f0fd816157d38abb1725ff5222e6a0daa0834cc'), ('3.9.0', 'c99f45dacf5967aef9a31e3731011b9c142446d4a12bac69774998976f2576d7'), ('3.8.0', 'e82cc9a8eb7d92de02cabb856583e28f17a05c8cf9c97aec5275608ef1a38574'), ('3.7.0', 'b3a114180bf184b3b829c356067bc6a98021d52c1c6f9db6bc57272ebafc5f1d'), ('3.5.0', 'dce3a4ba672c4a2da4c2260ee4dc96ff6dd51877f5e7e1993cb107372a35a378') ]: resource( name='rocm-device-libs', placement='rocm-device-libs', url='https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-{0}.tar.gz'.format(d_version), sha256=d_shasum, when='@{0} +rocm-device-libs'.format(d_version) ) resource( name='rocm-device-libs', placement='rocm-device-libs', git='https://github.com/RadeonOpenCompute/ROCm-Device-Libs.git', branch='amd-stg-open', when='@master +rocm-device-libs' ) def setup_dependent_build_environment(self, env, dependent_spec): # LLVM-amdgpu is always based off of a pre-release version of LLVM. # Set the version suffix to denote this fact for downstream projects. env.append_flags('CXXFLAGS', '-DLLVM_VERSION_SUFFIX=git') env.append_flags('CFLAGS', '-DLLVM_VERSION_SUFFIX=git') def cmake_args(self): llvm_projects = [ 'clang', 'lld', 'clang-tools-extra', 'compiler-rt' ] args = [] if self.spec.satisfies('@4.3.0:4.5.0'): llvm_projects.append('libcxx') llvm_projects.append('libcxxabi') args = [ self.define('LIBCXX_ENABLE_SHARED', 'OFF'), self.define('LIBCXX_ENABLE_STATIC', 'ON'), self.define('LIBCXX_INSTALL_LIBRARY', 'OFF'), self.define('LIBCXX_INSTALL_HEADERS', 'OFF'), self.define('LIBCXXABI_ENABLE_SHARED', 'OFF'), self.define('LIBCXXABI_ENABLE_STATIC', 'ON'), self.define('LIBCXXABI_INSTALL_STATIC_LIBRARY', 'OFF'), self.define('LLVM_ENABLE_Z3_SOLVER', 'OFF'), self.define('LLLVM_ENABLE_ZLIB', 'ON'), self.define('CLANG_DEFAULT_LINKER', 'lld'), ] if '+openmp' in self.spec: llvm_projects.append('openmp') args.extend([self.define('LLVM_ENABLE_PROJECTS', ';'.join(llvm_projects))]) if self.spec.satisfies('@4.5.0:'): args.extend([self.define('PACKAGE_VENDOR', 'AMD')]) # Enable rocm-device-libs as a external project if '+rocm-device-libs' in self.spec: dir = os.path.join(self.stage.source_path, 'rocm-device-libs') args.extend([ self.define('LLVM_EXTERNAL_PROJECTS', 'device-libs'), self.define('LLVM_EXTERNAL_DEVICE_LIBS_SOURCE_DIR', dir) ]) if '+llvm_dylib' in self.spec: args.append("-DLLVM_BUILD_LLVM_DYLIB:Bool=ON") if '+link_llvm_dylib' in self.spec: args.append("-DLLVM_LINK_LLVM_DYLIB:Bool=ON") # Get the GCC prefix for LLVM. if self.compiler.name == "gcc": compiler = Executable(self.compiler.cc) gcc_output = compiler('-print-search-dirs', output=str, error=str) gcc_prefix = "" for line in gcc_output.splitlines(): if line.startswith("install:"): # Get path and strip any whitespace # (causes oddity with ancestor) gcc_prefix = line.split(":")[1].strip() gcc_prefix = ancestor(gcc_prefix, 4) break args.append(self.define('GCC_INSTALL_PREFIX', gcc_prefix)) return args @run_after("install") def post_install(self): # TODO:Enabling LLVM_ENABLE_RUNTIMES for libcxx,libcxxabi did not build. # bootstraping the libcxx with the just built clang if self.spec.satisfies('@4.5.0:'): spec = self.spec define = CMakePackage.define libcxxdir = "build-bootstrapped-libcxx" with working_dir(libcxxdir, create=True): cmake_args = [ self.stage.source_path + "/libcxx", define("CMAKE_C_COMPILER", spec.prefix.bin + "/clang"), define("CMAKE_CXX_COMPILER", spec.prefix.bin + "/clang++"), define("CMAKE_INSTALL_PREFIX", spec.prefix), ] cmake_args.extend(self.cmake_args()) cmake(*cmake_args) make()
player1537-forks/spack
lib/spack/spack/test/provider_index.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) """Tests for provider index cache files. Tests assume that mock packages provide this:: {'blas': { blas: set([netlib-blas, openblas, openblas-with-lapack])}, 'lapack': {lapack: set([netlib-lapack, openblas-with-lapack])}, 'mpi': {mpi@:1: set([mpich@:1]), mpi@:2.0: set([mpich2]), mpi@:2.1: set([mpich2@1.1:]), mpi@:2.2: set([mpich2@1.2:]), mpi@:3: set([mpich@3:]), mpi@:10.0: set([zmpi])}, 'stuff': {stuff: set([externalvirtual])}} """ from six import StringIO import spack.repo from spack.provider_index import ProviderIndex from spack.spec import Spec def test_provider_index_round_trip(mock_packages): p = ProviderIndex(spack.repo.all_package_names()) ostream = StringIO() p.to_json(ostream) istream = StringIO(ostream.getvalue()) q = ProviderIndex.from_json(istream) assert p == q def test_providers_for_simple(mock_packages): p = ProviderIndex(spack.repo.all_package_names()) blas_providers = p.providers_for('blas') assert Spec('netlib-blas') in blas_providers assert Spec('openblas') in blas_providers assert Spec('openblas-with-lapack') in blas_providers lapack_providers = p.providers_for('lapack') assert Spec('netlib-lapack') in lapack_providers assert Spec('openblas-with-lapack') in lapack_providers def test_mpi_providers(mock_packages): p = ProviderIndex(spack.repo.all_package_names()) mpi_2_providers = p.providers_for('mpi@2') assert Spec('mpich2') in mpi_2_providers assert Spec('mpich@3:') in mpi_2_providers mpi_3_providers = p.providers_for('mpi@3') assert Spec('mpich2') not in mpi_3_providers assert Spec('mpich@3:') in mpi_3_providers assert Spec('zmpi') in mpi_3_providers def test_equal(mock_packages): p = ProviderIndex(spack.repo.all_package_names()) q = ProviderIndex(spack.repo.all_package_names()) assert p == q def test_copy(mock_packages): p = ProviderIndex(spack.repo.all_package_names()) q = p.copy() assert p == q
player1537-forks/spack
var/spack/repos/builtin/packages/nim/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os.path class Nim(Package): """Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. """ homepage = "https://nim-lang.org/" url = "https://nim-lang.org/download/nim-1.4.4.tar.xz" version('1.4.4', sha256='6d73729def143f72fc2491ca937a9cab86d2a8243bd845a5d1403169ad20660e') version('1.4.2', sha256='03a47583777dd81380a3407aa6a788c9aa8a67df4821025770c9ac4186291161') version('0.20.0', sha256='51f479b831e87b9539f7264082bb6a64641802b54d2691b3c6e68ac7e2699a90', deprecated=True) version('0.19.6', sha256='a09f0c58d29392434d4fd6d15d4059cf7e013ae948413cb9233b8233d67e3a29', deprecated=True) version('0.19.9', sha256='154c440cb8f27da20b3d6b1a8cc03f63305073fb995bbf26ec9bc6ad891ce276', url='https://github.com/nim-lang/nightlies/releases/download/2019-06-02-devel-1255b3c/nim-0.19.9-linux_x64.tar.xz', deprecated=True) depends_on('pcre') depends_on('openssl') def patch(self): install_sh_path = os.path.join(self.stage.source_path, 'install.sh') filter_file("1/nim", "1", install_sh_path) def install(self, spec, prefix): bash = which('bash') bash('./build.sh') nim = Executable(os.path.join('bin', 'nim')) nim('c', 'koch') koch = Executable('./koch') koch('boot', '-d:release') koch('tools') bash('./install.sh', prefix)
player1537-forks/spack
var/spack/repos/builtin/packages/r-rcppgsl/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 RRcppgsl(RPackage): """'Rcpp' Integration for 'GNU GSL' Vectors and Matrices. 'Rcpp' integration for 'GNU GSL' vectors and matrices The 'GNU Scientific Library' (or 'GSL') is a collection of numerical routines for scientific computing. It is particularly useful for C and C++ programs as it provides a standard C interface to a wide range of mathematical routines. There are over 1000 functions in total with an extensive test suite. The 'RcppGSL' package provides an easy-to-use interface between 'GSL' data structures and R using concepts from 'Rcpp' which is itself a package that eases the interfaces between R and C++. This package also serves as a prime example of how to build a package that uses 'Rcpp' to connect to another third-party library. The 'autoconf' script, 'inline' plugin and example package can all be used as a stanza to write a similar package against another library.""" cran = "RcppGSL" version('0.3.10', sha256='8612087da02fb791f427fed310c23d0482a8eb60fb089119f018878143f95451') depends_on('r-rcpp@0.11.0:', type=('build', 'run')) depends_on('gsl')
player1537-forks/spack
var/spack/repos/builtin/packages/berkeleygw/package.py
<filename>var/spack/repos/builtin/packages/berkeleygw/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 Berkeleygw(MakefilePackage): """BerkeleyGW is a many-body perturbation theory code for excited states, using the GW method and the GW plus Bethe-Salpeter equation (GW-BSE) method to solve respectively for quasiparticle excitations and optical properties of materials.""" homepage = "https://berkeleygw.org" maintainers = ['migueldiascosta'] version('3.0.1', '7d8c2cc1ee679afb48efbdd676689d4d537226b50e13a049dbcb052aaaf3654f', url='https://berkeley.box.com/shared/static/m1dgnhiemo47lhxczrn6si71bwxoxor8.gz', expand=False) version('3.0', 'ab411acead5e979fd42b8d298dbb0a12ce152e7be9eee0bb87e9e5a06a638e2a', url='https://berkeley.box.com/shared/static/lp6hj4kxr459l5a6t05qfuzl2ucyo03q.gz', expand=False) version('2.1', '31f3b643dd937350c3866338321d675d4a1b1f54c730b43ad74ae67e75a9e6f2', url='https://berkeley.box.com/shared/static/ze3azi5vlyw7hpwvl9i5f82kaiid6g0x.gz', expand=False) variant('mpi', default=True, description='Builds with MPI support') variant('elpa', default=True, description='Build with ELPA support') variant('python', default=False, description='Build with Python support') variant('openmp', default=True, description='Build with OpenMP support') variant('scalapack', default=True, description='Build with ScaLAPACK support') variant('hdf5', default=True, description='Builds with HDF5 support') variant('debug', default=False, description='Builds with DEBUG flag') variant('verbose', default=False, description='Builds with VERBOSE flag') depends_on('blas') depends_on('lapack') depends_on('scalapack') depends_on('mpi', when='+mpi') depends_on('hdf5+fortran+hl', when='+hdf5~mpi') depends_on('hdf5+fortran+hl+mpi', when='+hdf5+mpi') depends_on('scalapack', when='+scalapack+mpi') depends_on('elpa+openmp', when='+elpa+openmp') depends_on('elpa~openmp', when='+elpa~openmp') depends_on('fftw-api@3+openmp', when='+openmp') depends_on('fftw-api@3~openmp', when='~openmp') depends_on('python@:2', type=('build', 'run'), when='+python') depends_on('py-numpy@:1.16', type=('build', 'run'), when='+python') depends_on('py-setuptools@:44', type=('build', 'run'), when='+python') depends_on('py-h5py@:2', type=('build', 'run'), when='+hdf5+python') depends_on('perl', type='test') conflicts( '+scalapack', when='~mpi', msg='scalapack is a parallel library and needs MPI support' ) conflicts( '+elpa', when='~mpi', msg='elpa is a parallel library and needs MPI support' ) # Force openmp propagation on some providers of blas / fftw-api with when('+openmp'): depends_on('fftw+openmp', when='^fftw') depends_on('amdfftw+openmp', when='^amdfftw') depends_on('openblas threads=openmp', when='^openblas') depends_on('amdblis threads=openmp', when='^amdblis') parallel = False def edit(self, spec, prefix): # archive is a tar file, despite the .gz expension tar = which('tar') tar('-x', '-f', self.stage.archive_file, '--strip-components=1') # get generic arch.mk template copy(join_path(self.stage.source_path, 'config', 'generic.mpi.linux.mk'), 'arch.mk') if self.version == Version('2.1'): # don't try to install missing file filter_file('install manual.html', '#install manual.html', 'Makefile') # don't rebuild in the install and test steps filter_file('install: all', 'install:', 'Makefile') filter_file('check: all', 'check:', 'Makefile') # use parallelization in tests filter_file(r'cd testsuite \&\& \$\(MAKE\) check$', 'cd testsuite && $(MAKE) check-parallel', 'Makefile') # remove stack ulimit in order to run openmp tests filter_file(r'function run_testsuite\(\) {', 'function run_testsuite() {\nulimit -s unlimited', 'testsuite/run_testsuite.sh') def setup_build_environment(self, env): if self.run_tests: env.set('OMP_NUM_THREADS', '2') env.set('BGW_TEST_MPI_NPROCS', '2') def build(self, spec, prefix): buildopts = [] paraflags = [] if '+mpi' in spec: paraflags.append('-DMPI') if '+openmp' in spec: paraflags.append('-DOMP') spec.compiler_flags['fflags'].append(self.compiler.openmp_flag) buildopts.append('C_PARAFLAG=-DPARA') buildopts.append('PARAFLAG=%s' % ' '.join(paraflags)) debugflag = "" if '+debug' in spec: debugflag += "-DDEBUG " if '+verbose' in spec: debugflag += "-DVERBOSE " buildopts.append('DEBUGFLAG=%s' % debugflag) buildopts.append('LINK=%s' % spec['mpi'].mpifc) buildopts.append('C_LINK=%s' % spec['mpi'].mpicxx) buildopts.append('FOPTS=%s' % ' '.join(spec.compiler_flags['fflags'])) buildopts.append('C_OPTS=%s' % ' '.join(spec.compiler_flags['cflags'])) mathflags = [] mathflags.append('-DUSEFFTW3') buildopts.append('FFTWINCLUDE=%s' % spec['fftw-api'].prefix.include) fftwspec = spec['fftw-api:openmp' if '+openmp' in spec else 'fftw-api'] buildopts.append('FFTWLIB=%s' % fftwspec.libs.ld_flags) buildopts.append('LAPACKLIB=%s' % spec['lapack'].libs.ld_flags) if '+scalapack' in spec: mathflags.append('-DUSESCALAPACK') buildopts.append('SCALAPACKLIB=%s' % spec['scalapack'].libs.ld_flags) if spec.satisfies('%intel'): buildopts.append('COMPFLAG=-DINTEL') buildopts.append('MOD_OPT=-module ') buildopts.append('F90free=%s -free' % spec['mpi'].mpifc) buildopts.append('FCPP=cpp -C -P -ffreestanding') buildopts.append('C_COMP=%s' % spec['mpi'].mpicc) buildopts.append('CC_COMP=%s' % spec['mpi'].mpicxx) buildopts.append('BLACSDIR=%s' % spec['scalapack'].libs) buildopts.append('BLACS=%s' % spec['scalapack'].libs.ld_flags) buildopts.append('FOPTS=%s' % ' '.join(spec.compiler_flags['fflags'])) elif spec.satisfies('%gcc'): c_flags = '-std=c99' cxx_flags = '-std=c++0x' f90_flags = "-ffree-form -ffree-line-length-none -fno-second-underscore" if spec.satisfies('%gcc@10:'): c_flags += ' -fcommon' cxx_flags += ' -fcommon' f90_flags += ' -fallow-argument-mismatch' buildopts.append('COMPFLAG=-DGNU') buildopts.append('MOD_OPT=-J ') buildopts.append('F90free=%s %s' % (spec['mpi'].mpifc, f90_flags)) buildopts.append('FCPP=cpp -C -nostdinc') buildopts.append('C_COMP=%s %s' % (spec['mpi'].mpicc, c_flags)) buildopts.append('CC_COMP=%s %s' % (spec['mpi'].mpicxx, cxx_flags)) buildopts.append('FOPTS=%s' % ' '.join(spec.compiler_flags['fflags'])) elif spec.satisfies('%fj'): c_flags = '-std=c99' cxx_flags = '-std=c++0x' f90_flags = "-Free" buildopts.append('COMPFLAG=') buildopts.append('MOD_OPT=-module ') buildopts.append('F90free=%s %s' % (spec['mpi'].mpifc, f90_flags)) buildopts.append('FCPP=cpp -C -nostdinc') buildopts.append('C_COMP=%s %s' % (spec['mpi'].mpicc, c_flags)) buildopts.append('CC_COMP=%s %s' % (spec['mpi'].mpicxx, cxx_flags)) buildopts.append('FOPTS=-Kfast -Knotemparraystack %s' % ' '.join(spec.compiler_flags['fflags'])) else: raise InstallError("Spack does not yet have support for building " "BerkeleyGW with compiler %s" % spec.compiler) if '+hdf5' in spec: mathflags.append('-DHDF5') buildopts.append('HDF5INCLUDE=%s' % spec['hdf5'].prefix.include) buildopts.append('HDF5LIB=%s' % spec['hdf5:hl,fortran'].libs.ld_flags) if '+elpa' in spec: mathflags.append('-DUSEELPA') elpa = spec['elpa'] if '+openmp' in spec: elpa_suffix = '_openmp' else: elpa_suffix = '' elpa_incdir = elpa.headers.directories[0] elpa_libs = join_path(elpa.libs.directories[0], 'libelpa%s.%s' % (elpa_suffix, dso_suffix)) buildopts.append('ELPALIB=%s' % elpa_libs) buildopts.append('ELPAINCLUDE=%s' % join_path(elpa_incdir, 'modules')) buildopts.append('MATHFLAG=%s' % ' '.join(mathflags)) make('all-flavors', *buildopts) def install(self, spec, prefix): make('install', 'INSTDIR=%s' % prefix)
player1537-forks/spack
var/spack/repos/builtin/packages/form/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 Form(AutotoolsPackage): """FORM is a Symbolic Manipulation System.""" homepage = "https://www.nikhef.nl/~form/" url = "https://github.com/vermaseren/form/releases/download/v4.2.1/form-4.2.1.tar.gz" maintainers = ['iarspider', 'tueda'] version('4.2.1', sha256='f2722d6d4ccb034e01cf786d55342e1c21ff55b182a4825adf05d50702ab1a28') version('4.1-20131025', sha256='fb3470937d66ed5cb1af896b15058836d2c805d767adac1b9073ed2df731cbe9', url='https://github.com/vermaseren/form/releases/download/v4.1-20131025/form-4.1.tar.gz') depends_on('gmp', type='link', when='+gmp') depends_on('zlib', type='link', when='+zlib') depends_on('mpi', type='link', when='+parform') variant('gmp', default=True, description='Use GMP for long integer arithmetic') variant('zlib', default=True, description='Use zlib for compression') variant('scalar', default=True, description='Build scalar version (form)') variant('threaded', default=True, description='Build threaded version (tform)') variant('parform', default=False, description='Build parallel version using MPI (parform)') def configure_args(self): args = [] args += self.with_or_without('gmp', 'prefix') args += self.with_or_without('zlib', 'prefix') args += self.enable_or_disable('scalar') args += self.enable_or_disable('threaded') args += self.enable_or_disable('parform') return args
player1537-forks/spack
var/spack/repos/builtin/packages/r-fpcompare/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 RFpcompare(RPackage): """Reliable Comparison of Floating Point Numbers. Comparisons of floating point numbers are problematic due to errors associated with the binary representation of decimal numbers. Despite being aware of these problems, people still use numerical methods that fail to account for these and other rounding errors (this pitfall is the first to be highlighted in Circle 1 of Burns (2012) 'The R Inferno' <https://www.burns-stat.com/pages/Tutor/R_inferno.pdf>). This package provides new relational operators useful for performing floating point number comparisons with a set tolerance.""" cran = "fpCompare" maintainers = ['dorton21'] version('0.2.3', sha256='f89be3568544a3a44e4f01b5050ed03705805308ec1aa4add9a5e1b5b328dbdf') depends_on('r@3.3:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-azure-cli-command-modules-nspkg/package.py
<filename>var/spack/repos/builtin/packages/py-azure-cli-command-modules-nspkg/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 PyAzureCliCommandModulesNspkg(PythonPackage): """Microsoft Azure CLI Command Modules Namespace Package.""" homepage = "https://github.com/Azure/azure-cli" pypi = "azure-cli-command-modules-nspkg/azure-cli-command-modules-nspkg-2.0.3.tar.gz" version('2.0.3', sha256='4bd62bf5facb92dd4f89080e75eaee2ea1d3dd4e57a3d2a760ce501cf53f4e7d') depends_on('py-setuptools', type='build') depends_on('py-azure-cli-nspkg@3.0.0:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/ruby-hpricot/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 RubyHpricot(RubyPackage): """A swift, liberal HTML parser with a fantastic library. NOTE: ruby-hpricot is no longer maintained, consider ruby-nokogiri instead. """ homepage = "https://github.com/hpricot/hpricot" url = "https://github.com/hpricot/hpricot/archive/0.8.6.tar.gz" version('0.8.6', sha256='792f63cebe2f2b02058974755b4c8a3aef52e5daf37f779a34885d5ff2876017')
player1537-forks/spack
lib/spack/spack/test/build_environment.py
<filename>lib/spack/spack/test/build_environment.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 platform import pytest from llnl.util.filesystem import HeaderList, LibraryList import spack.build_environment import spack.config import spack.spec import spack.util.spack_yaml as syaml from spack.build_environment import ( _static_to_shared_library, determine_number_of_jobs, dso_suffix, ) from spack.paths import build_env_path from spack.util.environment import EnvironmentModifications from spack.util.executable import Executable @pytest.fixture def build_environment(working_env): cc = Executable(os.path.join(build_env_path, "cc")) cxx = Executable(os.path.join(build_env_path, "c++")) fc = Executable(os.path.join(build_env_path, "fc")) realcc = "/bin/mycc" prefix = "/spack-test-prefix" os.environ['SPACK_CC'] = realcc os.environ['SPACK_CXX'] = realcc os.environ['SPACK_FC'] = realcc os.environ['SPACK_PREFIX'] = prefix os.environ['SPACK_ENV_PATH'] = "test" os.environ['SPACK_DEBUG_LOG_DIR'] = "." os.environ['SPACK_DEBUG_LOG_ID'] = "foo-hashabc" os.environ['SPACK_COMPILER_SPEC'] = "gcc@4.4.7" os.environ['SPACK_SHORT_SPEC'] = ( "foo@1.2 arch=linux-rhel6-x86_64 /hashabc") os.environ['SPACK_CC_RPATH_ARG'] = "-Wl,-rpath," os.environ['SPACK_CXX_RPATH_ARG'] = "-Wl,-rpath," os.environ['SPACK_F77_RPATH_ARG'] = "-Wl,-rpath," os.environ['SPACK_FC_RPATH_ARG'] = "-Wl,-rpath," os.environ['SPACK_LINKER_ARG'] = '-Wl,' os.environ['SPACK_DTAGS_TO_ADD'] = '--disable-new-dtags' os.environ['SPACK_DTAGS_TO_STRIP'] = '--enable-new-dtags' os.environ['SPACK_SYSTEM_DIRS'] = '/usr/include /usr/lib' os.environ['SPACK_TARGET_ARGS'] = '' if 'SPACK_DEPENDENCIES' in os.environ: del os.environ['SPACK_DEPENDENCIES'] yield {'cc': cc, 'cxx': cxx, 'fc': fc} for name in ('SPACK_CC', 'SPACK_CXX', 'SPACK_FC', 'SPACK_PREFIX', 'SPACK_ENV_PATH', 'SPACK_DEBUG_LOG_DIR', 'SPACK_COMPILER_SPEC', 'SPACK_SHORT_SPEC', 'SPACK_CC_RPATH_ARG', 'SPACK_CXX_RPATH_ARG', 'SPACK_F77_RPATH_ARG', 'SPACK_FC_RPATH_ARG', 'SPACK_TARGET_ARGS'): del os.environ[name] @pytest.fixture def ensure_env_variables(config, mock_packages, monkeypatch, working_env): """Returns a function that takes a dictionary and updates os.environ for the test lifetime accordingly. Plugs-in mock config and repo. """ def _ensure(env_mods): for name, value in env_mods.items(): monkeypatch.setenv(name, value) return _ensure def test_static_to_shared_library(build_environment): os.environ['SPACK_TEST_COMMAND'] = 'dump-args' expected = { 'linux': ('/bin/mycc -shared' ' -Wl,--disable-new-dtags' ' -Wl,-soname,{2} -Wl,--whole-archive {0}' ' -Wl,--no-whole-archive -o {1}'), 'darwin': ('/bin/mycc -dynamiclib' ' -Wl,--disable-new-dtags' ' -install_name {1} -Wl,-force_load,{0} -o {1}') } static_lib = '/spack/libfoo.a' for arch in ('linux', 'darwin'): for shared_lib in (None, '/spack/libbar.so'): output = _static_to_shared_library(arch, build_environment['cc'], static_lib, shared_lib, compiler_output=str).strip() if not shared_lib: shared_lib = '{0}.{1}'.format( os.path.splitext(static_lib)[0], dso_suffix) assert set(output.split()) == set(expected[arch].format( static_lib, shared_lib, os.path.basename(shared_lib)).split()) @pytest.mark.regression('8345') @pytest.mark.usefixtures('config', 'mock_packages') def test_cc_not_changed_by_modules(monkeypatch, working_env): s = spack.spec.Spec('cmake') s.concretize() pkg = s.package def _set_wrong_cc(x): os.environ['CC'] = 'NOT_THIS_PLEASE' os.environ['ANOTHER_VAR'] = 'THIS_IS_SET' monkeypatch.setattr( spack.build_environment, 'load_module', _set_wrong_cc ) monkeypatch.setattr( pkg.compiler, 'modules', ['some_module'] ) spack.build_environment.setup_package(pkg, False) assert os.environ['CC'] != 'NOT_THIS_PLEASE' assert os.environ['ANOTHER_VAR'] == 'THIS_IS_SET' @pytest.mark.parametrize('initial,modifications,expected', [ # Set and unset variables ({'SOME_VAR_STR': '', 'SOME_VAR_NUM': '0'}, {'set': {'SOME_VAR_STR': 'SOME_STR', 'SOME_VAR_NUM': 1}}, {'SOME_VAR_STR': 'SOME_STR', 'SOME_VAR_NUM': '1'}), ({'SOME_VAR_STR': ''}, {'unset': ['SOME_VAR_STR']}, {'SOME_VAR_STR': None}), ({}, # Set a variable that was not defined already {'set': {'SOME_VAR_STR': 'SOME_STR'}}, {'SOME_VAR_STR': 'SOME_STR'}), # Append and prepend to the same variable ({'EMPTY_PATH_LIST': '/path/middle'}, {'prepend_path': {'EMPTY_PATH_LIST': '/path/first'}, 'append_path': {'EMPTY_PATH_LIST': '/path/last'}}, {'EMPTY_PATH_LIST': '/path/first:/path/middle:/path/last'}), # Append and prepend from empty variables ({'EMPTY_PATH_LIST': '', 'SOME_VAR_STR': ''}, {'prepend_path': {'EMPTY_PATH_LIST': '/path/first'}, 'append_path': {'SOME_VAR_STR': '/path/last'}}, {'EMPTY_PATH_LIST': '/path/first', 'SOME_VAR_STR': '/path/last'}), ({}, # Same as before but on variables that were not defined {'prepend_path': {'EMPTY_PATH_LIST': '/path/first'}, 'append_path': {'SOME_VAR_STR': '/path/last'}}, {'EMPTY_PATH_LIST': '/path/first', 'SOME_VAR_STR': '/path/last'}), # Remove a path from a list ({'EMPTY_PATH_LIST': '/path/first:/path/middle:/path/last'}, {'remove_path': {'EMPTY_PATH_LIST': '/path/middle'}}, {'EMPTY_PATH_LIST': '/path/first:/path/last'}), ({'EMPTY_PATH_LIST': '/only/path'}, {'remove_path': {'EMPTY_PATH_LIST': '/only/path'}}, {'EMPTY_PATH_LIST': ''}), ]) def test_compiler_config_modifications( initial, modifications, expected, ensure_env_variables, monkeypatch ): # Set the environment as per prerequisites ensure_env_variables(initial) # Monkeypatch a pkg.compiler.environment with the required modifications pkg = spack.spec.Spec('cmake').concretized().package monkeypatch.setattr(pkg.compiler, 'environment', modifications) # Trigger the modifications spack.build_environment.setup_package(pkg, False) # Check they were applied for name, value in expected.items(): if value is not None: assert os.environ[name] == value continue assert name not in os.environ @pytest.mark.regression('9107') def test_spack_paths_before_module_paths( config, mock_packages, monkeypatch, working_env): s = spack.spec.Spec('cmake') s.concretize() pkg = s.package module_path = '/path/to/module' def _set_wrong_cc(x): os.environ['PATH'] = module_path + ':' + os.environ['PATH'] monkeypatch.setattr( spack.build_environment, 'load_module', _set_wrong_cc ) monkeypatch.setattr( pkg.compiler, 'modules', ['some_module'] ) spack.build_environment.setup_package(pkg, False) spack_path = os.path.join(spack.paths.prefix, 'lib/spack/env') paths = os.environ['PATH'].split(':') assert paths.index(spack_path) < paths.index(module_path) def test_package_inheritance_module_setup(config, mock_packages, working_env): s = spack.spec.Spec('multimodule-inheritance') s.concretize() pkg = s.package spack.build_environment.setup_package(pkg, False) os.environ['TEST_MODULE_VAR'] = 'failed' assert pkg.use_module_variable() == 'test_module_variable' assert os.environ['TEST_MODULE_VAR'] == 'test_module_variable' def test_wrapper_variables( config, mock_packages, working_env, monkeypatch, installation_dir_with_headers ): """Check that build_environment supplies the needed library/include directories via the SPACK_LINK_DIRS and SPACK_INCLUDE_DIRS environment variables. """ # https://github.com/spack/spack/issues/13969 cuda_headers = HeaderList([ 'prefix/include/cuda_runtime.h', 'prefix/include/cuda/atomic', 'prefix/include/cuda/std/detail/libcxx/include/ctype.h']) cuda_include_dirs = cuda_headers.directories assert(os.path.join('prefix', 'include') in cuda_include_dirs) assert(os.path.join('prefix', 'include', 'cuda', 'std', 'detail', 'libcxx', 'include') not in cuda_include_dirs) root = spack.spec.Spec('dt-diamond') root.concretize() for s in root.traverse(): s.prefix = '/{0}-prefix/'.format(s.name) dep_pkg = root['dt-diamond-left'].package dep_lib_paths = ['/test/path/to/ex1.so', '/test/path/to/subdir/ex2.so'] dep_lib_dirs = ['/test/path/to', '/test/path/to/subdir'] dep_libs = LibraryList(dep_lib_paths) dep2_pkg = root['dt-diamond-right'].package dep2_pkg.spec.prefix = str(installation_dir_with_headers) setattr(dep_pkg, 'libs', dep_libs) try: pkg = root.package env_mods = EnvironmentModifications() spack.build_environment.set_wrapper_variables( pkg, env_mods) env_mods.apply_modifications() def normpaths(paths): return list(os.path.normpath(p) for p in paths) link_dir_var = os.environ['SPACK_LINK_DIRS'] assert ( normpaths(link_dir_var.split(':')) == normpaths(dep_lib_dirs)) root_libdirs = ['/dt-diamond-prefix/lib', '/dt-diamond-prefix/lib64'] rpath_dir_var = os.environ['SPACK_RPATH_DIRS'] # The 'lib' and 'lib64' subdirectories of the root package prefix # should always be rpathed and should be the first rpaths assert ( normpaths(rpath_dir_var.split(':')) == normpaths(root_libdirs + dep_lib_dirs)) header_dir_var = os.environ['SPACK_INCLUDE_DIRS'] # The default implementation looks for header files only # in <prefix>/include and subdirectories prefix = str(installation_dir_with_headers) include_dirs = normpaths(header_dir_var.split(':')) assert os.path.join(prefix, 'include') in include_dirs assert os.path.join(prefix, 'include', 'boost') not in include_dirs assert os.path.join(prefix, 'path', 'to') not in include_dirs assert os.path.join(prefix, 'path', 'to', 'subdir') not in include_dirs finally: delattr(dep_pkg, 'libs') def test_external_prefixes_last(mutable_config, mock_packages, working_env, monkeypatch): # Sanity check: under normal circumstances paths associated with # dt-diamond-left would appear first. We'll mark it as external in # the test to check if the associated paths are placed last. assert 'dt-diamond-left' < 'dt-diamond-right' cfg_data = syaml.load_config("""\ dt-diamond-left: externals: - spec: dt-diamond-left@1.0 prefix: /fake/path1 buildable: false """) spack.config.set("packages", cfg_data) top = spack.spec.Spec('dt-diamond').concretized() def _trust_me_its_a_dir(path): return True monkeypatch.setattr( os.path, 'isdir', _trust_me_its_a_dir ) env_mods = EnvironmentModifications() spack.build_environment.set_wrapper_variables( top.package, env_mods) env_mods.apply_modifications() link_dir_var = os.environ['SPACK_LINK_DIRS'] link_dirs = link_dir_var.split(':') external_lib_paths = set(['/fake/path1/lib', '/fake/path1/lib64']) # The external lib paths should be the last two entries of the list and # should not appear anywhere before the last two entries assert (set(os.path.normpath(x) for x in link_dirs[-2:]) == external_lib_paths) assert not (set(os.path.normpath(x) for x in link_dirs[:-2]) & external_lib_paths) def test_parallel_false_is_not_propagating(config, mock_packages): class AttributeHolder(object): pass # Package A has parallel = False and depends on B which instead # can be built in parallel s = spack.spec.Spec('a foobar=bar') s.concretize() for spec in s.traverse(): expected_jobs = spack.config.get('config:build_jobs') \ if s.package.parallel else 1 m = AttributeHolder() spack.build_environment._set_variables_for_single_module(s.package, m) assert m.make_jobs == expected_jobs @pytest.mark.parametrize('config_setting,expected_flag', [ ('runpath', '' if platform.system() == 'Darwin' else '--enable-new-dtags'), ('rpath', '' if platform.system() == 'Darwin' else '--disable-new-dtags'), ]) def test_setting_dtags_based_on_config( config_setting, expected_flag, config, mock_packages ): # Pick a random package to be able to set compiler's variables s = spack.spec.Spec('cmake') s.concretize() pkg = s.package env = EnvironmentModifications() with spack.config.override('config:shared_linking', config_setting): spack.build_environment.set_compiler_environment_variables(pkg, env) modifications = env.group_by_name() assert 'SPACK_DTAGS_TO_STRIP' in modifications assert 'SPACK_DTAGS_TO_ADD' in modifications assert len(modifications['SPACK_DTAGS_TO_ADD']) == 1 assert len(modifications['SPACK_DTAGS_TO_STRIP']) == 1 dtags_to_add = modifications['SPACK_DTAGS_TO_ADD'][0] assert dtags_to_add.value == expected_flag def test_build_jobs_sequential_is_sequential(): assert determine_number_of_jobs( parallel=False, command_line=8, config_default=8, max_cpus=8) == 1 def test_build_jobs_command_line_overrides(): assert determine_number_of_jobs( parallel=True, command_line=10, config_default=1, max_cpus=1) == 10 assert determine_number_of_jobs( parallel=True, command_line=10, config_default=100, max_cpus=100) == 10 def test_build_jobs_defaults(): assert determine_number_of_jobs( parallel=True, command_line=None, config_default=1, max_cpus=10) == 1 assert determine_number_of_jobs( parallel=True, command_line=None, config_default=100, max_cpus=10) == 10
player1537-forks/spack
var/spack/repos/builtin/packages/py-rosinstall-generator/package.py
<filename>var/spack/repos/builtin/packages/py-rosinstall-generator/package.py # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class PyRosinstallGenerator(PythonPackage): """A tool for generating rosinstall files.""" homepage = "https://wiki.ros.org/rosinstall_generator" pypi = "rosinstall-generator/rosinstall_generator-0.1.22.tar.gz" version('0.1.22', sha256='22d22599cd3f08a1f77fb2b1d9464cc8062ede50752a75564d459fcf5447b8c5') depends_on('py-catkin-pkg@0.1.28:', type=('build', 'run')) depends_on('py-rosdistro@0.7.3:', type=('build', 'run')) depends_on('py-rospkg', type=('build', 'run')) depends_on('py-pyyaml', type=('build', 'run')) depends_on('py-setuptools', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/flit/package.py
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/flit/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 Flit(MakefilePackage): """Floating-point Litmus Tests (FLiT) is a C++ test infrastructure for detecting variability in floating-point code caused by variations in compiler code generation, hardware and execution environments.""" homepage = "https://pruners.github.io/flit" url = "https://github.com/PRUNERS/FLiT/archive/v2.1.0.tar.gz" git = "https://github.com/PRUNERS/FLiT.git" tags = ['e4s'] version('develop', branch='devel') version('2.1.0', sha256='b31ffa02fda1ab0f5555acdc6edc353d93d53ae8ef85e099f83bcf1c83e70885') maintainers = ['mikebentley15'] # Add dependencies depends_on('python@3:', type='run') depends_on('py-toml', type='run') depends_on('py-pyelftools', type='run', when='@:2.1.0') depends_on('gmake', type=('run', 'build')) depends_on('sqlite@3:', type='run') def edit(self, spec, prefix): env['PREFIX'] = prefix
player1537-forks/spack
var/spack/repos/builtin/packages/py-boom-boot-manager/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 PyBoomBootManager(PythonPackage): """Boom is a boot manager for Linux systems using boot loaders that support the BootLoader Specification for boot entry configuration. """ homepage = "https://github.com/snapshotmanager/boom" url = "https://github.com/snapshotmanager/boom/archive/1.2.tar.gz" version('1.2', sha256='7e066caad5c91e7dd8475a5034e88bd0e8e6735aec412f904c0e93029b43ae47') version('1.1', sha256='0ddbfa914c1d997fae64833585eb6d781100ef32974c894ce2558cda6ce66d23') version('1.0', sha256='13f757e247f26959a9e64a0fbfcbf145881f299f892b164637b160089ae66a87') version('0.9', sha256='5876fe3d891547e61e059deaf5d2b7fe82e616087c6e5fcb28fe49ee79c68a2f') version('0.8.5', sha256='3137d59e1de1f026906ccc57f7510d6ea9e8092dc293da4ac5746e9b37fe35b8') depends_on('py-setuptools', type='build')
player1537-forks/spack
var/spack/repos/builtin.mock/packages/needs-relocation/package.py
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin.mock/packages/needs-relocation/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 * def check(condition, msg): """Raise an install error if condition is False.""" if not condition: raise InstallError(msg) class NeedsRelocation(Package): """A dumy package that encodes its prefix.""" homepage = 'https://www.cmake.org' url = 'https://cmake.org/files/v3.4/cmake-3.4.3.tar.gz' version('0.0.0', '12345678qwertyuiasdfghjkzxcvbnm0') def install(self, spec, prefix): mkdirp(prefix.bin) exe = join_path(prefix.bin, 'exe') with open(exe, 'w') as f: f.write(prefix) set_executable(exe)
player1537-forks/spack
var/spack/repos/builtin/packages/py-svgutils/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 PySvgutils(PythonPackage): """Python tools to create and manipulate SVG files.""" homepage = "https://github.com/btel/svg_utils" pypi = "svgutils/svgutils-0.3.4.tar.gz" version('0.3.4', sha256='9ef48f44cb1d460a7747dd02694200fda25eb9faf6dea392118def2695e0e053') version('0.3.1', sha256='cd52474765fd460ad2389947f77589de96142f6f0ce3f61e08ccfabeac2ff8af') depends_on('py-setuptools', type='build') depends_on('py-lxml', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin.mock/packages/virtual-with-versions/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 VirtualWithVersions(AutotoolsPackage): """Uses version-test-pkg, as a build dependency""" homepage = "http://www.spack.org" url = "http://www.spack.org/downloads/aml-1.0.tar.gz" version('17.0.1', '0123456789abcdef0123456789abcdef') version('16.0.1', '0123456789abcdef0123456789abcdef') version('11.0.1', '0123456789abcdef0123456789abcdef') version('1.8.0', '0123456789abcdef0123456789abcdef') provides('java@17', when='@17.0:17.9') provides('java@16', when='@16.0:16.9') provides('java@11', when='@11.0:11.9') provides('java@10', when='@10.0:10.9') provides('java@9', when='@9.0:9.9') provides('java@8', when='@1.8.0:1.8.9')
player1537-forks/spack
var/spack/repos/builtin/packages/professor/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 Professor(Package): """Professor Monte-Carlo tuning package""" homepage = "https://professor.hepforge.org/" url = "https://professor.hepforge.org/downloads/?f=Professor-2.3.3.tar.gz" maintainers = ['mjk655'] version('2.3.3', sha256='60c5ba00894c809e2c31018bccf22935a9e1f51c0184468efbdd5d27b211009f') depends_on('wxwidgets') depends_on('yoda') depends_on('eigen') depends_on('py-cython') depends_on('py-iminuit') depends_on('py-matplotlib') def install(self, spec, prefix): make() make('PREFIX={0}'.format(prefix), "install")
player1537-forks/spack
var/spack/repos/builtin/packages/py-bokeh/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 PyBokeh(PythonPackage): """Statistical and novel interactive HTML plots for Python""" homepage = "https://github.com/bokeh/bokeh" pypi = "bokeh/bokeh-0.12.2.tar.gz" version('2.4.1', sha256='d0410717d743a0ac251e62480e2ea860a7341bdcd1dbe01499a904f233c90512') version('2.4.0', sha256='6fa00ed8baab5cca33f4175792c309fa2536eaae7e90abee884501ba8c90fddb') version('2.3.3', sha256='a5fdcc181835561447fcc5a371300973fce4114692d5853addec284d1cdeb677') version('1.3.4', sha256='e2d97bed5b199a10686486001fed5c854e4c04ebe28859923f27c52b93904754') version('0.12.2', sha256='0a840f6267b6d342e1bd720deee30b693989538c49644142521d247c0f2e6939') depends_on('py-setuptools', type='build', when="@1.3.4:") depends_on('python@2.6:', type=('build', 'run'), when='@0.12.2') depends_on('python@2.7:', type=('build', 'run'), when='@1.3.4:') depends_on('python@3.6:', type=('build', 'run'), when='@2.3.3:') depends_on('python@3.7:', type=('build', 'run'), when='@2.4.0:') depends_on('py-requests@1.2.3:', type=('build', 'run'), when='@0.12.2') depends_on('py-packaging@16.8:', type=('build', 'run'), when='@1.3.4:') depends_on('py-six@1.5.2:', type=('build', 'run'), when='@:1.3.4') depends_on('py-pyyaml@3.10:', type=('build', 'run')) depends_on('py-python-dateutil@2.1:', type=('build', 'run'), when='@:2.3.3') depends_on('py-futures@3.0.3:', type=('build', 'run'), when='@:1.3.4 ^python@2.7:2.8') depends_on('pil@4.0:', type=('build', 'run'), when='@1.3.4:') depends_on('pil@7.1.0:', type=('build', 'run'), when='@2.3.3:') depends_on('py-jinja2@2.7:', type=('build', 'run')) depends_on('py-jinja2@2.9:', type=('build', 'run'), when='@2.3.3:') depends_on('py-numpy@1.7.1:', type=('build', 'run')) depends_on('py-numpy@1.11.3:', type=('build', 'run'), when='@2.3.3:') depends_on('py-tornado@4.3:', type=('build', 'run')) depends_on('py-tornado@5.1:', type=('build', 'run'), when='@2.3.3:') depends_on('py-typing-extensions@3.7.4:', type=('build', 'run'), when='@2.3.3:') depends_on('py-typing-extensions@3.10.0:', type=('build', 'run'), when='@2.4.0:')
player1537-forks/spack
var/spack/repos/builtin/packages/dlpack/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 Dlpack(Package): """DLPack is an RFC for common tensor and operator guidelines in deep learning systems.""" homepage = "https://github.com/dmlc/dlpack" git = "https://github.com/dmlc/dlpack.git" url = "https://github.com/dmlc/dlpack/archive/refs/tags/v0.5.tar.gz" version('master', branch='master') version('0.5', sha256='9209ac194a175aaab4381313891fba047cb173b2bdd15ac934f83f567f9cd514') version('0.4', sha256='d0a533189ecd45a033b72e276fccaa2122cfd76de125e0a5e126bdea0fec2d24') version('0.3', sha256='703149f5b39ead42cc734c03c7c4bd581fcad1c5a3939e7a4b5bc82f54c3c32a') version('0.2', sha256='419f76ef723d21b72b704b2c4bf718dcd9d2ecd44cd28c8a71798389b7932ae5') version('0.1', sha256='c69b06bfe03711e9d9d3f4d3f307d6dfd7e21d4864a053cca26296d5d05c175c') def install(self, spec, prefix): install_tree('include', prefix.include)
player1537-forks/spack
var/spack/repos/builtin/packages/py-nbformat/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 PyNbformat(PythonPackage): """The Jupyter Notebook format""" homepage = "https://github.com/jupyter/nbformat" pypi = "nbformat/nbformat-5.0.7.tar.gz" version('5.1.3', sha256='b516788ad70771c6250977c1374fcca6edebe6126fd2adb5a69aa5c2356fd1c8') version('5.0.7', sha256='54d4d6354835a936bad7e8182dcd003ca3dc0cedfee5a306090e04854343b340') version('4.4.0', sha256='f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402') version('4.1.0', sha256='dbf6c0ed0cb7c5a7184536368f1dd1ada2d48fd6f016e0f9e9b69236e28c0857') version('4.0.1', sha256='5261c957589b9dfcd387c338d59375162ba9ca82c69e378961a1f4e641285db5') version('4.0.0', sha256='daf9b990e96863d120aff123361156a316757757b81a8070eb6945e4a9774b2d') depends_on('python@3.5:', when='@5:', type=('build', 'run')) depends_on('python@2.7:2.8,3.3:', when='@:4', type=('build', 'run')) # pip silently replaces distutils with setuptools depends_on('py-setuptools', type='build') depends_on('py-ipython-genutils', type=('build', 'run')) depends_on('py-traitlets@4.1:', type=('build', 'run')) depends_on('py-jsonschema@2.4.0:2.4,2.5.1:', type=('build', 'run')) depends_on('py-jupyter-core', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/butterflypack/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 Butterflypack(CMakePackage): """ButterflyPACK is a mathematical software for rapidly solving large-scale dense linear systems that exhibit off-diagonal rank-deficiency. These systems arise frequently from boundary element methods, or factorization phases in finite-difference/finite-element methods. ButterflyPACK relies on low-rank or butterfly formats under Hierarchical matrix, HODLR or other hierarchically nested frameworks to compress, factor and solve the linear system in quasi-linear time. The computationally most intensive phase, factorization, is accelerated via randomized linear algebras. The butterfly format, originally inspired by the butterfly data flow in fast Fourier Transform, is a linear algebra tool well-suited for compressing matrices arising from high-frequency wave equations or highly oscillatory integral operators.""" homepage = "https://github.com/liuyangzhuan/ButterflyPACK" git = "https://github.com/liuyangzhuan/ButterflyPACK.git" url = "https://github.com/liuyangzhuan/ButterflyPACK/archive/v2.1.1.tar.gz" maintainers = ['liuyangzhuan'] version('master', branch='master') version('2.1.1', sha256='0d4a1ce540c84de37e4398f72ecf685ea0c4eabceba13015add5b445a4ca3a15') version('2.1.0', sha256='ac76cc8d431797c1a3641b23124e3de5eb8c3a3afb71c336e7ba69c6cdf150ef') version('2.0.0', sha256='84f0e5ac40997409f3c80324238a07f9c700a1263b84140ed97275d67b577b80') version('1.2.1', sha256='cd61b0e033f55a932f13d9902e28a7abbf029c279cec9ab1b2a063525d036fa2') version('1.2.0', sha256='870b8acd826eb414dc38fa25e22c9c09ddeb5ca595b1dfdaa1fd65ae964d4e94') version('1.1.0', sha256='0e6fd0f9e27b3ee8a273dc52f4d24b8737e7279dc26d461ef5658b317215f1dc') version('1.0.3', sha256='acf9bc98dd7fea31ab73756b68b3333228b53ab0e85400a8250fcc749a1a6656') version('1.0.1', sha256='e8ada37466a19f49e13456b150700d4c3afaad2ddbe3678f4e933f9d556a24a5') version('1.0.0', sha256='86c5eb09a18522367d63ce2bacf67ca1c9813ef351a1443baaab3c53f0d77232') variant('shared', default=True, description='Build shared libraries') depends_on('mpi') depends_on('blas') depends_on('lapack') depends_on('scalapack') depends_on('arpack-ng') patch('longline.patch', when='%fj') patch('fjfortran.patch', when='%fj') patch('isnan.patch', when='%fj') def cmake_args(self): spec = self.spec args = [ '-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc, '-DCMAKE_Fortran_COMPILER=%s' % spec['mpi'].mpifc, '-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx, '-DTPL_BLAS_LIBRARIES=%s' % spec['blas'].libs.joined(";"), '-DTPL_LAPACK_LIBRARIES=%s' % spec['lapack'].libs.joined(";"), '-DTPL_SCALAPACK_LIBRARIES=%s' % spec['scalapack']. libs.joined(";"), '-DTPL_ARPACK_LIBRARIES=%s' % spec['arpack-ng'].libs.joined(";"), self.define_from_variant('BUILD_SHARED_LIBS', 'shared'), ] return args
player1537-forks/spack
var/spack/repos/builtin/packages/perl-net-http/package.py
<filename>var/spack/repos/builtin/packages/perl-net-http/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 PerlNetHttp(PerlPackage): """Low-level HTTP connection (client)""" homepage = "https://metacpan.org/pod/Net::HTTP" url = "http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/Net-HTTP-6.17.tar.gz" version('6.17', sha256='1e8624b1618dc6f7f605f5545643ebb9b833930f4d7485d4124aa2f2f26d1611') depends_on('perl-uri', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-repr/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 RRepr(RPackage): """Serializable Representations. String and binary representations of objects for several formats and mime types.""" cran = "repr" version('1.1.4', sha256='6f799ca83e0940618dd8c22e62ffdce5ec11ba3366c5306ae58b55b53c097040') version('1.1.0', sha256='743fe018f9e3e54067a970bc38b6b8c0c0498b43f88d179ac4a959c2013a5f96') version('1.0.1', sha256='ecde22c17fd800e1ff5c2b2962689119aa486fba40fbc6f2c50e8d4cc61bc44b') version('1.0.0', sha256='98b2eb1058c1cb2caa8f98708b63726f5564b45de03d38b95ff6b963a8261f49') version('0.9', sha256='24cac6e98f2a7e5483cf87aaffcb37611702099b63d3783e319441b4ecd0264b') depends_on('r@3.0.1:', type=('build', 'run')) depends_on('r-htmltools', type=('build', 'run'), when='@0.13:') depends_on('r-jsonlite', type=('build', 'run'), when='@0.19.1:') depends_on('r-pillar@1.4.0:', type=('build', 'run'), when='@1.0.0:') depends_on('r-base64enc', type=('build', 'run'), when='@0.13:')
player1537-forks/spack
var/spack/repos/builtin/packages/py-pbr/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 PyPbr(PythonPackage): """PBR is a library that injects some useful and sensible default behaviors into your setuptools run.""" pypi = "pbr/pbr-5.4.3.tar.gz" # Skip 'pbr.tests' imports import_modules = ['pbr', 'pbr.cmd', 'pbr.hooks'] version('5.7.0', sha256='4651ca1445e80f2781827305de3d76b3ce53195f2227762684eb08f17bc473b7') version('5.4.3', sha256='2c8e420cd4ed4cec4e7999ee47409e876af575d4c35a45840d59e8b5f3155ab8') version('5.2.1', sha256='93d2dc6ee0c9af4dbc70bc1251d0e545a9910ca8863774761f92716dece400b6') version('3.1.1', sha256='05f61c71aaefc02d8e37c0a3eeb9815ff526ea28b3b76324769e6158d7f95be1') version('2.0.0', sha256='0ccd2db529afd070df815b1521f01401d43de03941170f8a800e7531faba265d') version('1.10.0', sha256='186428c270309e6fdfe2d5ab0949ab21ae5f7dea831eab96701b86bd666af39c') version('1.8.1', sha256='e2127626a91e6c885db89668976db31020f0af2da728924b56480fc7ccf09649') depends_on('python@2.6:', type=('build', 'run')) depends_on('py-setuptools', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/id3lib/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 Id3lib(AutotoolsPackage): """Library for manipulating ID3v1 and ID3v2 tags""" homepage = "http://id3lib.sourceforge.net/" url = "https://downloads.sourceforge.net/project/id3lib/id3lib/3.8.3/id3lib-3.8.3.tar.gz" version('3.8.3', sha256='2749cc3c0cd7280b299518b1ddf5a5bcfe2d1100614519b68702230e26c7d079') depends_on('zlib') # http://connie.slackware.com/~alien/slackbuilds/id3lib/build/id3lib-3.8.3_gcc4.diff # this is due to some changes in the c++ standard library headers patch("id3lib-3.8.3_gcc4.diff")
player1537-forks/spack
var/spack/repos/builtin/packages/py-thirdorder/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 PyThirdorder(PythonPackage): """It helps ShengBTE users create FORCE_CONSTANTS_3RD files efficiently""" homepage = "https://www.shengbte.org" url = "http://www.shengbte.org/downloads/thirdorder-v1.1.1-8526f47.tar.bz2" # Deprecated because download doesn't work version('1.1.1-8526f47', '5e1cc8d6ffa7efdb7325c397ca236863ea8a9c5bed1c558acca68b140f89167e', deprecated=True) depends_on('py-numpy', type=('build', 'run')) depends_on('py-scipy', type=('build', 'run')) depends_on('spglib', type=('build', 'run')) def patch(self): setupfile = FileFilter('setup.py') setupfile.filter('LIBRARY_DIRS = .*', 'LIBRARY_DIRS = ["%s"]' % self.spec['spglib'].prefix.lib) setupfile.filter('INCLUDE_DIRS = .*', 'INCLUDE_DIRS = ["%s"]' % self.spec['spglib'].prefix.include) sourcefile = FileFilter('thirdorder_core.c') sourcefile.filter('#include "spglib.*"', '#include "spglib.h"') @run_after('install') def post_install(self): mkdirp(self.prefix.bin) install('thirdorder_espresso.py', self.prefix.bin) install('thirdorder_vasp.py', self.prefix.bin) install('thirdorder_castep.py', self.prefix.bin) install('thirdorder_common.py', self.prefix.bin)
player1537-forks/spack
var/spack/repos/builtin/packages/libinih/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 Libinih(MesonPackage): """ inih (INI Not Invented Here) is a simple .INI file parser written in C. """ homepage = "https://github.com/benhoyt/inih" url = "https://github.com/benhoyt/inih/archive/refs/tags/r53.tar.gz" git = "https://github.com/benhoyt/inih.git" version('master', branch="master")
player1537-forks/spack
var/spack/repos/builtin.mock/packages/conflicting-dependent/package.py
<filename>var/spack/repos/builtin.mock/packages/conflicting-dependent/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 ConflictingDependent(Package): """By itself this package does not have conflicts, but it is used to ensure that if a user tries to build with an installed instance of dependency-install@2 that there is a failure.""" homepage = "http://www.example.com" url = "http://www.example.com/a-1.0.tar.gz" version('1.0', '0123456789abcdef0123456789abcdef') depends_on('dependency-install@:1.0')
player1537-forks/spack
var/spack/repos/builtin/packages/jpegoptim/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 Jpegoptim(AutotoolsPackage): """jpegoptim - utility to optimize/compress JPEG files""" homepage = "https://www.iki.fi/tjko/projects.html" url = "https://github.com/tjko/jpegoptim/archive/RELEASE.1.4.6.tar.gz" version('1.4.6', sha256='c44dcfac0a113c3bec13d0fc60faf57a0f9a31f88473ccad33ecdf210b4c0c52') version('1.4.5', sha256='53207f479f96c4f792b3187f31abf3534d69c88fe23720d0c23f5310c5d2b2f5') version('1.4.4', sha256='bc6b018ae8c3eb12d07596693d54243e214780a2a2303a6578747d3671f45da3') depends_on('libjpeg')
player1537-forks/spack
var/spack/repos/builtin/packages/xcfun/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 Xcfun(CMakePackage): """Exchange-Correlation functionals with arbitrary order derivatives.""" homepage = "https://github.com/dftlibs/xcfun" url = "https://github.com/dftlibs/xcfun/archive/v2.1.0.tar.gz" maintainers = ['robertodr', 'bast'] version('2.1.0', sha256='64aac8c933cc129ce6326f3827e342abfd10b94ea4a302aaca9f10d342ad7656') version('2.0.2', sha256='b79a71861a9e1d0e33c1be89b34f6f052d430cd495a7df982c407ad0140c1dcd') version('2.0.1', sha256='719383c3fffdd5da5b005f56ffd97457b0b2fb48317e955263ef5384d53ddfca') version('2.0.0', sha256='34398e935c522d0b55e1803fd6116e7cd40677d1add8894ef08362361705cf25') extends('python') depends_on('cmake@3.14:', type='build') depends_on('python@3:') depends_on('py-pybind11') depends_on('py-numpy') def cmake_args(self): spec = self.spec args = [ "-DCMAKE_INSTALL_LIBDIR=lib", "-DPYMOD_INSTALL_LIBDIR=/python{0}/site-packages".format( spec["python"].version[:-1]), "-DXCFUN_MAX_ORDER=8", "-DXCFUN_PYTHON_INTERFACE=ON", "-DPYTHON_EXECUTABLE={0}".format(spec['python'].command), "-DENABLE_TESTALL=OFF", ] return args
player1537-forks/spack
var/spack/repos/builtin/packages/py-metasv/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 PyMetasv(PythonPackage): """An accurate and integrative structural-variant caller for next generation sequencing""" homepage = "https://bioinform.github.io/metasv/" url = "https://github.com/bioinform/metasv/archive/0.5.4.tar.gz" version('0.5.4', sha256='c8613b56f44b9303b9e126618b2aee9dbc0b26c03d14e70e1aeed918582eeec1') depends_on('py-pybedtools@0.6.9', type=('build', 'run')) depends_on('py-pysam', type=('build', 'run')) depends_on('py-pyvcf', type=('build', 'run')) depends_on('py-setuptools', type='build')
player1537-forks/spack
var/spack/repos/builtin/packages/r-spatstat-data/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 RSpatstatData(RPackage): """Datasets for 'spatstat' Family. Contains all the datasets for the 'spatstat' family of packages.""" cran = "spatstat.data" version('2.1-2', sha256='bbd118a8e6cd2c41abc764b9f2e798514070862f11e3f2080c27f72268271ae5') version('1.7-0', sha256='bbc192d43f2b37b308566694cb48ecdbbc4f20ef44b6fc7636564a717a03c12f') version('1.4-3', sha256='8955b6ac40cc7d0d89e02334bb46f4c223ff0755e5818f132fee753e77918ea2') version('1.4-0', sha256='121e5bb92beb7ccac920f921e760f429fd71bcfe11cb9b07a7e7326c7a72ec8c') depends_on('r@3.3:', type=('build', 'run')) depends_on('r@3.5.0:', type=('build', 'run'), when='@1.7-0:') depends_on('r-spatstat-utils', type=('build', 'run')) depends_on('r-spatstat-utils@2.1-0:', type=('build', 'run'), when='@2.1-2:') depends_on('r-matrix', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-acepack/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 RAcepack(RPackage): """ACE and AVAS for Selecting Multiple Regression Transformations. Two nonparametric methods for multiple regression transform selection are provided. The first, Alternative Conditional Expectations (ACE), is an algorithm to find the fixed point of maximal correlation, i.e. it finds a set of transformed response variables that maximizes R^2 using smoothing functions [see <NAME>., and <NAME>. 1985. "Estimating Optimal Transformations for Multiple Regression and Correlation". Journal of the American Statistical Association. 80:580-598. <doi:10.1080/01621459.1985.10478157>]. Also included is the Additivity Variance Stabilization (AVAS) method which works better than ACE when correlation is low [see Tibshirani, R.. 1986. "Estimating Transformations for Regression via Additivity and Variance Stabilization". Journal of the American Statistical Association. 83:394-405. <doi:10.1080/01621459.1988.10478610>]. A good introduction to these two methods is in chapter 16 of <NAME>'s "Regression Modeling Strategies" in the Springer Series in Statistics.""" cran = "acepack" version('1.4.1', sha256='82750507926f02a696f6cc03693e8d4a5ee7e92500c8c15a16a9c12addcd28b9')
player1537-forks/spack
var/spack/repos/builtin/packages/dtf/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 Dtf(AutotoolsPackage): """DTF (Data Transfer Framework) is a general I/O arbitration middleware designed for multi-component applications that use file-base component coupling. DTF works for applications that use the Parallel netCDF (PnetCDF) library for file I/O. It allows the user to transparently replace file I/O with sending the data directly between the components. """ homepage = "https://github.com/maneka07/DTF" git = "https://github.com/maneka07/DTF.git" version('master', branch='master') variant('cxx', default=True, description='Build pnetcdf the C++ Interface') variant('fortran', default=True, description='Build pnetcdf the Fortran Interface') depends_on('mpi') depends_on('m4', type='build') depends_on('autoconf', type='build') depends_on('automake', type='build') depends_on('libtool', type='build') depends_on('perl', type='build') configure_directory = 'pnetcdf' def setup_build_environment(self, env): dtf_srcdir = join_path(self.stage.source_path, 'libdtf') env.append_path('LD_LIBRARY_PATH', self.prefix.lib) env.append_path('LD_LIBRARY_PATH', dtf_srcdir) @run_before('autoreconf') def build_dtf(self): with working_dir('libdtf'): make('all', 'MPICC={0}'.format(self.spec['mpi'].mpicc)) def configure_args(self): dtf_srcdir = join_path(self.stage.source_path, 'libdtf') args = [ 'CFLAGS=-I{0}'.format(dtf_srcdir), 'LDFLAGS=-L{0} -ldtf'.format(dtf_srcdir) ] args += self.enable_or_disable('cxx') args += self.enable_or_disable('fortran') return args def install(self, spec, prefix): with working_dir('pnetcdf'): make('install') with working_dir('libdtf'): install('libdtf.*', prefix.lib) install('dtf.h', prefix.include) install_tree('doc', prefix.doc) install_tree('example', prefix.example) install('COPYRIGHT', prefix)
player1537-forks/spack
var/spack/repos/builtin/packages/py-asttokens/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 PyAsttokens(PythonPackage): """Annotate AST trees with source code positions.""" homepage = "https://github.com/gristlabs/asttokens" pypi = "asttokens/asttokens-2.0.5.tar.gz" version('2.0.5', sha256='9a54c114f02c7a9480d56550932546a3f1fe71d8a02f1bc7ccd0ee3ee35cf4d5') depends_on('py-setuptools@44:', type='build') depends_on('py-setuptools-scm+toml@3.4.3:', type='build') depends_on('py-six', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/hackrf-host/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 HackrfHost(CMakePackage): """Software for HackRF, a low cost, open source Software Defined Radio platform.""" homepage = "https://github.com/mossmann/hackrf" url = "https://github.com/mossmann/hackrf/archive/v2018.01.1.tar.gz" maintainers = ['aweits'] root_cmakelists_dir = 'host' version('2018.01.1', sha256='84dbb5536d3aa5bd6b25d50df78d591e6c3431d752de051a17f4cb87b7963ec3') depends_on('cmake@2.8.12:', type='build') depends_on('libusb@1.0.18:') depends_on('fftw@3.3.5:')
player1537-forks/spack
var/spack/repos/builtin/packages/restic/package.py
<reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/restic/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 Restic(Package): """Fast, secure, efficient backup program.""" homepage = "https://restic.net" url = "https://github.com/restic/restic/releases/download/v0.12.1/restic-0.12.1.tar.gz" maintainers = ['alecbcs'] version('0.12.1', sha256='a9c88d5288ce04a6cc78afcda7590d3124966dab3daa9908de9b3e492e2925fb') depends_on("go", type='build') def setup_build_environment(self, env): # Point GOPATH at the top of the staging dir for the build step. env.prepend_path('GOPATH', self.stage.path) def install(self, spec, prefix): go('run', 'build.go') mkdirp(prefix.bin) install('restic', prefix.bin)
player1537-forks/spack
var/spack/repos/builtin/packages/mysql/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import tempfile from spack import * class Mysql(CMakePackage): """MySQL is an open source relational database management system.""" homepage = "https://www.mysql.com/" url = "https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.15.tar.gz" version('8.0.19', sha256='a62786d67b5e267eef928003967b4ccfe362d604b80f4523578e0688f5b9f834') version('8.0.18', sha256='4cb39a315298eb243c25c53c184b3682b49c2a907a1d8432ba0620534806ade8') version('8.0.17', sha256='c6e3f38199a77bfd8a4925ca00b252d3b6159b90e4980c7232f1c58d6ca759d6') version('8.0.16', sha256='8d9fe89920dc8bbbde2857b7b877ad2fa5ec2f231c68e941d484f3b72735eaea') version('8.0.15', sha256='bb1bca2dc2f23ee9dd395cc4db93b64561d4ac20b53be5d1dae563f7be64825e') version('8.0.14', sha256='bc53f4c914fb39650289700d144529121d71f38399d2d24a0f5c76e5a8abd204') version('8.0.13', sha256='d85eb7f98b6aa3e2c6fe38263bf40b22acb444a4ce1f4668473e9e59fb98d62e') version('8.0.12', sha256='69f16e20834dbc60cb28d6df7351deda323330b9de685d22415f135bcedd1b20') version('8.0.11', sha256='3bde3e30d5d4afcedfc6db9eed5c984237ac7db9480a9cc3bddc026d50700bf9') version('5.7.27', sha256='f8b65872a358d6f5957de86715c0a3ef733b60451dad8d64a8fd1a92bf091bba') version('5.7.26', sha256='5f01d579a20199e06fcbc28f0801c3cb545a54a2863ed8634f17fe526480b9f1') version('5.7.25', sha256='53751c6243806103114567c1a8b6a3ec27f23c0e132f377a13ce1eb56c63723f') version('5.7.24', sha256='05bf0c92c6a97cf85b67fff1ac83ca7b3467aea2bf306374d727fa4f18431f87') version('5.7.23', sha256='0730f2d5520bfac359e9272da6c989d0006682eacfdc086a139886c0741f6c65') version('5.7.22', sha256='4eb8405b0a9acb0381eae94c1741b2850dfc6467742b24b676e62b566409cff2') version('5.7.21', sha256='fa205079c27a39c24f3485e7498dd0906a6e0b379b4f99ebc0ec38a9ec5b09b7') version('5.7.20', sha256='5397549bb7c238f396c123db2df4cad2191b11adf8986de7fe63bff8e2786487') version('5.7.19', sha256='3e51e76f93179ca7b165a7008a6cc14d56195b3aef35d26d3ac194333d291eb1') version('5.7.18', sha256='0b5d71ed608656cd8181d3bb0434d3e36bac192899038dbdddf5a7594aaea1a2') version('5.7.17', sha256='cebf23e858aee11e354c57d30de7a079754bdc2ef85eb684782458332a4b9651') version('5.7.16', sha256='4935b59974edb275629f6724a0fcf72265a5845faf1e30eeb50ed4b6528318a5') version('5.7.15', sha256='9085353143bfda59c90aa959e79a35622a22aa592e710993416e193b37eb9956') version('5.7.14', sha256='f7415bdac2ca8bbccd77d4f22d8a0bdd7280b065bd646a71a506b77c7a8bd169') version('5.7.13', sha256='50bf1a1635a61235fc43fd4876df2f77163de109372679e29c1ff8dbc38a0b87') version('5.7.12', sha256='32843cb6d22ab22cd2340262b53c0d6009b5bd41b1fa4102beda19635a5c1c87') version('5.7.11', sha256='54f8c7af87d3d8084419bde2b9f0d8970b3dada0757b015981b02f35a3681f0e') version('5.7.10', sha256='1ea1644884d086a23eafd8ccb04d517fbd43da3a6a06036f23c5c3a111e25c74') version('5.7.9', sha256='315342f5bee1179548cecad2d776cd7758092fd2854024e60a3a5007feba34e0') version('5.6.44', sha256='c031c92c3f226856b09bf929d8a26b0cd8600036cb9db4e0fdf6b6f032ced336') version('5.6.43', sha256='1c95800bf0e1b7a19a37d37fbc5023af85c6bc0b41532433b3a886263a1673ef') version('5.5.62', sha256='b1e7853bc1f04aabf6771e0ad947f35ac8d237f4b35d0706d1095c9526ff99d7') variant('client_only', default=False, description='Build and install client only.') variant('cxxstd', default='14', values=('98', '11', '14', '17'), multi=False, description='Use the specified C++ standard when building.') # 5.7.X cannot be compiled client-only. conflicts('+client_only', when='@5.7.0:5.7') # Server code has a macro 'byte', which conflicts with C++17's # std::byte. conflicts('cxxstd=17', when='@8.0.0:~client_only') provides('mysql-client') # https://dev.mysql.com/doc/refman/8.0/en/source-installation.html # See CMAKE_MINIMUM_REQUIRED in CMakeLists.txt depends_on('cmake@3.1.0:', type='build', when='@5.7.0:5.7 platform=win32') depends_on('cmake@3.8.0:', type='build', when='@8.0.0: platform=win32') depends_on('cmake@3.9.2:', type='build', when='@8.0.0: platform=darwin') depends_on('cmake@3.4.0:', type='build', when='@8.0.0: platform=solaris') depends_on('cmake@2.6:', type='build', when='@:5.6') depends_on('cmake@2.8.9:', type='build', when='@5.7.0:5.7') depends_on('cmake@2.8.12:', type='build', when='@8.0.0:') depends_on('gmake@3.75:', type='build') depends_on('pkgconfig', type='build', when='@5.7.0:') depends_on('doxygen', type='build', when='@8.0.0:') # Each version of MySQL requires a specific version of boost # See BOOST_PACKAGE_NAME in cmake/boost.cmake # 8.0.19+ depends_on('boost@1.70.0 cxxstd=98', type='build', when='@8.0.19: cxxstd=98') depends_on('boost@1.70.0 cxxstd=11', type='build', when='@8.0.19: cxxstd=11') depends_on('boost@1.70.0 cxxstd=14', type='build', when='@8.0.19: cxxstd=14') depends_on('boost@1.70.0 cxxstd=17', type='build', when='@8.0.19: cxxstd=17') # 8.0.16--8.0.18 depends_on('boost@1.69.0 cxxstd=98', type='build', when='@8.0.16:8.0.18 cxxstd=98') depends_on('boost@1.69.0 cxxstd=11', type='build', when='@8.0.16:8.0.18 cxxstd=11') depends_on('boost@1.69.0 cxxstd=14', type='build', when='@8.0.16:8.0.18 cxxstd=14') depends_on('boost@1.69.0 cxxstd=17', type='build', when='@8.0.16:8.0.18 cxxstd=17') # 8.0.14--8.0.15 depends_on('boost@1.68.0 cxxstd=98', type='build', when='@8.0.14:8.0.15 cxxstd=98') depends_on('boost@1.68.0 cxxstd=11', type='build', when='@8.0.14:8.0.15 cxxstd=11') depends_on('boost@1.68.0 cxxstd=14', type='build', when='@8.0.14:8.0.15 cxxstd=14') depends_on('boost@1.68.0 cxxstd=17', type='build', when='@8.0.14:8.0.15 cxxstd=17') # 8.0.12--8.0.13 depends_on('boost@1.67.0 cxxstd=98', type='build', when='@8.0.12:8.0.13 cxxstd=98') depends_on('boost@1.67.0 cxxstd=11', type='build', when='@8.0.12:8.0.13 cxxstd=11') depends_on('boost@1.67.0 cxxstd=14', type='build', when='@8.0.12:8.0.13 cxxstd=14') depends_on('boost@1.67.0 cxxstd=17', type='build', when='@8.0.12:8.0.13 cxxstd=17') # 8.0.11 depends_on('boost@1.66.0 cxxstd=98', type='build', when='@8.0.11 cxxstd=98') depends_on('boost@1.66.0 cxxstd=11', type='build', when='@8.0.11 cxxstd=11') depends_on('boost@1.66.0 cxxstd=14', type='build', when='@8.0.11 cxxstd=14') depends_on('boost@1.66.0 cxxstd=17', type='build', when='@8.0.11 cxxstd=17') # 5.7.X depends_on('boost@1.59.0 cxxstd=98', when='@5.7.0:5.7 cxxstd=98') depends_on('boost@1.59.0 cxxstd=11', when='@5.7.0:5.7 cxxstd=11') depends_on('boost@1.59.0 cxxstd=14', when='@5.7.0:5.7 cxxstd=14') depends_on('boost@1.59.0 cxxstd=17', when='@5.7.0:5.7 cxxstd=17') depends_on('rpcsvc-proto') depends_on('ncurses') depends_on('openssl') depends_on('libtirpc', when='@5.7.0: platform=linux') depends_on('libedit', type=['build', 'run']) depends_on('perl', type=['build', 'test'], when='@:7') depends_on('bison@2.1:', type='build') depends_on('m4', type='build', when='@develop platform=solaris') depends_on('cyrus-sasl', when='@:5.7') patch('fix-no-server-5.5.patch', level=1, when='@5.5.0:5.5') def url_for_version(self, version): url = "https://dev.mysql.com/get/Downloads/MySQL-{0}/mysql-{1}.tar.gz" return url.format(version.up_to(2), version) def cmake_args(self): spec = self.spec options = [] if 'boost' in spec: options.append('-DBOOST_ROOT={0}'.format(spec['boost'].prefix)) if '+client_only' in self.spec: options.append('-DWITHOUT_SERVER:BOOL=ON') options.append('-DWITH_EDITLINE=system') options.append('-Dlibedit_INCLUDE_DIR={0}'.format( spec['libedit'].prefix.include)) options.append('-Dlibedit_LIBRARY={0}'.format( spec['libedit'].libs.directories[0])) return options def _fix_dtrace_shebang(self, env): # dtrace may cause build to fail because it uses # '/usr/bin/python' in the shebang. To work around that we copy # the original script into a temporary folder, and change the # shebang to '/usr/bin/env python'. Treatment adapted from that # used in glib recipe per <NAME> @b2822b258. dtrace = which('dtrace').path dtrace_copy_path = os.path.join(tempfile.mkdtemp(), 'dtrace-copy') dtrace_copy = os.path.join(dtrace_copy_path, 'dtrace') mkdirp(dtrace_copy_path) copy(dtrace, dtrace_copy) filter_file( '^#!/usr/bin/python', '#!/usr/bin/env {0}'.format( os.path.basename(self.spec['python'].command)), dtrace_copy ) # To have our own copy of dtrace in PATH, we need to # prepend to PATH the temporary folder where it resides. env.prepend_path('PATH', dtrace_copy_path) def setup_build_environment(self, env): cxxstd = self.spec.variants['cxxstd'].value flag = getattr(self.compiler, 'cxx{0}_flag'.format(cxxstd)) if flag: env.append_flags('CXXFLAGS', flag) if cxxstd != '98': if int(cxxstd) > 11: env.append_flags('CXXFLAGS', '-Wno-deprecated-declarations') if int(cxxstd) > 14: env.append_flags('CXXFLAGS', '-Wno-error=register') if 'python' in self.spec.flat_dependencies() and \ self.spec.satisfies('@:7'): self._fix_dtrace_shebang(env)
player1537-forks/spack
var/spack/repos/builtin/packages/py-lws/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 PyLws(PythonPackage): """Fast spectrogram phase recovery using Local Weighted Sums""" homepage = "https://pypi.org/project/lws/" pypi = "lws/lws-1.2.6.tar.gz" version('1.2.6', sha256='ac94834832aadfcd53fcf4a77e1d95155063b39adbce14c733f8345bdac76e87') depends_on('python@3:', type=('build', 'run')) depends_on('py-cython', type='build') depends_on('py-setuptools', type='build') depends_on('py-numpy', type=('build', 'run')) depends_on('py-scipy', type=('build', 'run')) def setup_build_environment(self, env): env.set('LWS_USE_CYTHON', 1)
player1537-forks/spack
var/spack/repos/builtin/packages/hw-probe/package.py
<filename>var/spack/repos/builtin/packages/hw-probe/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 HwProbe(MakefilePackage): """Hardware Probe Tool (hw-probe).""" homepage = "https://github.com/linuxhw/hw-probe" url = "https://github.com/linuxhw/hw-probe/archive/1.5.tar.gz" version('1.5', sha256='8bb7d6ff272c1412e26fcfd86e9df5c3e34e1584552404b930c281b8498b25ea') version('1.4', sha256='90f3ea83bf641348b209e4a2a910f65d836ae7828c0be0f660236ea413bc46bb') version('1.3', sha256='820ada4f16cb827e0990eb918e75423845fef54a863fdd88aa5bd23127354229') def install(self, spec, prefix): make('install', 'prefix={0}'.format(prefix))
player1537-forks/spack
var/spack/repos/builtin/packages/bpp-seq-omics/package.py
<filename>var/spack/repos/builtin/packages/bpp-seq-omics/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 BppSeqOmics(CMakePackage): """Bio++ Sequence Omics Library""" homepage = "http://biopp.univ-montp2.fr/wiki/index.php/Installation" url = "https://github.com/BioPP/bpp-seq-omics/archive/v2.4.1.tar.gz" version('2.4.1', sha256='200da925b42065998d825f0b2a37e26b00a865883c85bc332beb3a94cae1e08b') version('2.4.0', sha256='3217c7d6253f32c101d628aa039f2b3c49c3990de46c6842f2b88637da408e21') version('2.3.2', sha256='2254ffe181bb7582b73ca186cd366c321423177ea07866fd7c04c8a4bbcf5ac3') version('2.3.1', sha256='3217b35fa98e94824e19e5e2765f4561cb5d5ec0f93f5f4e7fc213e6b5b59e83') version('2.3.0', sha256='be0c8c593e48cd94a2a878e8635609788dfa806179f7844ecf8243e548bfe0fa') depends_on('bpp-core') depends_on('bpp-seq')
player1537-forks/spack
var/spack/repos/builtin/packages/py-gpyopt/package.py
<filename>var/spack/repos/builtin/packages/py-gpyopt/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 PyGpyopt(PythonPackage): """ Performs global optimization with different acquisition functions. Among other functionalities, it is possible to use GPyOpt to optimize physical experiments (sequentially or in batches) and tune the parameters of Machine Learning algorithms. It is able to handle large data sets via sparse Gaussian process models.""" homepage = "http://sheffieldml.github.io/GPyOpt/" pypi = "GPyOpt/GPyOpt-1.2.6.tar.gz" version('1.2.6', sha256='e714daa035bb529a6db23c53665a762a4ab3456b9329c19ad3b03983f94c9b2a') depends_on('py-setuptools', type='build') depends_on('py-numpy@1.7:', type=('build', 'run')) depends_on('py-scipy@0.16:', type=('build', 'run')) depends_on('py-gpy@1.8:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/r-copula/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 RCopula(RPackage): """Multivariate Dependence with Copulas. Classes (S4) of commonly used elliptical, Archimedean, extreme-value and other copula families, as well as their rotations, mixtures and asymmetrizations. Nested Archimedean copulas, related tools and special functions. Methods for density, distribution, random number generation, bivariate dependence measures, Rosenblatt transform, Kendall distribution function, perspective and contour plots. Fitting of copula models with potentially partly fixed parameters, including standard errors. Serial independence tests, copula specification tests (independence, exchangeability, radial symmetry, extreme-value dependence, goodness-of-fit) and model selection based on cross-validation. Empirical copula, smoothed versions, and non-parametric estimators of the Pickands dependence function.""" cran = "copula" version('1.0-1', sha256='d09b2ccffc7379e48b00952aa6b282baf502feebaf55cc44e93f881d7b909742') version('0.999-20', sha256='7d3d47bce2dacb05b94a772f84dbf3d83c99ac2ac11e5f1b4b03d50d9d5c0fb0') depends_on('r@3.2.0:', type=('build', 'run')) depends_on('r@3.5.0:', type=('build', 'run'), when='@1.0-1:') depends_on('r-matrix', type=('build', 'run')) depends_on('r-lattice', type=('build', 'run')) depends_on('r-colorspace', type=('build', 'run')) depends_on('r-gsl', type=('build', 'run')) depends_on('r-adgoftest', type=('build', 'run')) depends_on('r-stabledist@0.6-4:', type=('build', 'run')) depends_on('r-mvtnorm', type=('build', 'run')) depends_on('r-pcapp', type=('build', 'run')) depends_on('r-pspline', type=('build', 'run')) depends_on('r-numderiv', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/sailfish/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 Sailfish(CMakePackage): """Sailfish is a tool for transcript quantification from RNA-seq data.""" homepage = "https://www.cs.cmu.edu/~ckingsf/software/sailfish" url = "https://github.com/kingsfordgroup/sailfish/archive/v0.10.1.tar.gz" version('0.10.1', sha256='a0d6d944382f2e07ffbfd0371132588e2f22bb846ecfc3d3435ff3d81b30d6c6') depends_on('boost@1.55:') depends_on('tbb')
player1537-forks/spack
var/spack/repos/builtin/packages/otf/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 Otf(AutotoolsPackage): """To improve scalability for very large and massively parallel traces the Open Trace Format (OTF) is developed at ZIH as a successor format to the Vampir Trace Format (VTF3).""" homepage = "http://tu-dresden.de/die_tu_dresden/zentrale_einrichtungen/zih/forschung/projekte/otf/index_html/document_view?set_language=en" url = "https://wwwpub.zih.tu-dresden.de/%7Emlieber/dcount/dcount.php?package=otf&get=OTF-1.12.5salmon.tar.gz" maintainers = ['michaelkuhn'] version('1.12.5salmon', sha256='0a8427360dedb38e8ddca30f14d95f826420c550337c5a79dbb754904e194088') depends_on('zlib') def configure_args(self): args = [] args.append('--without-mpi') args.append('--without-vtf3') args.append('--without-zoidfs') args.append('--with-zlib') args.append('--with-zlib-dir={0}'.format(self.spec['zlib'].prefix)) return args
player1537-forks/spack
var/spack/repos/builtin.mock/packages/impossible-concretization/package.py
<filename>var/spack/repos/builtin.mock/packages/impossible-concretization/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 ImpossibleConcretization(Package): """Package that should be impossible to concretize due to a conflict with target ranges. See Issue 19981. """ homepage = "http://www.example.com" url = "http://www.example.com/example-1.0.tar.gz" version(1.0, '0123456789abcdef0123456789abcdef') conflicts('target=x86_64:')
player1537-forks/spack
var/spack/repos/builtin/packages/py-trojanzoo-sphinx-theme/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 PyTrojanzooSphinxTheme(PythonPackage): """TrojanZoo Sphinx Theme""" homepage = "https://github.com/ain-soph/trojanzoo_sphinx_theme" pypi = "trojanzoo_sphinx_theme/trojanzoo_sphinx_theme-0.1.0.tar.gz" version('0.1.0', sha256='7b80d70ec84279156dcb9668d3a8a135be1d0d54e20f554fc03ad22d9ff5e7b3') depends_on('python@3:', type=('build', 'run')) depends_on('py-setuptools@40.9:', type='build') depends_on('py-sphinx@4.2:', type=('build', 'run')) depends_on('py-docutils@0.17.1:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-dh-scikit-optimize/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 PyDhScikitOptimize(PythonPackage): """A Modified version of scikit-optimize a Sequential model-based optimization toolbox for DeepHyper. Scikit-Optimize, or skopt, is a simple and efficient library to minimize (very) expensive and noisy black-box functions. It implements several methods for sequential model-based optimization. skopt aims to be accessible and easy to use in many contexts. The library is built on top of NumPy, SciPy and Scikit-Learn.""" maintainers = ['Kerilk'] homepage = "https://github.com/deephyper/scikit-optimize" pypi = "dh-scikit-optimize/dh-scikit-optimize-0.9.0.tar.gz" version('0.9.5', sha256='c2777839a536215ab40fc5db2242809ccffd5e5b23718e23d58ea76ff35a7543') version('0.9.4', sha256='9acfba4077fe45f3854a4af255763a3e8a396c05bd2a7c761a969171366b3840') version('0.9.3', sha256='0c922c61dc1f010c7bbd2f0930c766e8ae040c35b129e4de6d51b611fd72b7c9') version('0.9.2', sha256='9fd2d3accad7c3aca1d0edd0c88ec5490e9bc7a07f31d88f4051466a132dfd1d') version('0.9.1', sha256='70e70011f4fd107082174c557de70ba37c215e71a676788234b85d5c370fd7bd') version('0.9.0', sha256='fe70aa57ec5150a3d356b2184f0dda1ecc4ecb7e82d35edac3980094d409d676') variant('plots', default=False, description='Build with plot support from py-matplotlib') depends_on('python@3.6:', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-joblib@0.11:', type=('build', 'run')) depends_on('py-pyaml@16.9:', type=('build', 'run')) depends_on('py-numpy@1.13.3:', type=('build', 'run')) depends_on('py-scipy@0.19.1:', type=('build', 'run')) depends_on('py-scikit-learn@0.20.0:', type=('build', 'run')) depends_on('py-configspace@0.4.20:', type=('build', 'run')) depends_on('py-pandas', type=('build', 'run'), when='@0.9.1:') depends_on('py-matplotlib@2.0.0:', when='+plots', type='run')
player1537-forks/spack
var/spack/repos/builtin/packages/perl-io-prompt/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 PerlIoPrompt(PerlPackage): """By default, this module exports a single function prompt. It prompts the user to enter some input, and returns an object that represents the user input. You may specify various flags to the function to affect its behaviour; most notably, it defaults to automatically chomp the input, unless the -line flag is specified. Two other functions are exported at request: hand_print, which simulates hand-typing to the console; and get_input, which is the lower-level function that actually prompts the user for a suitable input. Note that this is an interim re-release. A full release with better documentation will follow in the near future. Meanwhile, please consult the examples directory from this module's CPAN distribution to better understand how to make use of this module.""" homepage = "https://metacpan.org/pod/IO::Prompt" url = "https://cpan.metacpan.org/authors/id/D/DC/DCONWAY/IO-Prompt-0.997004.tar.gz" version('0.997004', sha256='f17bb305ee6ac8b5b203e6d826eb940c4f3f6d6f4bfe719c3b3a225f46f58615') depends_on('perl-module-build', type='build') depends_on('perl-termreadkey', type=('build', 'run')) depends_on('perl-want', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin.mock/packages/deprecated-versions/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 DeprecatedVersions(Package): """Package with the most recent version deprecated""" homepage = "http://www.example.com" url = "http://www.example.com/c-1.0.tar.gz" version('1.1.0', '0123456789abcdef0123456789abcdef', deprecated=True) version('1.0.0', '0123456789abcdef0123456789abcdef')
player1537-forks/spack
var/spack/repos/builtin/packages/r-multitaper/package.py
<filename>var/spack/repos/builtin/packages/r-multitaper/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 RMultitaper(RPackage): """Spectral Analysis Tools using the Multitaper Method. Implements multitaper spectral analysis using discrete prolate spheroidal sequences (Slepians) and sine tapers. It includes an adaptive weighted multitaper spectral estimate, a coherence estimate, Thomson's Harmonic F-test, and complex demodulation. The Slepians sequences are generated efficiently using a tridiagonal matrix solution, and jackknifed confidence intervals are available for most estimates. This package is an implementation of the method described in <NAME> (1982) "Spectrum estimation and harmonic analysis" <doi:10.1109/PROC.1982.12433>.""" cran = "multitaper" version('1.0-15', sha256='837d71f3b46fbce2bea210449cf75e609f5363ff23b7808f5f115fdc51e6a3be') version('1.0-14', sha256='c84c122541dc2874131446e23b212259b3b00590d701efee49e6740fd74a8d13') depends_on('r@3.0:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-datalad-neuroimaging/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 PyDataladNeuroimaging(PythonPackage): """DataLad extension package for neuro/medical imaging""" homepage = "https://github.com/datalad/datalad-neuroimaging" pypi = "datalad_neuroimaging/datalad_neuroimaging-0.3.1.tar.gz" version('0.3.1', sha256='aaf7a3d10e8e7df1d8dee09e485bbe26787f496fb2302ed7ddea55a470a0f96e') depends_on('py-setuptools', type='build') depends_on('py-datalad@0.12:', type=('build', 'run')) depends_on('py-pydicom', type=('build', 'run')) depends_on('py-pybids@0.9.2:', type=('build', 'run')) depends_on('py-nibabel', type=('build', 'run')) depends_on('py-pandas', type=('build', 'run')) depends_on('git-annex', type='run')
player1537-forks/spack
var/spack/repos/builtin/packages/cronie/package.py
<filename>var/spack/repos/builtin/packages/cronie/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 Cronie(AutotoolsPackage): """Cronie contains the standard UNIX daemon crond that runs specified programs at scheduled times and related tools.""" homepage = "https://github.com/cronie-crond/cronie" url = "https://github.com/cronie-crond/cronie/archive/cronie-1.5.5.tar.gz" version('1.5.5', sha256='22c2a2b22577c0f776c1268d0e0f305c5c041e10155022a345b43b665da0ffe9') def autoreconf(self, spec, prefix): bash = which('bash') bash('./autogen.sh') def setup_run_environment(self, env): env.prepend_path('PATH', self.prefix.sbin)
player1537-forks/spack
var/spack/repos/builtin/packages/r-xnomial/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) # See the Spack documentation for more information on packaging. from spack import * class RXnomial(RPackage): """Exact Goodness-of-Fit Test for Multinomial Data with Fixed Probabilities. Tests whether a set of counts fit a given expected ratio. For example, a genetic cross might be expected to produce four types in the relative frequencies of 9:3:3:1. To see whether a set of observed counts fits this expectation, one can examine all possible outcomes with xmulti() or a random sample of them with xmonte() and find the probability of an observation deviating from the expectation by at least as much as the observed. As a measure of deviation from the expected, one can use the log-likelihood ratio, the multinomial probability, or the classic chi-square statistic. A histogram of the test statistic can also be plotted and compared with the asymptotic curve.""" cran = "XNomial" version('1.0.4', sha256='e6237f79d96f02bb30af1cf055ae9f70541abba34ce045a9d4359b5304189dd7') depends_on('r@2.14:', type=('build', 'run'))
player1537-forks/spack
var/spack/repos/builtin/packages/py-unshare/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 PyUnshare(PythonPackage): """Python extension for Linux kernel's unshare syscall.""" homepage = "https://github.com/shubham1172/unshare" pypi = "unshare/unshare-0.22.tar.gz" version('0.22', sha256='d521d72cca6e876f22cbd5ff5eb51f1beef75e8f9c53b599b55fa05fba1dd3a6') depends_on('py-setuptools', type='build') conflicts('platform=darwin', msg='unshare is linux-only')
player1537-forks/spack
var/spack/repos/builtin/packages/r-combinat/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 RCombinat(RPackage): """combinatorics utilities. routines for combinatorics.""" cran = "combinat" version('0.0-8', sha256='1513cf6b6ed74865bfdd9f8ca58feae12b62f38965d1a32c6130bef810ca30c1')
player1537-forks/spack
lib/spack/external/attr/_config.py
<reponame>player1537-forks/spack from __future__ import absolute_import, division, print_function __all__ = ["set_run_validators", "get_run_validators"] _run_validators = True def set_run_validators(run): """ Set whether or not validators are run. By default, they are run. """ if not isinstance(run, bool): raise TypeError("'run' must be bool.") global _run_validators _run_validators = run def get_run_validators(): """ Return whether or not validators are run. """ return _run_validators
player1537-forks/spack
var/spack/repos/builtin/packages/py-petastorm/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 PyPetastorm(PythonPackage): """Petastorm is a library enabling the use of Parquet storage from Tensorflow, Pytorch, and other Python-based ML training frameworks.""" homepage = "https://github.com/uber/petastorm" pypi = "petastorm/petastorm-0.8.2.tar.gz" maintainers = ['adamjstewart'] version('0.9.8', sha256='66009b7ad3f08b0485a748f12b2095a0d2470e04f0c63de43cd5b099f270c268') version('0.8.2', sha256='7782c315e1ee8d15c7741e3eea41e77b9efce661cf58aa0220a801db64f52f91') depends_on('python@3:', when='@0.9.8:', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-dill@0.2.1:', type=('build', 'run')) depends_on('py-diskcache@3.0.0:', type=('build', 'run')) depends_on('py-future@0.10.2:', type=('build', 'run')) depends_on('py-futures@2.0:', type=('build', 'run'), when='^python@:2') depends_on('py-numpy@1.13.3:', type=('build', 'run')) depends_on('py-packaging@15.0:', type=('build', 'run')) depends_on('py-pandas@0.19.0:', type=('build', 'run')) depends_on('py-psutil@4.0.0:', type=('build', 'run')) depends_on('py-pyspark@2.1.0:', type=('build', 'run')) depends_on('py-pyzmq@14.0.0:', type=('build', 'run')) depends_on('py-pyarrow@0.12.0:', type=('build', 'run'), when='@:0.8.2') depends_on('py-pyarrow@0.17.1:', type=('build', 'run'), when='@0.9.8:') depends_on('py-six@1.5.0:', type=('build', 'run'))
player1537-forks/spack
lib/spack/spack/test/cmd/stage.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 import spack.environment as ev import spack.repo from spack.main import SpackCommand from spack.version import Version stage = SpackCommand('stage') env = SpackCommand('env') pytestmark = pytest.mark.usefixtures('install_mockery', 'mock_packages') def test_stage_spec(monkeypatch): """Verify that staging specs works.""" expected = set(['trivial-install-test-package', 'mpileaks']) def fake_stage(pkg, mirror_only=False): expected.remove(pkg.name) monkeypatch.setattr(spack.package.PackageBase, 'do_stage', fake_stage) stage('trivial-install-test-package', 'mpileaks') assert len(expected) == 0 @pytest.fixture(scope='function') def check_stage_path(monkeypatch, tmpdir): expected_path = os.path.join(str(tmpdir), 'x') def fake_stage(pkg, mirror_only=False): assert pkg.path == expected_path assert os.path.isdir(expected_path), expected_path monkeypatch.setattr(spack.package.PackageBase, 'do_stage', fake_stage) return expected_path def test_stage_path(check_stage_path): """Verify that --path only works with single specs.""" stage('--path={0}'.format(check_stage_path), 'trivial-install-test-package') def test_stage_path_errors_multiple_specs(check_stage_path): """Verify that --path only works with single specs.""" with pytest.raises(spack.main.SpackCommandError): stage('--path={0}'.format(check_stage_path), 'trivial-install-test-package', 'mpileaks') def test_stage_with_env_outside_env(mutable_mock_env_path, monkeypatch): """Verify that stage concretizes specs not in environment instead of erroring.""" def fake_stage(pkg, mirror_only=False): assert pkg.name == 'trivial-install-test-package' assert pkg.path is None monkeypatch.setattr(spack.package.PackageBase, 'do_stage', fake_stage) e = ev.create('test') e.add('mpileaks') e.concretize() with e: stage('trivial-install-test-package') def test_stage_with_env_inside_env(mutable_mock_env_path, monkeypatch): """Verify that stage filters specs in environment instead of reconcretizing.""" def fake_stage(pkg, mirror_only=False): assert pkg.name == 'mpileaks' assert pkg.version == Version('100.100') monkeypatch.setattr(spack.package.PackageBase, 'do_stage', fake_stage) e = ev.create('test') e.add('mpileaks@100.100') e.concretize() with e: stage('mpileaks') def test_stage_full_env(mutable_mock_env_path, monkeypatch): """Verify that stage filters specs in environment.""" e = ev.create('test') e.add('mpileaks@100.100') e.concretize() # list all the package names that should be staged expected = set() for spec in e.specs_by_hash.values(): for dep in spec.traverse(): expected.add(dep.name) # pop the package name from the list instead of actually staging def fake_stage(pkg, mirror_only=False): expected.remove(pkg.name) monkeypatch.setattr(spack.package.PackageBase, 'do_stage', fake_stage) with e: stage() # assert that all were staged assert len(expected) == 0
player1537-forks/spack
var/spack/repos/builtin/packages/gmime/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 Gmime(AutotoolsPackage): """GMime is a C/C++ library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME). """ homepage = "http://spruce.sourceforge.net/gmime/" url = "https://download.gnome.org/sources/gmime/2.6/gmime-2.6.23.tar.xz" version('2.6.23', sha256='7149686a71ca42a1390869b6074815106b061aaeaaa8f2ef8c12c191d9a79f6a') depends_on('glib@2.18.0:') depends_on('libgpg-error')
player1537-forks/spack
var/spack/repos/builtin/packages/r-trust/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 RTrust(RPackage): """Trust Region Optimization. Does local optimization using two derivatives and trust regions. Guaranteed to converge to local minimum of objective function.""" cran = "trust" version('0.1-8', sha256='952e348b62aec35988b103fd152329662cb6a451538f184549252fbf49d7dcac') version('0.1-7', sha256='e3d15aa84a71becd2824253d4a8156bdf1ab9ac3b72ced0cd53f3bb370ac6f04') depends_on('r@2.10.0:', type=('build', 'run'))