| ... | ... |
@@ -1400,6 +1400,19 @@ function pip_install {
|
| 1400 | 1400 |
$cmd_pip install --build=${pip_build_tmp} \
|
| 1401 | 1401 |
$pip_mirror_opt $@ \ |
| 1402 | 1402 |
&& $sudo_pip rm -rf ${pip_build_tmp}
|
| 1403 |
+ |
|
| 1404 |
+ if [[ "$INSTALL_TESTONLY_PACKAGES" == "True" ]]; then |
|
| 1405 |
+ local test_req="$@/test-requirements.txt" |
|
| 1406 |
+ if [[ -e "$test_req" ]]; then |
|
| 1407 |
+ $sudo_pip PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-/var/cache/pip} \
|
|
| 1408 |
+ http_proxy=$http_proxy \ |
|
| 1409 |
+ https_proxy=$https_proxy \ |
|
| 1410 |
+ no_proxy=$no_proxy \ |
|
| 1411 |
+ $cmd_pip install --build=${pip_build_tmp} \
|
|
| 1412 |
+ $pip_mirror_opt -r $test_req \ |
|
| 1413 |
+ && $sudo_pip rm -rf ${pip_build_tmp}
|
|
| 1414 |
+ fi |
|
| 1415 |
+ fi |
|
| 1403 | 1416 |
} |
| 1404 | 1417 |
|
| 1405 | 1418 |
# this should be used if you want to install globally, all libraries should |