1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 21:33:54 -05:00

Add pyston-2.3.1 support

We changed the directory structure for pyston 2.3.1 slightly, where we now
include a top-level "pyston-2.3.1" directory when you unpack the tarball.
This commit is contained in:
Kevin Modzelewski
2021-09-24 15:10:50 -04:00
parent 9ecfdd1073
commit 3051d21004
4 changed files with 42 additions and 4 deletions

View File

@@ -858,8 +858,8 @@ build_package_jython_builder() {
( cd "dist" && build_package_jython )
}
build_package_pyston() {
# currently supported version 2.2 and upper
build_package_pyston2.2() {
# currently supported version 2.2 and 2.3
build_package_copy
mkdir -p "${PREFIX_PATH}/bin" "${PREFIX_PATH}/lib"
local bin
@@ -876,6 +876,25 @@ build_package_pyston() {
shopt -u nullglob
}
build_package_pyston() {
# currently supported version 2.3.1 and higher
build_package_copy
mv "${PREFIX_PATH}/usr/bin" "${PREFIX_PATH}/bin"
mv "${PREFIX_PATH}/usr/lib" "${PREFIX_PATH}/lib"
local bin
shopt -s nullglob
for bin in "usr/bin/"*; do
if [ -f "${bin}" ] && [ -x "${bin}" ] && [ ! -L "${bin}" ]; then
case "${bin##*/}" in
"python"* )
( cd "${PREFIX_PATH}/bin" && ln -fs ../usr/bin/"${bin##*/}" "python" )
;;
esac
fi
done
shopt -u nullglob
}
build_package_ironpython() {
mkdir -p "${PREFIX_PATH}/bin"
cp -fR . "${PREFIX_PATH}/bin"