In order to contribute to the project, you must follow these guidelines...
- Follow PEP8 convention naming rules for C and Python
- Lint your code with black
- Please make an issue first before submitting a pull request
- Always add unittests when you're introducing something new
- For C code, try to use
FASTCALL
as much as you can - Make sure your code actually works before you submit a pull request
- Please be patient when waiting for pull request reviews, we are all unpaid-volunteers
See below to see how to build pygame_geometry from source. If you need help, talk to us on Discord.
- Install Python 3.7+
- Install Visual Studio Community 2022 or Visual Studio Build Tools 2017 and make sure you mark
MSVC v140 - VS 2015 C++ build tools (v14.00)
with the installation - Run
python -m pip install setuptools -U
- Install the latest version of git
- Run
git clone https://github.com/pygame-community/pygame_geometry.git
- Run
cd pygame_geometry; python -m pip install .
If you are having trouble re-compiling, try deleting the build
folder from the root directory if it exists
- Install Python 3.7+
- Install HomeBrew
- Install dependencies
brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf pkg-config
- Run
python3 -m pip install setuptools -U
- Run
git clone https://github.com/pygame-community/pygame_geometry.git
- Run
cd pygame_geometry; python3 -m pip install .
- Install Python 3.7+ (Should be provided in distributions based out of Debian 10 Buster or above)
- Install dependencies
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev pkg-config -y
- Install git by
sudo apt install git -y
- Run
python3 -m pip install setuptools -U
- Run
git clone https://github.com/pygame-community/pygame_geometry.git
- Run
cd pygame_geometry; python3 -m pip install .