diff options
| -rw-r--r-- | meta/classes/flit_core.bbclass | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass index 819d12457c..a7667795fe 100644 --- a/meta/classes/flit_core.bbclass +++ b/meta/classes/flit_core.bbclass | |||
| @@ -3,15 +3,13 @@ inherit pip_install_wheel python3native python3-dir setuptools3-base | |||
| 3 | DEPENDS += "python3 python3-flit-core-native python3-pip-native" | 3 | DEPENDS += "python3 python3-flit-core-native python3-pip-native" |
| 4 | 4 | ||
| 5 | flit_core_do_configure () { | 5 | flit_core_do_configure () { |
| 6 | mkdir -p ${S}/dist | 6 | : |
| 7 | cat > ${S}/build-it.py << EOF | ||
| 8 | from flit_core import buildapi | ||
| 9 | buildapi.build_wheel('./dist') | ||
| 10 | EOF | ||
| 11 | } | 7 | } |
| 12 | 8 | ||
| 9 | # TODO: ideally this uses pypa/build | ||
| 13 | flit_core_do_compile () { | 10 | flit_core_do_compile () { |
| 14 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py | 11 | mkdir -p ${S}/dist |
| 12 | nativepython3 -c "from flit_core import buildapi; buildapi.build_wheel('./dist')" | ||
| 15 | } | 13 | } |
| 16 | 14 | ||
| 17 | EXPORT_FUNCTIONS do_configure do_compile | 15 | EXPORT_FUNCTIONS do_configure do_compile |
