0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-21 12:39:08 +01:00
mongodb/evergreen/prelude_python.sh
Alexander Neben 58d6794e13 SERVER-86089 Ensure python 3.10 is required to build mongodb (#18985)
GitOrigin-RevId: f1ee913f62010f7847c43bf7d6b703db91f2a26a
2024-02-15 21:15:02 +00:00

19 lines
700 B
Bash

if [ "Windows_NT" = "$OS" ]; then
python='/cygdrive/c/python/python310/python.exe'
echo "Executing on windows, setting python to ${python}"
elif [ "$(uname)" = "Darwin" ]; then
python='/Library/Frameworks/Python.Framework/Versions/3.10/bin/python3'
echo "Executing on mac, setting python to ${python}"
else
if [ -f /opt/mongodbtoolchain/v4/bin/python3 ]; then
python="/opt/mongodbtoolchain/v4/bin/python3"
echo "Found python in v4 toolchain, setting python to ${python}"
elif [ -f "$(which python3)" ]; then
python=$(which python3)
echo "Could not find mongodbtoolchain python, using system python ${python}"
else
echo "Could not find python3."
return 1
fi
fi