# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-pytensor
# confirm compatibility with py-pymc before updating the version
version             2.35.1
revision            0

categories-append   math
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Optimizing compiler for evaluating mathematical expressions \
                    on CPUs and GPUs.
long_description    {*}${description}

homepage            https://github.com/pymc-devs/pytensor

checksums           rmd160  be0ce8b068c7957d0d480a83d5c0cc1474d7b822 \
                    sha256  01364a31c6e86bcf99770d1e625d70bcdb90f8c72b1d3377f7c96b4009a3e195 \
                    size    4835996

python.versions     311 312 313

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-cython \
                    port:py${python.version}-toml \
                    port:py${python.version}-versioneer

    depends_lib-append \
                    port:py${python.version}-cons \
                    port:py${python.version}-etuples \
                    port:py${python.version}-filelock \
                    port:py${python.version}-logical-unification \
                    port:py${python.version}-minikanren \
                    port:py${python.version}-numpy \
                    port:py${python.version}-scipy \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-typing_extensions

    post-destroot {
        file delete ${destroot}/${python.pkgd}/bin/__init__.py
        delete ${destroot}${python.pkgd}/bin/__pycache__
    }
}
