summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-ilmbase/package.py
blob: f96cd9de39d34cde9434950392063a915b81f025 (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
25
26
27
28
29
30
31
32
33
# Copyright 2013-2023 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 PyIlmbase(AutotoolsPackage):
    """The PyIlmBase libraries provides python bindings for the IlmBase libraries."""

    homepage = "https://github.com/AcademySoftwareFoundation/openexr/tree/v2.3.0/PyIlmBase"
    url = "https://github.com/AcademySoftwareFoundation/openexr/releases/download/v2.3.0/pyilmbase-2.3.0.tar.gz"

    version("2.3.0", sha256="9c898bb16e7bc916c82bebdf32c343c0f2878fc3eacbafa49937e78f2079a425")

    depends_on("ilmbase")
    depends_on("boost+python")
    depends_on("py-numpy")

    # https://github.com/AcademySoftwareFoundation/openexr/issues/336
    parallel = False

    def configure_args(self):
        spec = self.spec

        args = [
            "--with-boost-python-libname=boost_python{0}".format(
                spec["python"].version.up_to(2).joined
            )
        ]

        return args