]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: install setuptools >= 12
authorKefu Chai <kchai@redhat.com>
Wed, 31 Jul 2019 08:20:33 +0000 (16:20 +0800)
committerAlfonso Martínez <almartin@redhat.com>
Tue, 17 Sep 2019 13:48:25 +0000 (15:48 +0200)
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 <kchai@redhat.com>
(cherry picked from commit 2094c2f2fd6ac0f2028fcaf22f2b51a306e60172)

src/pybind/mgr/dashboard/run-backend-api-tests.sh

index 59fd69ed12795707d807f8585f9e2dc45678f5ad..2cc17867617cbfe92c0a26fe836aec16682c76de 100755 (executable)
@@ -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