Namestitev na Linuxu¶
Ta vodič se osredotoča na naslednje teme:
Nameščanje odvisnih paketov (ang. dependencies)¶
Spodaj so našteti namestitveni ukazi za popularne Linuxove distribucije.
Za vsak sistem izvedite primeren ukaz:
Debian/Ubuntu:
sudo apt-get install python3 python3-pip git git-lfs
git lfs install --skip-repo
Redhat/Fedora:
sudo dnf install python python-pip git git-lfs
git lfs install --skip-repo
Arch Linux:
sudo pacman -S python python-pip git git-lfs
git lfs install --skip-repo
Prenašanje repozitorija¶
Preprosto odjavite (ang. check out) repozitorij z ukazom:
cd ~
git clone https://projects.blender.org/blender/blender-manual.git
Repozitorij se bo začel prenašati, kar utegne trajati nekaj minut, odvisno od vaše internetne povezave.
Nastavljanje okolja za gradnjo priročnika¶
Nasvet
It is recommended to setup and activate a virtual Python environment where dependencies will be installed:
python3 -m venv .venv
source .venv/bin/activate
Repeat the source .venv/bin/activate
command to re-activate the virtual environment,
whenever you open a new terminal to build the documentation.
This step may be required on some distributions that enforce PEP 668.
Odprite okno Terminala.
Enter the
blender-manual
folder which was just added bygit clone
:cd ~/blender-manual
Inside that folder is a file called
requirements.txt
which contains a list of all the dependencies we need. To install these dependencies, we can use thepip3
command:pip3 install -r requirements.txt
Opomba
Od časa do časa se prepričajte, da imate najnovejše odvisne pakete:
pip3 install -r requirements.txt --upgrade