# -*- 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-installer
version             0.7.0
platforms           {darwin any}
supported_archs     noarch
maintainers         {jmr @jmroot} openmaintainer
license             MIT

description         Python wheel installer

long_description    This is a low-level library for installing a \
                    Python package from a wheel distribution. It \
                    provides basic functionality and abstractions for \
                    handling wheels and installing packages from wheels.

homepage            https://installer.readthedocs.io/

checksums           md5 d961d1105c9270049528b1167ed021bc \
                    rmd160 ce7feaab4cab0fe465e6a5fe142bc32dcdd1e938 \
                    sha256 a26d3e3116289bb08216e0d0f7d925fcef0b0194eedfa0c944bcaaa106c4b631

python.versions     37 38 39 310 311 312 313 314

if {$subport ne $name} {
    python.pep517   yes
    python.pep517_backend   flit
    python.add_dependencies no
    depends_build   port:py-bootstrap-modules
    depends_lib     port:python${python.version}

    build.env-append    PYTHONPATH=${prefix}/share/py-bootstrap-modules
    build.args      --skip-dependency-check
    destroot.env-append PYTHONPATH=${worksrcpath}/src
    livecheck.type  none
}
