From 2094c2f2fd6ac0f2028fcaf22f2b51a306e60172 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 31 Jul 2019 16:20:33 +0800 Subject: [PATCH] pybind/mgr: install setuptools >= 12 otherwise we have ``` Running setup.py egg_info for package apache-libcloud libcloud/utils/py3.py:76: UserWarning: Missing backports.ssl_match_hostname package warnings.warn("Missing backports.ssl_match_hostname package") Traceback (most recent call last): ... File "build/bdist.linux-x86_64/egg/setuptools_scm/version.py", line 66, in _warn_if_setuptools_outdated ... setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12) ... Command python setup.py egg_info failed with error code 1 in /tmp/tmp.i95Fg82Ea4/venv/build/apache-libcloud ``` and more important thing is, setuptools >= 12 allows us to install the python modules in venv, without uninstalling existing modules if they are also installed in by system packages. Signed-off-by: Kefu Chai --- src/pybind/mgr/dashboard/run-backend-api-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/dashboard/run-backend-api-tests.sh b/src/pybind/mgr/dashboard/run-backend-api-tests.sh index 59fd69ed1279..2cc17867617c 100755 --- a/src/pybind/mgr/dashboard/run-backend-api-tests.sh +++ b/src/pybind/mgr/dashboard/run-backend-api-tests.sh @@ -70,6 +70,7 @@ EOF cd $TEMP_DIR virtualenv --python=${TEUTHOLOGY_PYTHON_BIN:-/usr/bin/python} venv source venv/bin/activate + pip install 'setuptools >= 12' eval pip install $TEUTHOLOGY_PY_REQS pip install -r $CURR_DIR/requirements.txt deactivate -- 2.47.3