Files
025-squirrel/wiki/Install.da.md
T
Tirsvad bc24f6d018
Tests / Run the tests (pull_request) Successful in 1m1s
Document Python 3.13 on Debian 12: the apt python3 is 3.11
No issue closed: documentation fix found while verifying the Debian commands.
2026-10-13 17:03:15 +08:00

1.3 KiB

🌐 English · Dansk · Bahasa Melayu

Installation

Projektet kræver Python 3.13 eller nyere. Det har ingen kørselsafhængigheder; pytest, ruff, mypy, yamllint og actionlint er udviklingsværktøjer.

Windows PowerShell

python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Linux Debian

På Debian 13 (trixie) eller nyere er python3 3.13:

sudo apt install python3 python3-venv
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

På Debian 12 (bookworm) er python3 3.11, og pip nægter at installere projektet (requires a different Python). Hent Python 3.13 med uv og brug den til .venv:

sudo apt install python3 python3-venv
python3 -m venv .uvenv
.uvenv/bin/python -m pip install uv
.uvenv/bin/uv python install 3.13
.uvenv/bin/uv venv --seed --python 3.13 .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

macOS

python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Næste: Brug.