diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-numba/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-numba/package.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-numba/package.py b/var/spack/repos/builtin/packages/py-numba/package.py new file mode 100644 index 0000000000..550ac571a8 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-numba/package.py @@ -0,0 +1,25 @@ +# Copyright 2013-2018 Lawrence Livermore 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 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" + + version('0.35.0', '4f447383406f54aaf18ffaba3a0e79e8') + + depends_on('py-numpy@1.10:', type=('build', 'run')) + depends_on('py-llvmlite@0.20:', type=('build', 'run')) + depends_on('py-argparse', type=('build', 'run')) + depends_on('py-funcsigs', type=('build', 'run'), when='^python@:3.3.99') + depends_on('py-singledispatch', type=('build', 'run'), when='^python@:3.3.99') + + # 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') |