]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: workaround setuptools' dependency on six 15406/head
authorKefu Chai <kchai@redhat.com>
Thu, 1 Jun 2017 06:05:07 +0000 (14:05 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 1 Jun 2017 06:52:44 +0000 (14:52 +0800)
see also https://github.com/pypa/setuptools/issues/1042

Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh
src/tools/setup-virtualenv.sh

index 42c34e68f434c43d3d313c44a198e5d2a18bfc4c..ec3d173919492aff41dfd2ad3177e0302d36ae4f 100755 (executable)
@@ -160,7 +160,8 @@ function populate_wheelhouse() {
 
     # although pip comes with virtualenv, having a recent version
     # of pip matters when it comes to using wheel packages
-    pip --timeout 300 $install 'setuptools >= 0.8' 'pip >= 7.0' 'wheel >= 0.24' || return 1
+    # workaround of https://github.com/pypa/setuptools/issues/1042
+    pip --timeout 300 $install 'setuptools >= 0.8,< 36' 'pip >= 7.0' 'wheel >= 0.24' || return 1
     if test $# != 0 ; then
         pip --timeout 300 $install $@ || return 1
     fi
index 444b967368ed61b5442fd207e77813e4f6172f8c..c7680b9558b941d1ec931478defa9128b39a630f 100755 (executable)
@@ -31,6 +31,9 @@ fi
 # when using wheel packages
 pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install --upgrade 'pip >= 6.1'
 
+# workaround of https://github.com/pypa/setuptools/issues/1042
+pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install --upgrade "setuptools < 36"
+
 if pip --help | grep -q disable-pip-version-check; then
     DISABLE_PIP_VERSION_CHECK=--disable-pip-version-check
 else