mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 19:26:50 +00:00
scripts: add python-flit toolchain
This commit is contained in:
parent
7169541b3e
commit
68313a722e
@ -119,7 +119,7 @@ if [ -z "${PKG_TOOLCHAIN}" -o "${PKG_TOOLCHAIN}" = "auto" ]; then
|
|||||||
fi
|
fi
|
||||||
_auto_toolchain=" (auto-detect)"
|
_auto_toolchain=" (auto-detect)"
|
||||||
fi
|
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}"
|
die "$(print_color "CLR_ERROR" "ERROR:") unknown toolchain ${PKG_TOOLCHAIN}"
|
||||||
fi
|
fi
|
||||||
build_msg "CLR_TOOLCHAIN" "TOOLCHAIN" "${PKG_TOOLCHAIN}${_auto_toolchain}"
|
build_msg "CLR_TOOLCHAIN" "TOOLCHAIN" "${PKG_TOOLCHAIN}${_auto_toolchain}"
|
||||||
@ -416,6 +416,15 @@ else
|
|||||||
echo "Executing (bootstrap): make ${PKG_MAKE_OPTS_BOOTSTRAP}" | tr -s " "
|
echo "Executing (bootstrap): make ${PKG_MAKE_OPTS_BOOTSTRAP}" | tr -s " "
|
||||||
make ${PKG_MAKE_OPTS_BOOTSTRAP}
|
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
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -475,6 +484,14 @@ else
|
|||||||
"configure:bootstrap" | "cmake-make:bootstrap" | "autotools:bootstrap" | "make:bootstrap")
|
"configure:bootstrap" | "cmake-make:bootstrap" | "autotools:bootstrap" | "make:bootstrap")
|
||||||
make install ${PKG_MAKEINSTALL_OPTS_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
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user