|
|
@ -567,20 +567,35 @@ build_package_python() { |
|
|
|
} |
|
|
|
|
|
|
|
build_package_jython() { |
|
|
|
{ |
|
|
|
build_package_copy |
|
|
|
cd "${PREFIX_PATH}/bin" |
|
|
|
ln -fs jython python |
|
|
|
} |
|
|
|
build_package_copy |
|
|
|
{ if [ -x "${PREFIX_PATH}/bin/jython" ] && [ ! -x "${PREFIX_PATH}/bin/python" ]; then |
|
|
|
( cd "${PREFIX_PATH}/bin" && ln -fs jython python ) |
|
|
|
fi |
|
|
|
} >&4 2>&1 |
|
|
|
} |
|
|
|
|
|
|
|
build_package_pypy() { |
|
|
|
{ |
|
|
|
mkdir -p "$PREFIX_PATH" |
|
|
|
cp -R . "$PREFIX_PATH" |
|
|
|
cd "${PREFIX_PATH}/bin" |
|
|
|
ln -fs pypy python |
|
|
|
} |
|
|
|
build_package_copy |
|
|
|
{ if [ -x "${PREFIX_PATH}/bin/pypy" ] && [ ! -x "${PREFIX_PATH}/bin/python" ]; then |
|
|
|
( cd "${PREFIX_PATH}/bin" && ln -fs pypy python ) |
|
|
|
fi |
|
|
|
} >&4 2>&1 |
|
|
|
} |
|
|
|
|
|
|
|
build_package_pypy_builder() { |
|
|
|
if [ -f "rpython/bin/rpython" ]; then # pypy 2.x |
|
|
|
python "rpython/bin/rpython" -Ojit "pypy/goal/targetpypystandalone.py" >&4 2>&1 |
|
|
|
elif [ -f "pypy/translator/goal/translate.py" ]; then # pypy 1.x |
|
|
|
( cd "pypy/translator/goal" && python "translate.py" --out=jit "targetpypystandalone.py" ) 1>&4 2>&1 |
|
|
|
else |
|
|
|
echo "not a pypy source tree" 1>&3 |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
if [ -x "pypy-c" ] && [ ! -x "bin/pypy" ]; then |
|
|
|
mkdir -p "bin" |
|
|
|
mv -f "pypy-c" "bin/pypy" |
|
|
|
fi |
|
|
|
build_package_pypy |
|
|
|
} |
|
|
|
|
|
|
|
build_package_copy() { |
|
|
|