mirror of
https://github.com/apisnetworks/pyenv.git
synced 2026-11-30 19:59:01 +00:00
python-build: create PEP 394 symlinks for Pyston (#3557)
* Consolidate build_package_pyston2_2 into build_package_pyston There's no longer a difference --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
This commit is contained in:
9 files changed
+41
-29
No files matched your search
@@ -243,6 +243,27 @@ OUT
|
||||
[[ "$(resolve_link "${INSTALL_ROOT}/bin/python-config")" == "python3.4-config" ]]
|
||||
}
|
||||
|
||||
@test "pyston: create python* symlinks" {
|
||||
mkdir -p "${BATS_TEST_TMPDIR}/pyston_2.3.5/bin"
|
||||
cd "${BATS_TEST_TMPDIR}/pyston_2.3.5"
|
||||
executable bin/real_interpreter_name <<OUT
|
||||
#!$BASH
|
||||
echo 3.8
|
||||
OUT
|
||||
ln -s real_interpreter_name bin/pyston
|
||||
ln -s real_interpreter_name bin/pyston3
|
||||
|
||||
TMPDIR="$BATS_TEST_TMPDIR" run_inline_definition <<OUT
|
||||
build_package_pyston
|
||||
verify_python 3.8
|
||||
OUT
|
||||
assert_success
|
||||
|
||||
for name in python python3 python3.8; do
|
||||
assert_equal "$(resolve_link "${INSTALL_ROOT}/bin/$name")" "real_interpreter_name"
|
||||
done
|
||||
}
|
||||
|
||||
@test "enable framework" {
|
||||
framework_path="${INSTALL_ROOT}/Library/Frameworks/Python.framework/Versions/Current/bin"
|
||||
mkdir -p "$framework_path"
|
||||
|
||||
Reference in new issue
Block a user