]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commit
scripts/build_utils.sh: use "python3 -m venv" to create venv 1910/head
authorKefu Chai <kchai@redhat.com>
Wed, 22 Sep 2021 13:27:05 +0000 (21:27 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 22 Sep 2021 13:27:06 +0000 (21:27 +0800)
commit73457b91473b6f00ad3364427a3814c015ae839a
tree1d456d8d871b578f4de66e1baf319cb1c8347b2d
parentf062e8fddabe5f41edc739de2f6669fe682bb33e
scripts/build_utils.sh: use "python3 -m venv" to create venv

we started to have following error recently:

```
+ local path=/tmp/venv.0D0Gwn9bMl
+ '[' -d /tmp/venv.0D0Gwn9bMl ']'
+ command -v python3
+ virtualenv -p python3 /tmp/venv.0D0Gwn9bMl
/tmp/jenkins5609477504730019125.sh: line 106: virtualenv: command not found
```

instead of relying on `virtualenv`, let's use the builtin venv
module to create virtualenv.

Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh