I have a customized version of SDL 1.2 and pygame 1.9.1 that implement SDL2’s high precision timer and event time-stamping. I can build everything fine on my mac, but I’d like to be able to distribute an installer to my colleagues who are less computationally savvy. The pygame downloads page has installers available, so presumably this is possible. Any suggestions as to how to go about this or where to go for some instructions?
Share
Have a look into the Python standard librariy distutils. With it you can create setup scripts to build and package your code, even with C extensions.
If this doesn’t suffice you, you can also look into setuptools which basically extends distutils and even allows you to upload your code to the Python Package Index (PyPi) from where you can easily download and install python packages.
EDIT
Sorry for being so vague, but the implementation of your setup script (usually setup.py) is mainly depending on your actual requirements.
EDIT 2
To create mpkg packages you require setuptools and another library called Bento. After you have written your
setup.pyscript (look at the distutils docs for that) you can build it with: