Setting up a development environment for tryton

thanks.

Is there any documentation for setting up a development environment for tryton, trytond? Currently I am trying to do everything via docker, which is a bit difficult to test changes to the code. I would like to setup a virtual environment via pixi (ideally) or python virtual env. With pixi I run into some issues installing modules via uv, also installing modules in edit-mode (-e) was not possible because of some namespace problems (at least I guess this was the root of the problem). So my question is: how to setup a clean, easy to reproduce development environment without docker.

Hi,

not sure about the official documentation but I can recommend the following steps for a minimal development environment with editable modules:
Note: I am using conda here, but it should be a similar workflow for any virtual environment

# Set up conda environment
conda create -n tryton python=3.13
conda activate tryton

# Get source code: e.g. https://foss.heptapod.net/tryton/tryton
cd tryton_src/

# Prepare modules and requirements
.hooks/link_modules
.hooks/update_requirements
pip install -r requirements.txt -r requirements-dev.txt

# Install trytond
pip install -e ./trytond/

# Optional: setup tryton or web client or both
pip install -e ./trytond/
cd sao && npm install --legacy-peer-deps && grunt && cd ..

# Minimal config with sqlite
echo -e "[web]\nlisten=0.0.0.0:8000\nroot=$(pwd)/sao/\n[database]\nuri = sqlite://\npath=$(pwd)/" > trytond.conf

touch "$(pwd)/mydb.sqlite"

# Initialize the database
trytond-admin -c trytond.conf -d mydb --all

# Run Tryton server
trytond --verbose -c trytond.conf

Hope this helps!