File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export PIP_PREFER_BINARY=1 # Prefer binary dists by default
38
38
39
39
set +x
40
40
python -c " import sys; sys.exit(sys.prefix == sys.base_prefix)" || (echo " Not inside a virtual env!" ; exit 1)
41
+ PYTHON_IMPL=$( python -c " import platform; print(platform.python_implementation())" )
41
42
42
43
# Try to source local Drivers Secrets
43
44
if [ -f ./secrets-export.sh ]; then
48
49
fi
49
50
50
51
# Ensure C extensions have compiled.
51
- if [ -z " ${NO_EXT:- } " ]; then
52
+ if [ -z " ${NO_EXT:- } " ] && [ " $PYTHON_IMPL " = " CPython " ] ; then
52
53
python tools/fail_if_no_c.py
53
54
fi
54
55
@@ -245,7 +246,6 @@ python -c 'import sys; print(sys.version)'
245
246
246
247
# Run the tests with coverage if requested and coverage is installed.
247
248
# Only cover CPython. PyPy reports suspiciously low coverage.
248
- PYTHON_IMPL=$( python -c " import platform; print(platform.python_implementation())" )
249
249
if [ -n " $COVERAGE " ] && [ " $PYTHON_IMPL " = " CPython" ]; then
250
250
# Keep in sync with combine-coverage.sh.
251
251
# coverage >=5 is needed for relative_files=true.
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ testinstall () {
78
78
PYTHON=$1
79
79
RELEASE=$2
80
80
NO_VIRTUALENV=$3
81
+ PYTHON_IMPL=$( python -c " import platform; print(platform.python_implementation())" )
81
82
82
83
if [ -z " $NO_VIRTUALENV " ]; then
83
84
createvirtualenv $PYTHON venvtestinstall
@@ -86,7 +87,11 @@ testinstall () {
86
87
87
88
$PYTHON -m pip install --upgrade $RELEASE
88
89
cd tools
89
- $PYTHON fail_if_no_c.py
90
+
91
+ if [ " $PYTHON_IMPL " = " CPython" ]; then
92
+ $PYTHON fail_if_no_c.py
93
+ fi
94
+
90
95
$PYTHON -m pip uninstall -y pymongo
91
96
cd ..
92
97
You can’t perform that action at this time.
0 commit comments