diff --git a/scripts/build b/scripts/build index fc46b8c81d..aaa50da5bf 100755 --- a/scripts/build +++ b/scripts/build @@ -119,7 +119,7 @@ if [ -z "${PKG_TOOLCHAIN}" -o "${PKG_TOOLCHAIN}" = "auto" ]; then fi _auto_toolchain=" (auto-detect)" fi -if ! listcontains "meson cmake cmake-make configure ninja make autotools manual" "${PKG_TOOLCHAIN}"; then +if ! listcontains "meson cmake cmake-make configure ninja make autotools manual python-flit" "${PKG_TOOLCHAIN}"; then die "$(print_color "CLR_ERROR" "ERROR:") unknown toolchain ${PKG_TOOLCHAIN}" fi build_msg "CLR_TOOLCHAIN" "TOOLCHAIN" "${PKG_TOOLCHAIN}${_auto_toolchain}" @@ -416,6 +416,15 @@ else echo "Executing (bootstrap): make ${PKG_MAKE_OPTS_BOOTSTRAP}" | tr -s " " make ${PKG_MAKE_OPTS_BOOTSTRAP} ;; + + # python builds + "python-flit:target") + die "$(print_color "CLR_ERROR" "ERROR:") toolchain python-flit should not be used for target!" + ;; + "python-flit:host") + echo "Executing (host): python3 -m flit_core.wheel" + DONT_BUILD_LEGACY_PYC=1 python3 -m flit_core.wheel + ;; esac fi @@ -475,6 +484,14 @@ else "configure:bootstrap" | "cmake-make:bootstrap" | "autotools:bootstrap" | "make:bootstrap") make install ${PKG_MAKEINSTALL_OPTS_BOOTSTRAP} ;; + + # python builds + "python-flit:target") + die "$(print_color "CLR_ERROR" "ERROR:") toolchain python-flit should not be used for target!" + ;; + "python-flit:host") + python3 -m installer --overwrite-existing dist/*.whl + ;; esac fi