Skip to content

Commit 80a6c5b

Browse files
committed
chore: Use python3.11 in windows host
1 parent b18ff4d commit 80a6c5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.evergreen.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ functions:
3939
set -x
4040
4141
. .evergreen/use-node.sh
42+
if [ "$OS" == "Windows_NT" ]; then
43+
BASE_PYTHON="/cygdrive/c/python/Python311"
44+
export PATH="$BASE_PYTHON/Scripts:$BASE_PYTHON:$PATH"
45+
fi
4246
npm run build
4347
npm run lint
4448
test:
@@ -85,7 +89,8 @@ functions:
8589
# able to compile OpenSSL with assembly support,
8690
# so we revert back to the slower version.
8791
if [ "$OS" == "Windows_NT" ]; then
88-
export PATH="/cygdrive/c/python/Python310/Scripts:/cygdrive/c/python/Python310:/cygdrive/c/Python310/Scripts:/cygdrive/c/Python310:$PATH"
92+
BASE_PYTHON="/cygdrive/c/python/Python311"
93+
export PATH="$BASE_PYTHON/Scripts:$BASE_PYTHON:$PATH"
8994
export BOXEDNODE_CONFIGURE_ARGS='openssl-no-asm'
9095
elif uname -a | grep -q 'Darwin.*x86_64'; then
9196
export BOXEDNODE_CONFIGURE_ARGS='--openssl-no-asm'

0 commit comments

Comments
 (0)