Lines Matching +full:python +full:- +full:pip
8 # http://www.apache.org/licenses/LICENSE-2.0
20 set -eux
22 if [[ "$#" -ne "2" ]]; then
23 echo 'Must specify the Python interpreter and virtualenv path.'
25 echo ' smoke_tests/smoke_test.sh [Python interpreter path] [virtualenv Path]'
31 TMP_DIR=$(mktemp -d)
32 trap "{ rm -rf ${TMP_DIR}; }" EXIT
33 # Do not bootstrap pip/setuptools, they are manually installed with get-pip.py
35 if ${ABSL_VIRTUALENV} --help | grep '\--no-site-packages'; then
36 no_site_packages_flag="--no-site-packages"
38 # --no-site-packages becomes the default in version 20 and is no longer a
42 ${ABSL_VIRTUALENV} ${no_site_packages_flag} --no-pip --no-setuptools --no-wheel \
43 -p ${ABSL_PYTHON} ${TMP_DIR}
47 if [[ $(uname -s) == MSYS* ]]; then
52 set -u
56 # When running macOS <= 10.12, pip 9.0.3 is required to connect to PyPI.
57 # So we need to manually use the latest pip to install absl-py. See:
58 # https://mail.python.org/pipermail/distutils-sig/2018-April/032114.html
59 if [[ "$(python -c "import sys; print(sys.version_info.major, sys.version_info.minor)")" == "3 6" ]…
60 # Latest get-pip.py no longer supports Python 3.6.
61 curl https://bootstrap.pypa.io/pip/3.6/get-pip.py | python
63 curl https://bootstrap.pypa.io/get-pip.py | python
65 pip --version
67 python --version
68 python setup.py install
69 python smoke_tests/sample_app.py --echo smoke 2>&1 |grep 'echo is smoke.'
70 python smoke_tests/sample_test.py 2>&1 | grep 'msg_for_test'