Browse Source

Use built-in venv module to create virtualenv

master
Anthony Ricaud 5 years ago
parent
commit
68ae8a2488
2 changed files with 3 additions and 4 deletions
  1. 1
    1
      Makefile
  2. 2
    3
      docs/source/internals/contributing/running-tests.rst

+ 1
- 1
Makefile View File

@@ -28,7 +28,7 @@ install-js: ## Install js requirements
28 28
 	npm install
29 29
 
30 30
 venv: ## Create a virtual env and install test and production requirements
31
-	virtualenv --python=$(shell which python3) $(VENV)
31
+	$(shell which python3) -m venv $(VENV)
32 32
 	$(VENV)/bin/pip install -e .[test]
33 33
 	$(VENV)/bin/pip install -r docs/requirements.txt
34 34
 

+ 2
- 3
docs/source/internals/contributing/running-tests.rst View File

@@ -25,11 +25,10 @@ This will create a virtualenv in `venv`, install the test dependencies and run p
25 25
 Details
26 26
 ~~~~~~~
27 27
 
28
-First we create a virtualenv and install the required dependencies::
28
+First we create a virtualenv, install the required dependencies and activate it::
29 29
 
30
-    $ virtualenv venv
30
+    $ make venv
31 31
     $ source venv/bin/activate
32
-    $ pip install -e .[test]
33 32
 
34 33
 Then we invoke pytest using ::
35 34
 

Loading…
Cancel
Save