# -*- 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.1

name                        py-installer
version                     1.0.1
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 c919fdc746e46b0a93ae53ed375e047f \
                            rmd160 d6be56305a9821efe80945e783f5a7f9ade8c84f \
                            sha256 052c7fc3721d54c696e2dea019be67539d7b144e924f559f54beb3121831c364

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

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.runtime}

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