@@ -24,13 +24,23 @@ createvirtualenv () {
24
24
fi
25
25
# Upgrade to the latest versions of pip setuptools wheel so that
26
26
# pip can always download the latest cryptography+cffi wheels.
27
- python -m pip install --upgrade pip setuptools wheel
27
+ PYTHON_VERSION=$( python -c ' import sys;print("%s.%s" % sys.version_info[:2])' )
28
+ if [[ $PYTHON_VERSION == " 3.4" ]]; then
29
+ # pip 19.2 dropped support for Python 3.4.
30
+ python -m pip install --upgrade ' pip<19.2'
31
+ elif [[ $PYTHON_VERSION == " 3.5" ]]; then
32
+ # pip 21 will drop support for 3.5.
33
+ python -m pip install --upgrade ' pip<21'
34
+ else
35
+ python -m pip install --upgrade pip
36
+ fi
37
+ python -m pip install --upgrade setuptools wheel
28
38
}
29
39
30
40
# Usage:
31
- # testinstall /path/to/python /path/to/.whl/or/.egg ["no-virtualenv"]
41
+ # testinstall /path/to/python /path/to/.whl ["no-virtualenv"]
32
42
# * param1: Python binary to test
33
- # * param2: Path to the wheel or egg file to install
43
+ # * param2: Path to the wheel to install
34
44
# * param3 (optional): If set to a non-empty string, don't create a virtualenv. Used in manylinux containers.
35
45
testinstall () {
36
46
PYTHON=$1
@@ -42,11 +52,7 @@ testinstall () {
42
52
PYTHON=python
43
53
fi
44
54
45
- if [[ $RELEASE == * .egg ]]; then
46
- $PYTHON -m easy_install $RELEASE
47
- else
48
- $PYTHON -m pip install --upgrade $RELEASE
49
- fi
55
+ $PYTHON -m pip install --upgrade $RELEASE
50
56
cd tools
51
57
$PYTHON fail_if_no_c.py
52
58
$PYTHON -m pip uninstall -y pymongo
0 commit comments