summaryrefslogtreecommitdiff
path: root/upstream-layers/openembedded-core/meta/recipes-devtools/python/python3-installer_1.0.1.bb
blob: 6727f8e21e8897a63ada87ad96c83877825667df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SUMMARY = "Library and tool for installing Python wheels"
DESCRIPTION = "A low-level library for installing a Python package from a wheel distribution."
HOMEPAGE = "https://installer.readthedocs.io/"
BUGTRACKER = "https://github.com/pypa/installer/issues"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5038641aec7a77451e31da828ebfae00"

SRC_URI += "file://interpreter.patch"

SRC_URI[sha256sum] = "052c7fc3721d54c696e2dea019be67539d7b144e924f559f54beb3121831c364"

inherit pypi python_flit_core

# Bootstrap the native build
DEPENDS:remove:class-native = "python3-build-native python3-installer-native"

RDEPENDS:${PN} += " \
    python3-compile \
    python3-compression \
    python3-netclient \
"

INSTALL_WHEEL_COMPILE_BYTECODE:class-native = "--no-compile-bytecode"

do_compile:class-native () {
    python_flit_core_do_manual_build
}

do_install:prepend:class-native() {
    export PYTHONPATH="${S}/src"
}

BBCLASSEXTEND = "native nativesdk"