mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
commit
0e298b691d
2 changed files with 36 additions and 0 deletions
|
@ -918,6 +918,15 @@ build_package_jython_builder() {
|
||||||
( cd "dist" && build_package_jython )
|
( cd "dist" && build_package_jython )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build_package_pyston() {
|
||||||
|
mkdir -p "${PREFIX_PATH}/"
|
||||||
|
cp -fR . "${PREFIX_PATH}/"
|
||||||
|
chmod +x "${PREFIX_PATH}/"pyston
|
||||||
|
# FIXME ugly hack below adapted from
|
||||||
|
# https://github.com/dropbox/pyston/blob/master/docker/pyston/Dockerfile
|
||||||
|
( cd "${PREFIX_PATH}/" && ./pyston virtualenv/virtualenv.py . )
|
||||||
|
}
|
||||||
|
|
||||||
build_package_ironpython() {
|
build_package_ironpython() {
|
||||||
mkdir -p "${PREFIX_PATH}/bin"
|
mkdir -p "${PREFIX_PATH}/bin"
|
||||||
cp -fR . "${PREFIX_PATH}/bin"
|
cp -fR . "${PREFIX_PATH}/bin"
|
||||||
|
@ -955,6 +964,10 @@ pypy_architecture() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pyston_architecture() {
|
||||||
|
pypy_architecture
|
||||||
|
}
|
||||||
|
|
||||||
build_package_pypy() {
|
build_package_pypy() {
|
||||||
build_package_copy
|
build_package_copy
|
||||||
mkdir -p "${PREFIX_PATH}/bin" "${PREFIX_PATH}/lib"
|
mkdir -p "${PREFIX_PATH}/bin" "${PREFIX_PATH}/lib"
|
||||||
|
|
23
plugins/python-build/share/python-build/pyston-0.5.1
Normal file
23
plugins/python-build/share/python-build/pyston-0.5.1
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
case "$(pyston_architecture 2>/dev/null || true)" in
|
||||||
|
"linux64" )
|
||||||
|
install_package "pyston-0.5.1-linux64" "https://github.com/dropbox/pyston/releases/download/v0.5.1/pyston-0.5.1-linux64.tar.gz#4b0d2ad2c19f6393b79adbb9312649d38cb8cb3daf0c8fdf8631465c7761bb79" "pyston" verify_py27
|
||||||
|
# disabling ensurepip avoids having installation aborted because of a coredump
|
||||||
|
# pyston targets python 2.7.7 and does not have ensurepip, when attempting to
|
||||||
|
# run https://bootstrap.pypa.io/get-pip.py it dumps core, see
|
||||||
|
# https://github.com/dropbox/pyston/issues/1373
|
||||||
|
# activate the virtualenv so that we're using the correct pip and site-packages location
|
||||||
|
# ( source "${PREFIX_PATH}/bin/activate" )
|
||||||
|
# FIXME: if this fails it should not break the installation
|
||||||
|
# ( cd "${PREFIX_PATH}/bin" && ./pip install https://github.com/dropbox/pyston/releases/download/v0.5.1/Cython-0.24-pyston.tar.gz && ./pip install git+git://github.com/numpy/numpy@v1.11.0 )
|
||||||
|
# deactivate the virtualenv
|
||||||
|
# ( deactivate )
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
{ echo
|
||||||
|
colorize 1 "ERROR"
|
||||||
|
echo ": A Pyston 0.5.1 binary is not available for $(pyston_architecture 2>/dev/null || true)."
|
||||||
|
echo
|
||||||
|
} >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
Loading…
Reference in a new issue