mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
Fix installing pickle5-backport for Python 3.8.2 (#8453)
This commit is contained in:
parent
5b330de182
commit
6c5ea32857
1 changed files with 2 additions and 1 deletions
3
build.sh
3
build.sh
|
@ -135,7 +135,8 @@ if [ "$RAY_BUILD_PYTHON" == "YES" ]; then
|
|||
pickle5_available=0
|
||||
pickle5_path="$ROOT_DIR/python/ray/pickle5_files"
|
||||
# Check if the current Python alrady has pickle5 (either comes with newer Python versions, or has been installed by us before).
|
||||
if PYTHONPATH="$pickle5_path:$PYTHONPATH" "$PYTHON_EXECUTABLE" -s -c "import pickle5" 2>/dev/null; then
|
||||
check_pickle5_command="import sys\nif sys.version_info < (3, 8, 2): import pickle5;"
|
||||
if PYTHONPATH="$pickle5_path:$PYTHONPATH" "$PYTHON_EXECUTABLE" -s -c "exec(\"$check_pickle5_command\")" 2>/dev/null; then
|
||||
pickle5_available=1
|
||||
fi
|
||||
if [ 1 -ne "${pickle5_available}" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue