##// END OF EJS Templates
docs: when using venv with a clone, recommend using 'venv' as location...
Mads Kiilerich -
r8385:6bab9174 default
parent child Browse files
Show More
@@ -51,4 +51,5 b' syntax: regexp'
51 ^\.idea$
51 ^\.idea$
52 ^\.cache$
52 ^\.cache$
53 ^\.pytest_cache$
53 ^\.pytest_cache$
54 ^venv$
54 /__pycache__$
55 /__pycache__$
@@ -33,8 +33,8 b' bash shell::'
33
33
34 hg clone https://kallithea-scm.org/repos/kallithea
34 hg clone https://kallithea-scm.org/repos/kallithea
35 cd kallithea
35 cd kallithea
36 python3 -m venv ../kallithea-venv
36 python3 -m venv venv
37 . ../kallithea-venv/bin/activate
37 . venv/bin/activate
38 pip install --upgrade pip setuptools
38 pip install --upgrade pip setuptools
39 pip install --upgrade -e . -r dev_requirements.txt python-ldap python-pam
39 pip install --upgrade -e . -r dev_requirements.txt python-ldap python-pam
40 kallithea-cli config-create my.ini
40 kallithea-cli config-create my.ini
@@ -53,8 +53,8 b' repository, use the following commands i'
53
53
54 hg clone https://kallithea-scm.org/repos/kallithea -u stable
54 hg clone https://kallithea-scm.org/repos/kallithea -u stable
55 cd kallithea
55 cd kallithea
56 python3 -m venv ../kallithea-venv
56 python3 -m venv venv
57 . ../kallithea-venv/bin/activate
57 . venv/bin/activate
58 pip install --upgrade pip setuptools
58 pip install --upgrade pip setuptools
59 pip install --upgrade -e .
59 pip install --upgrade -e .
60 python3 setup.py compile_catalog # for translation of the UI
60 python3 setup.py compile_catalog # for translation of the UI
@@ -81,6 +81,8 b' problematic when upgrading the system or'
81 An additional benefit of virtualenv is that it doesn't require root privileges.
81 An additional benefit of virtualenv is that it doesn't require root privileges.
82
82
83 - Don't install as root - install as a dedicated user like ``kallithea``.
83 - Don't install as root - install as a dedicated user like ``kallithea``.
84 If necessary, create the top directory for the virtualenv (like
85 ``/srv/kallithea/venv``) as root and assign ownership to the user.
84
86
85 - Create a new virtual environment, for example in ``/srv/kallithea/venv``,
87 - Create a new virtual environment, for example in ``/srv/kallithea/venv``,
86 specifying the right Python binary::
88 specifying the right Python binary::
@@ -79,7 +79,7 b' with home in ``/home/kallithea`` and pla'
79
79
80 For experiments, it might be convenient to run everything as yourself and work
80 For experiments, it might be convenient to run everything as yourself and work
81 inside a clone of Kallithea, with the ``.ini`` and SQLite database in the root
81 inside a clone of Kallithea, with the ``.ini`` and SQLite database in the root
82 of the clone.
82 of the clone, and a virtualenv in ``venv``.
83
83
84
84
85 Python environment
85 Python environment
General Comments 0
You need to be logged in to leave comments. Login now