]> git.apps.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)
committerKefu Chai <kchai@redhat.com>
Sat, 31 Jul 2021 13:16:56 +0000 (21:16 +0800)
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>
install-deps.sh

index cc47663328ba0d24152fa0e2799fc7063060f1c1..c5dd7df5a94c87a7c082bbdd6d50112a6e22fda4 100755 (executable)
@@ -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