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: v17.1.0~1208^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3185854c800fde1ed2e498d9fc692228f2db9277;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 --- diff --git a/install-deps.sh b/install-deps.sh index cc47663328ba0..c5dd7df5a94c8 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -261,7 +261,6 @@ if [ x$(uname)x = xFreeBSDx ]; then devel/libtool \ devel/google-perftools \ lang/cython \ - devel/py-virtualenv \ databases/leveldb \ net/openldap24-client \ archivers/snappy \ @@ -431,7 +430,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