mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 09:47:58 +00:00
Installation from source - setting python interpreter version (#3995)
explicit instructions for setting python interpreter when installing from source via git
This commit is contained in:
parent
2a4ed3f0e8
commit
34227430d4
1 changed files with 13 additions and 1 deletions
|
@ -324,7 +324,8 @@ While we try not to break master, there are no guarantees on anything. ::
|
||||||
# get borg from github
|
# get borg from github
|
||||||
git clone https://github.com/borgbackup/borg.git
|
git clone https://github.com/borgbackup/borg.git
|
||||||
|
|
||||||
virtualenv --python=python3 borg-env
|
# create a virtual environment
|
||||||
|
virtualenv --python=${which python3} borg-env
|
||||||
source borg-env/bin/activate # always before using!
|
source borg-env/bin/activate # always before using!
|
||||||
|
|
||||||
# install borg + dependencies into virtualenv
|
# install borg + dependencies into virtualenv
|
||||||
|
@ -338,4 +339,15 @@ While we try not to break master, there are no guarantees on anything. ::
|
||||||
# requires fakeroot, available through your package manager
|
# requires fakeroot, available through your package manager
|
||||||
fakeroot -u tox
|
fakeroot -u tox
|
||||||
|
|
||||||
|
By default the system installation of python will be used. If you need to use a different version of Python you can install this using ``pyenv``: ::
|
||||||
|
|
||||||
|
...
|
||||||
|
# create a virtual environment
|
||||||
|
pyenv install 3.6.0
|
||||||
|
pyenv global 3.6.0
|
||||||
|
pyenv local 3.6.0
|
||||||
|
virtualenv --python=${pyenv which python} borg-env
|
||||||
|
source borg-env/bin/activate # always before using!
|
||||||
|
...
|
||||||
|
|
||||||
.. note:: As a developer or power user, you always want to use a virtual environment.
|
.. note:: As a developer or power user, you always want to use a virtual environment.
|
||||||
|
|
Loading…
Reference in a new issue