summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorAndreas HABEGGER <andreas.habegger@bfh.ch>2023-11-16 17:21:37 +0100
committerAndreas HABEGGER <andreas.habegger@bfh.ch>2023-11-20 12:03:46 +0100
commit54e5186ac5927999d83cc8baadd350a2bda3f5a3 (patch)
treeb38632fb3df191941ec8c9e5cc07d6e26373a9c8 /README
parent94e54c42c69d1a4a1bdb42a6a508c9efc0d10da1 (diff)
downloadwww-54e5186ac5927999d83cc8baadd350a2bda3f5a3.tar.gz
www-54e5186ac5927999d83cc8baadd350a2bda3f5a3.tar.bz2
www-54e5186ac5927999d83cc8baadd350a2bda3f5a3.zip
Added a description of how to use Python venv
Diffstat (limited to 'README')
-rw-r--r--README21
1 files changed, 20 insertions, 1 deletions
diff --git a/README b/README
index cef2685a..2507a3d6 100644
--- a/README
+++ b/README
@@ -82,7 +82,26 @@ Install python3.7, py37-babel, npm, nodejs from pkgsrc.
Adjust the values in config.mk: PYTHON=python3.7 BABEL=pybabel-3.7
-
+====================
+Python virtual env
+====================
+* Install python3 i.e on Debian
+```
+# apt install python3
+```
+* Create virtual environment **.venv directory is excluded with git ignore paterns**
+```
+python3 -m venv .venv
+```
+* Activate the virtual environment
+```
+source .venv/bin/activate
+```
+* Install all requirements from [requirements.txt](requirements.txt) using pip
+```
+pip install -r requirements.txt
+
+
B. When reusing the existing web site from Git, get its files and folder structure:
# git clone git+ssh://git@git.taler.net/www.git