Skip to main content

ToolkitCompiler — wiki

The information below should apply equally well for Python 2.4 and 2.5. For Python 2.3 or earlier, you use Visual Studio 6 (although pygame source no longer compiles under it).

If you don't have the toolkit compiler installed, you can download it here.

If you don't have your system configured to build python extensions with the toolkit compiler yet, you can follow the directions here.

For pygame dependencies, you can use the prebuilts from the downloads page, but you may want to replace the sdl dll's with the ones here, because the ones on the download page link to a different c-runtime so all the load xxx from file functions crash. If you want to build the dependencies yourself, you can find instructions here.

Finally to build, you want to run a batch file to set the path and environment variables for the toolkit (see the second link above), then run "python config.py" followed by "python setup.py --build"

If you have problems, try asking on the mailing list, or if you fix them yourself, update this page with the solution