summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-blis/package.py
blob: a2a2f6bb12acb600fe61f7abd5790c7d80a00a23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2013-2022 Lawrence Livermore 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.package import *


class PyBlis(PythonPackage):
    """Cython BLIS: Fast BLAS-like operations from Python and Cython,
    without the tears"""

    homepage = "https://github.com/explosion/cython-blis"
    pypi = "blis/blis-0.4.1.tar.gz"

    version("0.4.1", sha256="d69257d317e86f34a7f230a2fd1f021fd2a1b944137f40d8cdbb23bd334cd0c4")

    depends_on("py-setuptools", type="build")
    depends_on("py-numpy@1.15:", type=("build", "run"))

    def setup_build_environment(self, env):
        env.set("BLIS_COMPILER", spack_cc)
        env.set("BLIS_ARCH", "generic")