Build py4godot from source on Linux
masterTo build py4godot on Linux (tested on Ubuntu 20.04.4 LTS), follow these steps:
Set up a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate pip install -r requirements.txtNote: If using Python 3.12, you must run
pip install setuptoolsandpython copy_distutils.pyfirst to resolvedistutilsdependencies.Generate files:
python generate.pyNote: For faster development builds, use
python generate.py -dev_build=True.Cythonize files:
python cythonize_files.pyNote: For faster development builds, use
python cythonize_files.py -mode="dev".Compile the project:
python build.py --target_platform=linux64 --compiler=gccThe compiled output will be located in
build/py4godot.
python build.py --target_platform=linux64 --compiler=gcc