From ed96d2a9a87c88e31796b401a92e2057d8666650 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Thu, 29 Jul 2021 17:00:51 +0200 Subject: [PATCH] Change virtualenv to venv. --- .gitlab-ci.yml | 5 ++--- docs/bare-metal-installation.md | 4 ++-- docs/developer-guide.md | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6db85619..51a5a3f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,8 @@ stages: - test before_script: - - apt-get -qq update - - apt-get install -y python3-virtualenv virtualenv - - /usr/bin/virtualenv python + - apt-get -qq update + - python3.8 -m venv python - . python/bin/activate - pip3 install -r requirements.txt - cp config/sample-production.engine.ini config/engine.ini diff --git a/docs/bare-metal-installation.md b/docs/bare-metal-installation.md index d8bf1f8b..e0b1cf24 100644 --- a/docs/bare-metal-installation.md +++ b/docs/bare-metal-installation.md @@ -44,10 +44,10 @@ If you are developing engine you also might want the projects `steering`, `dashb ## Preparation -In case of an development environment, create a virtual env for your Python dependencies: +In case of an development environment, create a virtual environment for your Python dependencies: ```shell -virtualenv -p python3.8 python +python3.8 -m venv python ``` No worries, the resulting `python` directory is excluded from the git respostory. diff --git a/docs/developer-guide.md b/docs/developer-guide.md index 5916d9ec..0f8815eb 100644 --- a/docs/developer-guide.md +++ b/docs/developer-guide.md @@ -62,7 +62,7 @@ The following steps espect you having done the bases configuration and set up a If you don't have already, you'll need to create an virtual environment: ```shell -~/code/aura/engine$ virtualenv -p python3.8 python +~/code/aura/engine$ python3.8 -m venv python ``` Then you can start the engine. The following command includes the activation of your virtual environment, which you have created during the installation step (`source python/bin/activate`): -- GitLab