Building Pygame2 on Unix compatible platforms, such as Linux or BSD, is probably the easiest way of having a fully featured multimedia framework
You will need a mostly C99 compatible compiler such as the GNU C Compiler and (optionally) a make utility such as GNU make or pmake.
Note
The following list of dependencies might not be the most actual one. Please check the README.txt file in the top source directory for the most actual dependency list!
Make sure, you have at least one of the following Python versions installed:
To build anything, you will have to download the following additional source packages:
And you will need the dependency packages for the packages above:
The next step would be to build and install those dependencies in the correct order as required by your specific operating system. Once done with it, you can go on to build Pygame2.
Now that all dependencies are built and installed, you can proceed to build and install Pygame2 itself. You can either use the python way of installing the package or the make command using the Makefile.
Simply type
python setup.py install
for the traditional python way or
make install
for using the Makefile. This will try to perform a default installation with as many features as possible.