# -*- 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             1.1.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           rmd160 818dc47fdabeb2d0801b2bb5995a2a6e6430e833 \
                    sha256 5adc0c01ce62d809989e246987cd68944fe5df8af562d0358f65b2ab15cb5de7

python.versions     37 38 39 310 311 312 313 314 315

if {$subport ne $name} {
    if {${python.version} <= 39} {
        version     0.7.0
        checksums   md5 d961d1105c9270049528b1167ed021bc \
                    rmd160 ce7feaab4cab0fe465e6a5fe142bc32dcdd1e938 \
                    sha256 a26d3e3116289bb08216e0d0f7d925fcef0b0194eedfa0c944bcaaa106c4b631
    }
    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
}
