Skip to content

Commit 0d45733

Browse files
committed
chore: use NODE_GYP_FORCE_PYTHON
1 parent 4ce4d23 commit 0d45733

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.evergreen.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ functions:
1616
1717
if [ "$OS" == "Windows_NT" ]; then
1818
BASE_PYTHON="/cygdrive/c/python/Python311"
19-
export PYTHON="$BASE_PYTHON/python.exe"
20-
export PYTHON3="$PYTHON"
19+
export NODE_GYP_FORCE_PYTHON="$BASE_PYTHON/python.exe"
2120
export PATH="$BASE_PYTHON/Scripts:$BASE_PYTHON:$PATH"
2221
hash -r
2322
fi
@@ -35,8 +34,7 @@ functions:
3534
3635
if [ "$OS" == "Windows_NT" ]; then
3736
BASE_PYTHON="/cygdrive/c/python/Python311"
38-
export PYTHON="$BASE_PYTHON/python.exe"
39-
export PYTHON3="$PYTHON"
37+
export NODE_GYP_FORCE_PYTHON="$BASE_PYTHON/python.exe"
4038
export PATH="$BASE_PYTHON/Scripts:$BASE_PYTHON:$PATH"
4139
hash -r
4240
fi
@@ -57,8 +55,7 @@ functions:
5755
. .evergreen/use-node.sh
5856
if [ "$OS" == "Windows_NT" ]; then
5957
BASE_PYTHON="/cygdrive/c/python/Python311"
60-
export PYTHON="$BASE_PYTHON/python.exe"
61-
export PYTHON3="$PYTHON"
58+
export NODE_GYP_FORCE_PYTHON="$BASE_PYTHON/python.exe"
6259
export PATH="$BASE_PYTHON/Scripts:$BASE_PYTHON:$PATH"
6360
hash -r
6461
fi
@@ -109,11 +106,10 @@ functions:
109106
# so we revert back to the slower version.
110107
if [ "$OS" == "Windows_NT" ]; then
111108
BASE_PYTHON="/cygdrive/c/python/Python311"
112-
export PYTHON="$BASE_PYTHON/python.exe"
113-
export PYTHON3="$PYTHON"
109+
export NODE_GYP_FORCE_PYTHON="$BASE_PYTHON/python.exe"
114110
export PATH="$BASE_PYTHON/Scripts:$BASE_PYTHON:$PATH"
115-
export BOXEDNODE_CONFIGURE_ARGS='openssl-no-asm'
116111
hash -r
112+
export BOXEDNODE_CONFIGURE_ARGS='openssl-no-asm'
117113
elif uname -a | grep -q 'Darwin.*x86_64'; then
118114
export BOXEDNODE_CONFIGURE_ARGS='--openssl-no-asm'
119115
fi

0 commit comments

Comments
 (0)