From d35af0c92a90dea1cec673d06bdcd75da33f339a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 31 Jul 2021 21:11:23 +0800 Subject: 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 --- src/test/rgw/bucket_notification/bootstrap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/rgw/bucket_notification') 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 -- cgit v1.2.3