From: Nathan Cutler Date: Thu, 22 Mar 2018 06:27:45 +0000 (+0100) Subject: build/ops: declare python version when calling setup-virtualenv.sh X-Git-Tag: v13.1.0~507^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9f970f9cde4bf8cb51025d2c33a2cb2540d8c373;p=ceph.git build/ops: declare python version when calling setup-virtualenv.sh This just makes the current Python 2.7 dependency explicit. Making these statements optionally use Python 3 is left for later. Signed-off-by: Nathan Cutler --- diff --git a/make-dist b/make-dist index 9a48650ba67ec..f0b3bee1d39fb 100755 --- a/make-dist +++ b/make-dist @@ -64,7 +64,7 @@ download_boost() { build_dashboard_frontend() { CURR_DIR=`pwd` TEMP_DIR=`mktemp -d` - $CURR_DIR/src/tools/setup-virtualenv.sh $TEMP_DIR + $CURR_DIR/src/tools/setup-virtualenv.sh --python=python2.7 $TEMP_DIR $TEMP_DIR/bin/pip install nodeenv $TEMP_DIR/bin/nodeenv -p -n 8.10.0 cd src/pybind/mgr/dashboard/frontend diff --git a/src/ceph-detect-init/CMakeLists.txt b/src/ceph-detect-init/CMakeLists.txt index 066be4150cda5..be5eecd09578f 100644 --- a/src/ceph-detect-init/CMakeLists.txt +++ b/src/ceph-detect-init/CMakeLists.txt @@ -2,7 +2,7 @@ set(CEPH_DETECT_INIT_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtua add_custom_target(ceph-detect-init COMMAND - ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh ${CEPH_DETECT_INIT_VIRTUALENV} && + ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=python2.7 ${CEPH_DETECT_INIT_VIRTUALENV} && ${CEPH_DETECT_INIT_VIRTUALENV}/bin/pip install --no-index --use-wheel --find-links=file:${CMAKE_SOURCE_DIR}/src/ceph-detect-init/wheelhouse -e . WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-detect-init COMMENT "ceph-detect-init is being created") diff --git a/src/ceph-disk/CMakeLists.txt b/src/ceph-disk/CMakeLists.txt index 1bce4d416f007..536e1d927895f 100644 --- a/src/ceph-disk/CMakeLists.txt +++ b/src/ceph-disk/CMakeLists.txt @@ -2,7 +2,7 @@ set(CEPH_DISK_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-disk-virtualenv) add_custom_target(ceph-disk COMMAND - ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh ${CEPH_DISK_VIRTUALENV} && + ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=python2.7 ${CEPH_DISK_VIRTUALENV} && ${CEPH_DISK_VIRTUALENV}/bin/pip install --no-index --use-wheel --find-links=file:${CMAKE_SOURCE_DIR}/src/ceph-disk/wheelhouse -e . WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-disk COMMENT "ceph-disk is being created") diff --git a/src/pybind/mgr/dashboard/CMakeLists.txt b/src/pybind/mgr/dashboard/CMakeLists.txt index 5d73fe4d765c5..19f9ea797fd4d 100644 --- a/src/pybind/mgr/dashboard/CMakeLists.txt +++ b/src/pybind/mgr/dashboard/CMakeLists.txt @@ -2,7 +2,7 @@ set(MGR_DASHBOARD_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/mgr-dashboard-virtualenv) add_custom_target(mgr-dashboard-test-venv COMMAND - ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh ${MGR_DASHBOARD_VIRTUALENV} && + ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=python2.7 ${MGR_DASHBOARD_VIRTUALENV} && ${MGR_DASHBOARD_VIRTUALENV}/bin/pip install --no-index --use-wheel --find-links=file:${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard/wheelhouse -r requirements.txt WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard COMMENT "dashboard tests virtualenv is being created") @@ -14,7 +14,7 @@ set(mgr-dashboard-nodeenv ${CMAKE_CURRENT_BINARY_DIR}/node-env) add_custom_command( OUTPUT "${mgr-dashboard-nodeenv}/bin/npm" - COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh ${mgr-dashboard-nodeenv} + COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=python2.7 ${mgr-dashboard-nodeenv} COMMAND ${mgr-dashboard-nodeenv}/bin/pip install nodeenv COMMAND ${mgr-dashboard-nodeenv}/bin/nodeenv -p -n 8.10.0 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}