From: Kefu Chai Date: Sat, 31 Jul 2021 12:55:55 +0000 (+0800) Subject: install-deps.sh: s/virtualenv/python -m venv/ X-Git-Tag: v16.2.7~120^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c17567b791d79b260ed1437d672a90dcc3cf49e;p=ceph.git install-deps.sh: s/virtualenv/python -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 (cherry picked from commit 3185854c800fde1ed2e498d9fc692228f2db9277) --- diff --git a/install-deps.sh b/install-deps.sh index 73242df8fb8b..3ba5e47ff585 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -256,7 +256,6 @@ if [ x$(uname)x = xFreeBSDx ]; then devel/libtool \ devel/google-perftools \ lang/cython \ - devel/py-virtualenv \ databases/leveldb \ net/openldap24-client \ archivers/snappy \ @@ -406,7 +405,7 @@ function activate_virtualenv() { local env_dir=$top_srcdir/install-deps-python3 if ! test -d $env_dir ; then - virtualenv --python=python3 ${env_dir} + python3 -m venv ${env_dir} . $env_dir/bin/activate if ! populate_wheelhouse install ; then rm -rf $env_dir