You can compile pygame on windows with mingw (gcc for windows) and also with visual studio. Running " setup.py cython" will update them. Calling the "setup.py" script with no arguments and it will just ask you if you want the default flags needed to compile and install. You can change many things like install locations, compiler to use, and more. running " python setup.py help" will start to show you the different options available. Distutils actually supports a wide variety of compile and install options. Running the " setup.py" script will call distutils to build and install the pygame package. If you have trouble compiling, you should be able to easily fix any problems inside the " Setup" file. It defines variables needed to use each dependency, and then enables all the pygame modules with found dependencies. This " Setup" file is a simple Makefile-like text file. If it isn't perfect, it is easy to build your own, or edit the created " Setup" text file. The "config.py" will do a good job of detecting what dependencies are available and where they are located. This will build a " Setup" file which stores all the information needed to compile. The first time you run the setup script, it will call the " config.py" script. Use the "setup.py" script to start the installation. Pygame also comes with some scripts to automatically configure the flags needed to build pygame. This is compiled for your system as it installs, similar to BSD, Ĭompiling and installing pygame is handled by Python's distutils. See the FreeBSD package page for more information. While techinicaly it isn't binary, it is automatically built and installed by the ports manager. FreeBSD also has an active pygame package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |