2019-12-31 14:36:56 +08:00
|
|
|
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2017-11-17 01:13:20 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2017-11-17 01:13:20 +08:00
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class PyNumba(PythonPackage):
|
|
|
|
"""NumPy aware dynamic Python compiler using LLVM"""
|
|
|
|
|
|
|
|
homepage = "https://numba.pydata.org/"
|
|
|
|
url = "https://pypi.io/packages/source/n/numba/numba-0.35.0.tar.gz"
|
|
|
|
|
2020-08-22 01:45:57 +08:00
|
|
|
version('0.50.1', sha256='89e81b51b880f9b18c82b7095beaccc6856fcf84ba29c4f0ced42e4e5748a3a7')
|
2020-02-28 12:28:16 +08:00
|
|
|
version('0.48.0', sha256='9d21bc77e67006b5723052840c88cc59248e079a907cc68f1a1a264e1eaba017')
|
2018-11-13 13:07:40 +08:00
|
|
|
version('0.40.1', sha256='52d046c13bcf0de79dbfb936874b7228f141b9b8e3447cc35855e9ad3e12aa33')
|
2019-10-11 13:44:41 +08:00
|
|
|
version('0.35.0', sha256='11564937757605bee590c5758c73cfe9fd6d569726b56d970316a6228971ecc3')
|
2017-11-17 01:13:20 +08:00
|
|
|
|
2020-02-28 12:28:16 +08:00
|
|
|
depends_on('python@3.6:', type=('build', 'run'), when='@0.48.0:')
|
2020-08-22 01:45:57 +08:00
|
|
|
depends_on('python@3.3:3.7.9999', type=('build', 'run'), when='@0.40.1:0.47.999')
|
2018-11-13 13:07:40 +08:00
|
|
|
depends_on('python@3.3:3.6.9999', type=('build', 'run'), when='@:0.35.0')
|
2020-02-28 12:28:16 +08:00
|
|
|
depends_on('py-numpy@1.15:', type=('build', 'run'), when='@0.48.0:')
|
2018-11-13 13:07:40 +08:00
|
|
|
depends_on('py-numpy@1.10:1.99', type=('build', 'run'))
|
2020-02-28 12:28:16 +08:00
|
|
|
depends_on('py-setuptools', type=('build', 'run'))
|
2018-11-13 13:07:40 +08:00
|
|
|
|
|
|
|
# Note: As of 1 Nov 2018, 0.25 was the latest version of py-llvmlite.
|
|
|
|
# That's why it was chosen as an upper bound in the following depends_on
|
|
|
|
# calls. If newer versions maintain backwards compatibility, the calls
|
|
|
|
# can be updated accordingly.
|
2020-08-22 01:45:57 +08:00
|
|
|
depends_on('py-llvmlite@0.33:0.34', type=('build', 'run'), when='@0.50.1')
|
2020-02-28 12:28:16 +08:00
|
|
|
depends_on('py-llvmlite@0.31.0:0.32.0', type=('build', 'run'), when='@0.48.0')
|
2018-12-22 01:34:32 +08:00
|
|
|
depends_on('py-llvmlite@0.25:', type=('build', 'run'), when='@0.40.1:')
|
2018-11-13 13:07:40 +08:00
|
|
|
depends_on('py-llvmlite@0.20:0.25', type=('build', 'run'), when='@0.35.1')
|
|
|
|
|
2019-12-01 03:07:14 +08:00
|
|
|
depends_on('py-argparse', type=('build', 'run'), when='^python@:2.6')
|
2018-11-13 13:07:40 +08:00
|
|
|
depends_on('py-funcsigs', type=('build', 'run'), when='^python@:3.3.99')
|
2017-11-17 01:13:20 +08:00
|
|
|
depends_on('py-singledispatch', type=('build', 'run'), when='^python@:3.3.99')
|
2018-07-27 06:47:18 +08:00
|
|
|
|
|
|
|
# Version 6.0.0 of llvm had a hidden symbol which breaks numba at runtime.
|
|
|
|
# See https://reviews.llvm.org/D44140
|
|
|
|
conflicts('^llvm@6.0.0')
|