diff options
author | Kefu Chai <kchai@redhat.com> | 2021-07-31 15:11:23 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2021-07-31 16:34:05 +0200 |
commit | d35af0c92a90dea1cec673d06bdcd75da33f339a (patch) | |
tree | e5e507d1a44d30eb2477f5b15a94192990c1bcba /src/test | |
parent | qa/tasks: s/virtualenv/python3 -m venv/ (diff) | |
download | ceph-d35af0c92a90dea1cec673d06bdcd75da33f339a.tar.xz ceph-d35af0c92a90dea1cec673d06bdcd75da33f339a.zip |
test/rgw/bucket_notification: s/virtualenv/python3 -m venv/
so we don't need to use virtualenv python package for creating a
virtualenv, the "venv" module in Python3 would suffice.
see also https://docs.python.org/3/library/venv.html
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/test')
-rwxr-xr-x | src/test/rgw/bucket_notification/bootstrap | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/rgw/bucket_notification/bootstrap b/src/test/rgw/bucket_notification/bootstrap index 3eafe297c21..4d4a5a74878 100755 --- a/src/test/rgw/bucket_notification/bootstrap +++ b/src/test/rgw/bucket_notification/bootstrap @@ -2,7 +2,7 @@ set -e if [ -f /etc/debian_version ]; then - for package in python3-pip python3-virtualenv python3-dev python3-xmltodict python3-pika libevent-dev libxml2-dev libxslt-dev zlib1g-dev; do + for package in python3-pip python3-dev python3-xmltodict python3-pika libevent-dev libxml2-dev libxslt-dev zlib1g-dev; do if [ "$(dpkg --status -- $package 2>/dev/null|sed -n 's/^Status: //p')" != "install ok installed" ]; then # add a space after old values missing="${missing:+$missing }$package" @@ -14,7 +14,7 @@ if [ -f /etc/debian_version ]; then fi fi if [ -f /etc/redhat-release ]; then - for package in python3-pip python3-virtualenv python3-devel python3-xmltodict python3-pika libevent-devel libxml2-devel libxslt-devel zlib-devel; do + for package in python3-pip python3-devel python3-xmltodict python3-pika libevent-devel libxml2-devel libxslt-devel zlib-devel; do if [ "$(rpm -qa $package 2>/dev/null)" == "" ]; then missing="${missing:+$missing }$package" fi @@ -25,7 +25,7 @@ if [ -f /etc/redhat-release ]; then fi fi -virtualenv -p python3 --system-site-packages virtualenv +python3 -m venv --system-site-packages virtualenv # avoid pip bugs ./virtualenv/bin/pip install --upgrade pip |