File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,18 @@ if uname -a | grep -q 'Linux.*x86_64'; then
1717 export CXX=" $PWD /tmp/.sccache/sccache g++"
1818fi
1919
20+ # Needed to ensure Python 3.6 support which is the oldest one that's available out-of-the-box on the rhel70 hosts.
21+ if [[ " ${DISTRO_ID} " =~ ^(rhel) ]]; then
22+ echo " RUNNING NODE-GYP@9"
23+ npm install node-gyp@9 --verbose --force
24+ fi
25+
2026rm -rf /tmp/m && mkdir -pv /tmp/m # Node.js compilation can fail on long path prefixes
2127trap " rm -rf /tmp/m" EXIT
2228export TMP=/tmp/m
2329export TMPDIR=/tmp/m
2430
25- if [ ` uname` = Darwin ]; then
31+ if [ $( uname) = Darwin ]; then
2632 # match what Node.js 20 does on their own builder machines
2733 export CFLAGS=' -mmacosx-version-min=10.15'
2834 export CXXFLAGS=' -mmacosx-version-min=10.15'
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ npm ci --verbose
55
66echo " MONOGDB_DRIVER_VERSION_OVERRIDE:$MONOGDB_DRIVER_VERSION_OVERRIDE "
77
8- echo " DISTRO ID IS: $DISTRO_ID "
9-
108# if MONOGDB_DRIVER_VERSION_OVERRIDE is set, then we want to replace the package version
119if [[ -n " $MONOGDB_DRIVER_VERSION_OVERRIDE " ]]; then
1210 export REPLACE_PACKAGE=" mongodb:$MONOGDB_DRIVER_VERSION_OVERRIDE "
@@ -20,11 +18,6 @@ if [[ -n "$MONOGDB_DRIVER_VERSION_OVERRIDE" ]]; then
2018 npm i --verbose --force
2119fi
2220
23- # Needed to ensure Python 3.6 support which is the oldest one that's available out-of-the-box on the rhel70 hosts.
24- if [[ " ${DISTRO_ID} " =~ ^(rhel) ]]; then
25- npm install node-gyp@9 --verbose --force
26- fi
27-
2821# if we rewrote this script in javascript using just builtin node modules we could skip the npm ci above
2922npm run mark-ci-required-optional-dependencies
3023
You can’t perform that action at this time.
0 commit comments