]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: s/virtualenv/python -m venv/
authorKefu Chai <kchai@redhat.com>
Sat, 31 Jul 2021 12:55:55 +0000 (20:55 +0800)
committerKen Dreyer <kdreyer@redhat.com>
Tue, 31 Aug 2021 21:25:20 +0000 (17:25 -0400)
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>
(cherry picked from commit 3185854c800fde1ed2e498d9fc692228f2db9277)

install-deps.sh

index 73242df8fb8ba4b11b8be114dbdd076fd648f0b1..3ba5e47ff585cb2ae1a3241cb976730827081e52 100755 (executable)
@@ -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