0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 00:17:37 +01:00
mongodb/evergreen/prelude_python.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
700 B
Bash
Raw Normal View History

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