]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: do not create "wheelhouse" unless it's ready
authorKefu Chai <kchai@redhat.com>
Thu, 4 Jun 2015 03:53:55 +0000 (11:53 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 4 Jun 2015 08:00:56 +0000 (16:00 +0800)
* only create "wheelhouse" directory for tox when it is populated
  with all packages in *requiresments.txt. before than, the wheels
  are put in "wheelhouse-wip"

Fixes: #11869
Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh
src/ceph-detect-init/.gitignore

index 287152f74f9db70294f93abc5c11625998ef058b..e24b06e73baeefe6037bafc316a891ce801d99ee 100755 (executable)
@@ -104,6 +104,7 @@ function get_pip_and_wheel() {
 mkdir -p install-deps-cache
 top_srcdir=$(pwd)
 export XDG_CACHE_HOME=$top_srcdir/install-deps-cache
+wip_wheelhouse=wheelhouse-wip
 
 #
 # preload python modules so that tox can run without network access
@@ -125,8 +126,9 @@ find . -name tox.ini | while read ini ; do
             for interpreter in python2.7 python3 ; do
                 type $interpreter > /dev/null 2>&1 || continue
                 . $top_srcdir/install-deps-$interpreter/bin/activate
-                get_pip_and_wheel wheel $require || exit 1
+                get_pip_and_wheel "wheel -w $wip_wheelhouse" $require || exit 1
             done
+            mv $wip_wheelhouse wheelhouse
         fi
     )
 done
index bcfa2815fb0b78a46a3707c399298536d2fbefbb..8c130b316655f08c9d9785f4d7fd07933998741a 100644 (file)
@@ -7,7 +7,7 @@
 *.egg
 dist
 build
-wheelhouse
+wheelhouse*
 *.log
 *.trs