summaryrefslogtreecommitdiffstats
path: root/meta/classes/setuptools_build_meta.bbclass
blob: b1441e65dd5943f9f95f4cc7206730a10b324681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
inherit pip_install_wheel setuptools3-base

DEPENDS += "python3 python3-setuptools-native python3-wheel-native"

setuptools_build_meta_do_configure () {
    mkdir -p ${S}/dist
    cat > ${S}/build-it.py << EOF
from setuptools import build_meta
wheel = build_meta.build_wheel('./dist')
print(wheel)
EOF
}

setuptools_build_meta_do_compile () {
    nativepython3 ${S}/build-it.py
}

EXPORT_FUNCTIONS do_configure do_compile