Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 1 | SUMMARY = "This provides a PEP 517 build backend for packages using Flit." |
| 2 | DESCRIPTION = "This provides a PEP 517 build backend for packages using \ |
| 3 | Flit. The only public interface is the API specified by PEP 517, at \ |
| 4 | flit_core.buildapi." |
| 5 | HOMEPAGE = "https://github.com/pypa/flit" |
| 6 | BUGTRACKER = "https://github.com/pypa/flit/issues" |
| 7 | |
| 8 | LICENSE = "BSD-3-Clause" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=41eb78fa8a872983a882c694a8305f08" |
| 10 | |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 11 | SRC_URI[sha256sum] = "d0f2a8f4bd45dc794befbf5839ecc0fd3830d65a57bd52b5997542fac5d5e937" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 12 | |
| 13 | inherit pypi python_flit_core |
| 14 | |
| 15 | # Need to install by hand as there's a dependency loop |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 16 | DEPENDS:remove:class-native = " python3-picobuild-native python3-installer-native" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 17 | DEPENDS:append:class-native = " unzip-native" |
| 18 | |
| 19 | # We need the full flit tarball |
| 20 | PYPI_PACKAGE = "flit" |
| 21 | PEP517_SOURCE_PATH = "${S}/flit_core" |
| 22 | |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 23 | do_compile:class-native () { |
| 24 | python_flit_core_do_manual_build |
| 25 | } |
| 26 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 27 | do_install:class-native () { |
| 28 | python_pep517_do_bootstrap_install |
| 29 | } |
| 30 | |
| 31 | PACKAGES =+ "${PN}-tests" |
| 32 | |
| 33 | FILES:${PN}-tests += "\ |
| 34 | ${PYTHON_SITEPACKAGES_DIR}/flit_core/tests/* \ |
| 35 | " |
| 36 | |
| 37 | BBCLASSEXTEND = "native nativesdk" |