1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 04:23:47 -05:00

Display warning if the PyPy is not built for the distro (#122)

This commit is contained in:
Yamashita Yuu
2014-03-05 02:39:58 +09:00
parent 4d22259ac3
commit 0c6b28c9aa
13 changed files with 397 additions and 442 deletions

View File

@@ -730,6 +730,23 @@ build_package_jython_builder() {
( cd "dist" && build_package_jython )
}
pypy_architecture() {
case "$(uname -s)" in
"Darwin" ) echo "osx64" ;;
"Linux" )
case "$(uname -m)" in
"armel" ) echo "linux-armel" ;;
"armhf" | "armv6l" | "armv7l" ) echo "linux-armhf" ;;
"i386" | "i486" | "i586" | "i686" | "i786" ) echo "linux" ;;
"x86_64" ) echo "linux64" ;;
* ) return 1 ;;
esac
;;
"CYGWIN"* | "MINGW"* ) echo "win32" ;;
* ) return 1 ;;
esac
}
build_package_pypy() {
build_package_copy
{ if [ -x "${PREFIX_PATH}/bin/pypy" ] && [ ! -x "${PREFIX_PATH}/bin/python" ]; then