]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: in jessie virtualenv is in package virtualenv 8279/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 23 Mar 2016 16:56:37 +0000 (17:56 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 23 Mar 2016 18:56:11 +0000 (19:56 +0100)
The python scripts are not yet compatible with python3, yet it is the
default on jessie. Force the creation of the virtualenv to use python2.7
instead. The wheelhouse is already explicitly populated for both python3
and python2.7 by install-deps.sh, regardless of the default interpreter.

Signed-off-by: Loic Dachary <loic@dachary.org>
debian/control
qa/workunits/ceph-helpers.sh
src/test/debian-jessie/Dockerfile.in
src/tools/setup-virtualenv.sh

index 48ee6730eca676ba911e6b12218ca5bebb58432e..d28933b901bc0bff2723443f6229ace113ed53d8 100644 (file)
@@ -57,7 +57,7 @@ Build-Depends: autoconf,
                python-nose,
               python-setuptools,
                python-sphinx,
-               python-virtualenv,
+               python-virtualenv | virtualenv,
                sdparm | hdparm,
                uuid-runtime,
                valgrind,
index 759da393293350edce8f899b25019bec0b8ea09e..d931b2cdc1850d22df4a84341031cfc425e6e9c5 100755 (executable)
@@ -1313,7 +1313,7 @@ function main() {
     shopt -s -o xtrace
     PS4='${BASH_SOURCE[0]}:$LINENO: ${FUNCNAME[0]}:  '
 
-    export PATH=ceph-disk/virtualenv/bin:ceph-detect-init/virtualenv/bin:.:$PATH # make sure program from sources are prefered
+    export PATH=ceph-disk/ceph-disk-virtualenv/bin:ceph-detect-init/ceph-detect-init-virtualenv/bin:.:$PATH # make sure program from sources are prefered
 
     export CEPH_CONF=/dev/null
     unset CEPH_ARGS
@@ -1335,7 +1335,7 @@ function run_tests() {
     shopt -s -o xtrace
     PS4='${BASH_SOURCE[0]}:$LINENO: ${FUNCNAME[0]}:  '
 
-    export PATH=ceph-disk/virtualenv/bin:ceph-detect-init/virtualenv/bin:.:$PATH # make sure program from sources are prefered
+    export PATH=ceph-disk/ceph-disk-virtualenv/bin:ceph-detect-init/ceph-detect-init-virtualenv/bin:.:$PATH # make sure program from sources are prefered
 
     export CEPH_MON="127.0.0.1:7109" # git grep '\<7109\>' : there must be only one
     export CEPH_ARGS
index 59f9072fdd5d304b37e9828704ec39272f7c7565..9735716f793eab5096fc6b11024817933cf2e562 100644 (file)
@@ -27,5 +27,5 @@ RUN apt-get update
 # build dependencies
 RUN cd /root ; ./install-deps.sh
 # development tools
-RUN apt-get install -y ccache valgrind gdb python-virtualenv gdisk kpartx hdparm jq xmlstarlet
+RUN apt-get install -y sudo ccache valgrind gdb python-virtualenv gdisk kpartx hdparm jq xmlstarlet
 RUN if test %%USER%% != root ; then useradd -M --uid %%user_id%% %%USER%% && echo '%%USER%% ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers ; fi
index 62789d41d98350359fbb1de9a1388b8947369918..9ff2d26852b1f3b14410d1042de11985d630a65b 100755 (executable)
@@ -18,7 +18,7 @@
 DIR=$1
 rm -fr $DIR
 mkdir -p $DIR
-virtualenv $DIR
+virtualenv --python python2.7 $DIR
 . $DIR/bin/activate
 # older versions of pip will not install wrap_console scripts
 # when using wheel packages