././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1727612190.0711257
pygame-2.6.1/ 0000755 0001751 0000177 00000000000 14676242436 012425 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1727612190.0721257
pygame-2.6.1/PKG-INFO 0000644 0001751 0000177 00000031116 14676242436 013524 0 ustar 00runner docker Metadata-Version: 2.1
Name: pygame
Version: 2.6.1
Summary: Python Game Development
Home-page: https://www.pygame.org
Author: A community project.
Author-email: pygame@pygame.org
License: LGPL
Project-URL: Documentation, https://pygame.org/docs
Project-URL: Bug Tracker, https://github.com/pygame/pygame/issues
Project-URL: Source, https://github.com/pygame/pygame
Project-URL: Twitter, https://twitter.com/pygame_org
Classifier: Development Status :: 6 - Mature
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Programming Language :: Assembly
Classifier: Programming Language :: C
Classifier: Programming Language :: Cython
Classifier: Programming Language :: Objective C
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: Multimedia :: Sound/Audio
Classifier: Topic :: Multimedia :: Sound/Audio :: MIDI
Classifier: Topic :: Multimedia :: Sound/Audio :: Players
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Classifier: Topic :: Multimedia :: Graphics :: Viewers
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
.. image:: https://raw.githubusercontent.com/pygame/pygame/main/docs/reST/_static/pygame_logo.svg
:alt: pygame
:target: https://www.pygame.org/
|AppVeyorBuild| |PyPiVersion| |PyPiLicense|
|Python3| |GithubCommits| |BlackFormatBadge|
Pygame_ is a free and open-source cross-platform library
for the development of multimedia applications like video games using Python.
It uses the `Simple DirectMedia Layer library`_ and several other
popular libraries to abstract the most common functions, making writing
these programs a more intuitive task.
`We need your help`_ to make pygame the best it can be!
New contributors are welcome.
Installation
------------
Before installing pygame, you must check that Python is installed
on your machine. To find out, open a command prompt (if you have
Windows) or a terminal (if you have MacOS or Linux) and type this:
::
python --version
If a message such as "Python 3.8.10" appears, it means that Python
is correctly installed. If an error message appears, it means that
it is not installed yet. You must then go to the `official website
`_ to download it.
Once Python is installed, you have to perform a final check: you have
to see if pip is installed. Generally, pip is pre-installed with
Python but we are never sure. Same as for Python, type the following
command:
::
pip --version
If a message such as "pip 20.0.2 from /usr/lib/python3/dist-packages/pip
(python 3.8)" appears, you are ready to install pygame! To install
it, enter this command:
::
pip install pygame
Once pygame is installed, quickly test your library by entering the following
command, which opens one of the many example games that comes pre-installed:
::
python3 -m pygame.examples.aliens
If this doesn’t work, the `Getting Started
`_ section of the official
website has more information for platform specific issues, such as adding
python to your machine’s PATH settings
Help
----
If you are just getting started with pygame, you should be able to
get started fairly quickly. Pygame comes with many tutorials and
introductions. There is also full reference documentation for the
entire library. Browse the documentation on the `docs page`_. You
can also browse the documentation locally by running
``python -m pygame.docs`` in your terminal. If the docs aren't found
locally, it'll launch the online website instead.
The online documentation stays up to date with the development version
of pygame on GitHub. This may be a bit newer than the version of pygame
you are using. To upgrade to the latest full release, run
``pip install pygame --upgrade`` in your terminal.
Best of all, the examples directory has many playable small programs
which can get you started playing with the code right away.
Features
----------
Pygame is a powerful library for game development, offering a wide
range of features to simplify your coding journey. Let's delve into
what pygame has to offer:
Graphics - With pygame, creating dynamic and engaging graphics has
never been easier. The library provides simple yet effective tools for
2D graphics and animation, including support for images, rectangles,
and polygon shapes. Whether you're a seasoned game developer or just
starting out, pygame has you covered.
Sound - Pygame also includes support for playing and manipulating sound
and music, making it easy to add sound effects and background music to
your games. With support for WAV, MP3, and OGG file formats, you have
plenty of options to choose from.
Input - Pygame provides intuitive functions for handling keyboard, mouse,
and joystick input, allowing you to quickly and easily implement player
controls in your games. No more struggling with complex input code, pygame
makes it simple.
Game Development - Lastly, pygame provides a comprehensive suite of tools
and features specifically designed for game development. From collision
detection to sprite management, pygame has everything you need to create
exciting and engaging games. Whether you're building a platformer, puzzle
game, or anything in between, pygame has you covered.
Building From Source
--------------------
If you want to use features that are currently in development,
or you want to contribute to pygame, you will need to build pygame
locally from its source code, rather than pip installing it.
Installing from source is fairly automated. The most work will
involve compiling and installing all the pygame dependencies. Once
that is done, run the ``setup.py`` script which will attempt to
auto-configure, build, and install pygame.
Much more information about installing and compiling is available
on the `Compilation wiki page`_.
Contribute
----------
* `Documentation Contributions `_ - Guidelines for contributing to the main documentations
* `Writing your first unit test `_ - Step by step guide on how to write your first unit test in Python for Pygame.
* `How to Hack Pygame `_ - Information on hacking, developing, and modifying Pygame
* `Issue Tracker for beginners `_ - A way for beginners to contribute to the project
* `Bugs & Patches `_ - Report bugs
* `Communication tools `_ - More information and ways to get in touch with the Pygame team
Credits
-------
Thanks to everyone who has helped contribute to this library.
Special thanks are also in order.
* Marcus Von Appen: many changes, and fixes, 1.7.1+ freebsd maintainer
* Lenard Lindstrom: the 1.8+ windows maintainer, many changes, and fixes
* Brian Fisher for svn auto builder, bug tracker and many contributions
* Rene Dudfield: many changes, and fixes, 1.7+ release manager/maintainer
* Phil Hassey for his work on the pygame.org website
* DR0ID for his work on the sprite module
* Richard Goedeken for his smoothscale function
* Ulf Ekström for his pixel perfect collision detection code
* Pete Shinners: original author
* David Clark for filling the right-hand-man position
* Ed Boraas and Francis Irving: Debian packages
* Maxim Sobolev: FreeBSD packaging
* Bob Ippolito: MacOS and OS X porting (much work!)
* Jan Ekhol, Ray Kelm, and Peter Nicolai: putting up with early design ideas
* Nat Pryce for starting our unit tests
* Dan Richter for documentation work
* TheCorruptor for his incredible logos and graphics
* Nicholas Dudfield: many test improvements
* Alex Folkner for pygame-ctypes
Thanks to those sending in patches and fixes: Niki Spahiev, Gordon
Tyler, Nathaniel Pryce, Dave Wallace, John Popplewell, Michael Urman,
Andrew Straw, Michael Hudson, Ole Martin Bjoerndalen, Herve Cauwelier,
James Mazer, Lalo Martins, Timothy Stranex, Chad Lester, Matthias
Spiller, Bo Jangeborg, Dmitry Borisov, Campbell Barton, Diego Essaya,
Eyal Lotem, Regis Desgroppes, Emmanuel Hainry, Randy Kaelber
Matthew L Daniel, Nirav Patel, Forrest Voight, Charlie Nolan,
Frankie Robertson, John Krukoff, Lorenz Quack, Nick Irvine,
Michael George, Saul Spatz, Thomas Ibbotson, Tom Rothamel, Evan Kroske,
Cambell Barton.
And our bug hunters above and beyond: Angus, Guillaume Proux, Frank
Raiser, Austin Henry, Kaweh Kazemi, Arturo Aldama, Mike Mulcheck,
Michael Benfield, David Lau
There's many more folks out there who've submitted helpful ideas, kept
this project going, and basically made our life easier. Thanks!
Many thank you's for people making documentation comments, and adding to the
pygame.org wiki.
Also many thanks for people creating games and putting them on the
pygame.org website for others to learn from and enjoy.
Lots of thanks to James Paige for hosting the pygame bugzilla.
Also a big thanks to Roger Dingledine and the crew at SEUL.ORG for our
excellent hosting.
Dependencies
------------
Pygame is obviously strongly dependent on SDL and Python. It also
links to and embeds several other smaller libraries. The font
module relies on SDL_ttf, which is dependent on freetype. The mixer
(and mixer.music) modules depend on SDL_mixer. The image module
depends on SDL_image, which also can use libjpeg and libpng. The
transform module has an embedded version of SDL_rotozoom for its
own rotozoom function. The surfarray module requires the Python
NumPy package for its multidimensional numeric arrays.
Dependency versions:
+----------+------------------------+
| CPython | >= 3.6 (Or use PyPy3) |
+----------+------------------------+
| SDL | >= 2.0.8 |
+----------+------------------------+
| SDL_mixer| >= 2.0.0 |
+----------+------------------------+
| SDL_image| >= 2.0.2 |
+----------+------------------------+
| SDL_ttf | >= 2.0.11 |
+----------+------------------------+
| SDL_gfx | (Optional, vendored in)|
+----------+------------------------+
| NumPy | >= 1.6.2 (Optional) |
+----------+------------------------+
License
-------
This library is distributed under `GNU LGPL version 2.1`_, which can
be found in the file ``docs/LGPL.txt``. We reserve the right to place
future versions of this library under a different license.
This basically means you can use pygame in any project you want,
but if you make any changes or additions to pygame itself, those
must be released with a compatible license (preferably submitted
back to the pygame project). Closed source and commercial games are fine.
The programs in the ``examples`` subdirectory are in the public domain.
See docs/licenses for licenses of dependencies.
.. |AppVeyorBuild| image:: https://ci.appveyor.com/api/projects/status/x4074ybuobsh4myx?svg=true
:target: https://ci.appveyor.com/project/pygame/pygame
.. |PyPiVersion| image:: https://img.shields.io/pypi/v/pygame.svg?v=1
:target: https://pypi.python.org/pypi/pygame
.. |PyPiLicense| image:: https://img.shields.io/pypi/l/pygame.svg?v=1
:target: https://pypi.python.org/pypi/pygame
.. |Python3| image:: https://img.shields.io/badge/python-3-blue.svg?v=1
.. |GithubCommits| image:: https://img.shields.io/github/commits-since/pygame/pygame/2.1.2.svg
:target: https://github.com/pygame/pygame/compare/2.1.2...main
.. |BlackFormatBadge| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
.. _pygame: https://www.pygame.org
.. _Simple DirectMedia Layer library: https://www.libsdl.org
.. _We need your help: https://www.pygame.org/contribute.html
.. _Compilation wiki page: https://www.pygame.org/wiki/Compilation
.. _docs page: https://www.pygame.org/docs/
.. _GNU LGPL version 2.1: https://www.gnu.org/copyleft/lesser.html
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/README.rst 0000644 0001751 0000177 00000025112 14676242340 014107 0 ustar 00runner docker .. image:: https://raw.githubusercontent.com/pygame/pygame/main/docs/reST/_static/pygame_logo.svg
:alt: pygame
:target: https://www.pygame.org/
|AppVeyorBuild| |PyPiVersion| |PyPiLicense|
|Python3| |GithubCommits| |BlackFormatBadge|
Pygame_ is a free and open-source cross-platform library
for the development of multimedia applications like video games using Python.
It uses the `Simple DirectMedia Layer library`_ and several other
popular libraries to abstract the most common functions, making writing
these programs a more intuitive task.
`We need your help`_ to make pygame the best it can be!
New contributors are welcome.
Installation
------------
Before installing pygame, you must check that Python is installed
on your machine. To find out, open a command prompt (if you have
Windows) or a terminal (if you have MacOS or Linux) and type this:
::
python --version
If a message such as "Python 3.8.10" appears, it means that Python
is correctly installed. If an error message appears, it means that
it is not installed yet. You must then go to the `official website
`_ to download it.
Once Python is installed, you have to perform a final check: you have
to see if pip is installed. Generally, pip is pre-installed with
Python but we are never sure. Same as for Python, type the following
command:
::
pip --version
If a message such as "pip 20.0.2 from /usr/lib/python3/dist-packages/pip
(python 3.8)" appears, you are ready to install pygame! To install
it, enter this command:
::
pip install pygame
Once pygame is installed, quickly test your library by entering the following
command, which opens one of the many example games that comes pre-installed:
::
python3 -m pygame.examples.aliens
If this doesn’t work, the `Getting Started
`_ section of the official
website has more information for platform specific issues, such as adding
python to your machine’s PATH settings
Help
----
If you are just getting started with pygame, you should be able to
get started fairly quickly. Pygame comes with many tutorials and
introductions. There is also full reference documentation for the
entire library. Browse the documentation on the `docs page`_. You
can also browse the documentation locally by running
``python -m pygame.docs`` in your terminal. If the docs aren't found
locally, it'll launch the online website instead.
The online documentation stays up to date with the development version
of pygame on GitHub. This may be a bit newer than the version of pygame
you are using. To upgrade to the latest full release, run
``pip install pygame --upgrade`` in your terminal.
Best of all, the examples directory has many playable small programs
which can get you started playing with the code right away.
Features
----------
Pygame is a powerful library for game development, offering a wide
range of features to simplify your coding journey. Let's delve into
what pygame has to offer:
Graphics - With pygame, creating dynamic and engaging graphics has
never been easier. The library provides simple yet effective tools for
2D graphics and animation, including support for images, rectangles,
and polygon shapes. Whether you're a seasoned game developer or just
starting out, pygame has you covered.
Sound - Pygame also includes support for playing and manipulating sound
and music, making it easy to add sound effects and background music to
your games. With support for WAV, MP3, and OGG file formats, you have
plenty of options to choose from.
Input - Pygame provides intuitive functions for handling keyboard, mouse,
and joystick input, allowing you to quickly and easily implement player
controls in your games. No more struggling with complex input code, pygame
makes it simple.
Game Development - Lastly, pygame provides a comprehensive suite of tools
and features specifically designed for game development. From collision
detection to sprite management, pygame has everything you need to create
exciting and engaging games. Whether you're building a platformer, puzzle
game, or anything in between, pygame has you covered.
Building From Source
--------------------
If you want to use features that are currently in development,
or you want to contribute to pygame, you will need to build pygame
locally from its source code, rather than pip installing it.
Installing from source is fairly automated. The most work will
involve compiling and installing all the pygame dependencies. Once
that is done, run the ``setup.py`` script which will attempt to
auto-configure, build, and install pygame.
Much more information about installing and compiling is available
on the `Compilation wiki page`_.
Contribute
----------
* `Documentation Contributions `_ - Guidelines for contributing to the main documentations
* `Writing your first unit test `_ - Step by step guide on how to write your first unit test in Python for Pygame.
* `How to Hack Pygame `_ - Information on hacking, developing, and modifying Pygame
* `Issue Tracker for beginners `_ - A way for beginners to contribute to the project
* `Bugs & Patches `_ - Report bugs
* `Communication tools `_ - More information and ways to get in touch with the Pygame team
Credits
-------
Thanks to everyone who has helped contribute to this library.
Special thanks are also in order.
* Marcus Von Appen: many changes, and fixes, 1.7.1+ freebsd maintainer
* Lenard Lindstrom: the 1.8+ windows maintainer, many changes, and fixes
* Brian Fisher for svn auto builder, bug tracker and many contributions
* Rene Dudfield: many changes, and fixes, 1.7+ release manager/maintainer
* Phil Hassey for his work on the pygame.org website
* DR0ID for his work on the sprite module
* Richard Goedeken for his smoothscale function
* Ulf Ekström for his pixel perfect collision detection code
* Pete Shinners: original author
* David Clark for filling the right-hand-man position
* Ed Boraas and Francis Irving: Debian packages
* Maxim Sobolev: FreeBSD packaging
* Bob Ippolito: MacOS and OS X porting (much work!)
* Jan Ekhol, Ray Kelm, and Peter Nicolai: putting up with early design ideas
* Nat Pryce for starting our unit tests
* Dan Richter for documentation work
* TheCorruptor for his incredible logos and graphics
* Nicholas Dudfield: many test improvements
* Alex Folkner for pygame-ctypes
Thanks to those sending in patches and fixes: Niki Spahiev, Gordon
Tyler, Nathaniel Pryce, Dave Wallace, John Popplewell, Michael Urman,
Andrew Straw, Michael Hudson, Ole Martin Bjoerndalen, Herve Cauwelier,
James Mazer, Lalo Martins, Timothy Stranex, Chad Lester, Matthias
Spiller, Bo Jangeborg, Dmitry Borisov, Campbell Barton, Diego Essaya,
Eyal Lotem, Regis Desgroppes, Emmanuel Hainry, Randy Kaelber
Matthew L Daniel, Nirav Patel, Forrest Voight, Charlie Nolan,
Frankie Robertson, John Krukoff, Lorenz Quack, Nick Irvine,
Michael George, Saul Spatz, Thomas Ibbotson, Tom Rothamel, Evan Kroske,
Cambell Barton.
And our bug hunters above and beyond: Angus, Guillaume Proux, Frank
Raiser, Austin Henry, Kaweh Kazemi, Arturo Aldama, Mike Mulcheck,
Michael Benfield, David Lau
There's many more folks out there who've submitted helpful ideas, kept
this project going, and basically made our life easier. Thanks!
Many thank you's for people making documentation comments, and adding to the
pygame.org wiki.
Also many thanks for people creating games and putting them on the
pygame.org website for others to learn from and enjoy.
Lots of thanks to James Paige for hosting the pygame bugzilla.
Also a big thanks to Roger Dingledine and the crew at SEUL.ORG for our
excellent hosting.
Dependencies
------------
Pygame is obviously strongly dependent on SDL and Python. It also
links to and embeds several other smaller libraries. The font
module relies on SDL_ttf, which is dependent on freetype. The mixer
(and mixer.music) modules depend on SDL_mixer. The image module
depends on SDL_image, which also can use libjpeg and libpng. The
transform module has an embedded version of SDL_rotozoom for its
own rotozoom function. The surfarray module requires the Python
NumPy package for its multidimensional numeric arrays.
Dependency versions:
+----------+------------------------+
| CPython | >= 3.6 (Or use PyPy3) |
+----------+------------------------+
| SDL | >= 2.0.8 |
+----------+------------------------+
| SDL_mixer| >= 2.0.0 |
+----------+------------------------+
| SDL_image| >= 2.0.2 |
+----------+------------------------+
| SDL_ttf | >= 2.0.11 |
+----------+------------------------+
| SDL_gfx | (Optional, vendored in)|
+----------+------------------------+
| NumPy | >= 1.6.2 (Optional) |
+----------+------------------------+
License
-------
This library is distributed under `GNU LGPL version 2.1`_, which can
be found in the file ``docs/LGPL.txt``. We reserve the right to place
future versions of this library under a different license.
This basically means you can use pygame in any project you want,
but if you make any changes or additions to pygame itself, those
must be released with a compatible license (preferably submitted
back to the pygame project). Closed source and commercial games are fine.
The programs in the ``examples`` subdirectory are in the public domain.
See docs/licenses for licenses of dependencies.
.. |AppVeyorBuild| image:: https://ci.appveyor.com/api/projects/status/x4074ybuobsh4myx?svg=true
:target: https://ci.appveyor.com/project/pygame/pygame
.. |PyPiVersion| image:: https://img.shields.io/pypi/v/pygame.svg?v=1
:target: https://pypi.python.org/pypi/pygame
.. |PyPiLicense| image:: https://img.shields.io/pypi/l/pygame.svg?v=1
:target: https://pypi.python.org/pypi/pygame
.. |Python3| image:: https://img.shields.io/badge/python-3-blue.svg?v=1
.. |GithubCommits| image:: https://img.shields.io/github/commits-since/pygame/pygame/2.1.2.svg
:target: https://github.com/pygame/pygame/compare/2.1.2...main
.. |BlackFormatBadge| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
.. _pygame: https://www.pygame.org
.. _Simple DirectMedia Layer library: https://www.libsdl.org
.. _We need your help: https://www.pygame.org/contribute.html
.. _Compilation wiki page: https://www.pygame.org/wiki/Compilation
.. _docs page: https://www.pygame.org/docs/
.. _GNU LGPL version 2.1: https://www.gnu.org/copyleft/lesser.html
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1727612189.9881258
pygame-2.6.1/buildconfig/ 0000755 0001751 0000177 00000000000 14676242436 014712 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/MANIFEST.in 0000644 0001751 0000177 00000000502 14676242340 016437 0 ustar 00runner docker recursive-include buildconfig *
recursive-include docs *
recursive-include src_py *
recursive-include src_c *
recursive-include examples *
recursive-include test *
recursive-exclude buildconfig/ci *
recursive-exclude buildconfig/manylinux-build *
include README.rst
exclude buildconfig/appveyor.yml
exclude .travis.yml
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/Makefile 0000644 0001751 0000177 00000001156 14676242340 016347 0 ustar 00runner docker #fake Makefile for pygame, to support the common
# ./configure;make;make install
PYTHON = python
build: Setup setup.py
$(PYTHON) setup.py build
install: Setup setup.py
$(PYTHON) setup.py install
Setup:
$(PYTHON) configure.py
check tests:
$(PYTHON) run_tests.py
test: build test src
$(PYTHON) run_tests.py
docs:
$(PYTHON) makeref.py
clean:
rm -rf build dist
rm -f lib/*~ src/*~ test/*~
rm -f lib/*.pyc src/*.pyc test/*.pyc test/test_utils/*.pyc
rm -rf __pycache__ lib/__pycache__ test/__pycache__/ test/test_utils/__pycache__/
# Sphinx generated files: makeref.py. See .gitignore
rm -rf docs/generated/
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/Setup.Android.SDL2.in 0000644 0001751 0000177 00000005402 14676242340 020417 0 ustar 00runner docker # This works differently from the other templates
SDL = {sdl_includes} -D_REENTRANT -DSDL2 -lSDL2
FONT = {sdl_ttf_includes} -lSDL2_ttf
IMAGE = {sdl_image_includes} -lSDL2_image
MIXER = {sdl_mixer_includes} -lSDL2_mixer
JPEG = {jpeg_includes} -ljpeg
SCRAP =
PNG = {png_includes} -lpng16
FREETYPE = {freetype_includes} -lfreetype -lharfbuzz
DEBUG =
#the following modules are optional. you will want to compile
#everything you can, but you can ignore ones you don't have
#dependencies for, just comment them out
imageext src_c/imageext.c $(SDL) $(IMAGE) $(PNG) $(JPEG) $(DEBUG)
font src_c/font.c $(SDL) $(FONT) $(DEBUG)
mixer src_c/mixer.c $(SDL) $(MIXER) $(DEBUG)
mixer_music src_c/music.c $(SDL) $(MIXER) $(DEBUG)
scrap src_c/scrap.c $(SDL) $(SCRAP) $(DEBUG)
# pypm src_c/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG)
_sdl2.sdl2 src_c/_sdl2/sdl2.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.audio src_c/_sdl2/audio.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.video src_c/_sdl2/video.c src_c/pgcompat.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.mixer src_c/_sdl2/mixer.c $(SDL) $(MIXER) $(DEBUG) -Isrc_c
_sdl2.touch src_c/_sdl2/touch.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.controller src_c/_sdl2/controller.c $(SDL) $(DEBUG) -Isrc_c
GFX = src_c/SDL_gfx/SDL_gfxPrimitives.c
#GFX = src_c/SDL_gfx/SDL_gfxBlitFunc.c src_c/SDL_gfx/SDL_gfxPrimitives.c
gfxdraw src_c/gfxdraw.c $(SDL) $(GFX) $(DEBUG)
#optional freetype module (do not break in multiple lines
#or the configuration script will choke!)
#_freetype src_c/freetype/ft_cache.c src_c/freetype/ft_wrap.c src_c/freetype/ft_render.c src_c/freetype/ft_render_cb.c src_c/freetype/ft_layout.c src_c/freetype/ft_unicode.c src_c/_freetype.c $(SDL) $(FREETYPE) $(DEBUG)
_sprite src_c/_sprite.c $(SDL) $(DEBUG)
#these modules are required for pygame to run. they only require
#SDL as a dependency. these should not be altered
base src_c/base.c $(SDL) $(DEBUG)
color src_c/color.c $(SDL) $(DEBUG)
constants src_c/constants.c $(SDL) $(DEBUG)
display src_c/display.c $(SDL) $(DEBUG)
event src_c/event.c $(SDL) $(DEBUG)
key src_c/key.c $(SDL) $(DEBUG)
mouse src_c/mouse.c $(SDL) $(DEBUG)
rect src_c/rect.c $(SDL) $(DEBUG)
rwobject src_c/rwobject.c $(SDL) $(DEBUG)
surface src_c/surface.c src_c/alphablit.c src_c/surface_fill.c $(SDL) $(DEBUG)
surflock src_c/surflock.c $(SDL) $(DEBUG)
time src_c/time.c $(SDL) $(DEBUG)
joystick src_c/joystick.c $(SDL) $(DEBUG)
draw src_c/draw.c $(SDL) $(DEBUG)
image src_c/image.c $(SDL) $(DEBUG)
transform src_c/transform.c src_c/rotozoom.c src_c/scale2x.c src_c/scale_mmx.c $(SDL) $(DEBUG) -D_NO_MMX_FOR_X86_64
mask src_c/mask.c src_c/bitmask.c $(SDL) $(DEBUG)
bufferproxy src_c/bufferproxy.c $(SDL) $(DEBUG)
pixelarray src_c/pixelarray.c $(SDL) $(DEBUG)
math src_c/math.c $(SDL) $(DEBUG)
pixelcopy src_c/pixelcopy.c $(SDL) $(DEBUG)
newbuffer src_c/newbuffer.c $(SDL) $(DEBUG)
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/Setup.Emscripten.SDL2.in 0000644 0001751 0000177 00000003462 14676242340 021154 0 ustar 00runner docker # This work differently from the other templates
#SDL = -D_REENTRANT -DSDL2 -lSDL2
#FONT = -lSDL2_ttf
#IMAGE = -lSDL2_image
#MIXER = -lSDL2_mixer
#JPEG = -ljpeg
#SCRAP =
#PNG = -lpng
#FREETYPE = -lfreetype -lharfbuzz
DEBUG =
# these can build alone and object files merged with ar
_sdl2.sdl2 src_c/_sdl2/sdl2.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.audio src_c/_sdl2/audio.c $(SDL) $(DEBUG) -Isrc_c
pygame_sdl2_video src_c/_sdl2/video.c src_c/pgcompat.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.video = src_c/void.c
_sdl2.mixer src_c/_sdl2/mixer.c $(SDL) $(MIXER) $(DEBUG) -Isrc_c
constants src_c/constants.c $(SDL) $(DEBUG)
mask src_c/bitmask.c
_sprite src_c/_sprite.c $(SDL) $(DEBUG)
math src_c/math.c $(SDL) $(DEBUG)
#GFX = src_c/SDL_gfx/SDL_gfxBlitFunc.c src_c/SDL_gfx/SDL_gfxPrimitives.c
GFX = src_c/SDL_gfx/SDL_gfxPrimitives.c
static src_c/static.c $(SDL) $(FREETYPE) $(FONT) $(MIXER) $(IMAGE) $(PNG) $(JPEG) $(DEBUG)
# these should not be altered they already are in static.c merging file above
time src_c/void.c
_freetype src_c/void.c
imageext src_c/void.c
image src_c/void.c
base src_c/void.c
bufferproxy src_c/void.c
color src_c/void.c
controller src_c/void.c
display src_c/void.c
draw src_c/void.c
event src_c/void.c
font src_c/void.c
gfxdraw src_c/void.c
joystick src_c/void.c
key src_c/void.c
newbuffer src_c/void.c
mixer_music src_c/void.c
mixer src_c/void.c
mouse src_c/void.c
pixelcopy src_c/void.c
pixelarray src_c/void.c
surface src_c/void.c
surflock src_c/void.c
rect src_c/void.c
rwobject src_c/void.c
#_sdl2.controller src_c/_sdl2/controller.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.controller src_c/void.c
#_sdl2.touch src_c/_sdl2/touch.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.touch src_c/void.c
#transform src_c/transform.c src_c/rotozoom.c src_c/scale2x.c src_c/scale_mmx.c $(SDL) $(DEBUG) -D_NO_MMX_FOR_X86_64
transform src_c/void.c
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/Setup.SDL2.in 0000644 0001751 0000177 00000006117 14676242340 017044 0 ustar 00runner docker #This Setup file is used by the setup.py script to configure the
#python extensions. You will likely use the "config.py" which will
#build a correct Setup file for you based on your system settings.
#If not, the format is simple enough to edit by hand. First change
#the needed commandline flags for each dependency, then comment out
#any unavailable optional modules in the first optional section.
#--StartConfig
SDL = -I/usr/include -D_REENTRANT -DSDL2 -lSDL2
FONT = -lSDL2_ttf
IMAGE = -lSDL2_image
MIXER = -lSDL2_mixer
PNG = -lpng
JPEG = -ljpeg
SCRAP = -lX11
PORTMIDI = -lportmidi
PORTTIME = -lporttime
FREETYPE = -lfreetype
#--EndConfig
DEBUG =
#the following modules are optional. you will want to compile
#everything you can, but you can ignore ones you don't have
#dependencies for, just comment them out
imageext src_c/imageext.c $(SDL) $(IMAGE) $(PNG) $(JPEG) $(DEBUG)
font src_c/font.c $(SDL) $(FONT) $(DEBUG)
mixer src_c/mixer.c $(SDL) $(MIXER) $(DEBUG)
mixer_music src_c/music.c $(SDL) $(MIXER) $(DEBUG)
scrap src_c/scrap.c $(SDL) $(SCRAP) $(DEBUG)
pypm src_c/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG)
_sdl2.sdl2 src_c/_sdl2/sdl2.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.audio src_c/_sdl2/audio.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.video src_c/_sdl2/video.c src_c/pgcompat.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.mixer src_c/_sdl2/mixer.c $(SDL) $(MIXER) $(DEBUG) -Isrc_c
_sdl2.touch src_c/_sdl2/touch.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.controller src_c/_sdl2/controller.c $(SDL) $(DEBUG) -Isrc_c
GFX = src_c/SDL_gfx/SDL_gfxPrimitives.c
#GFX = src_c/SDL_gfx/SDL_gfxBlitFunc.c src_c/SDL_gfx/SDL_gfxPrimitives.c
gfxdraw src_c/gfxdraw.c $(SDL) $(GFX) $(DEBUG)
#optional freetype module (do not break in multiple lines
#or the configuration script will choke!)
_freetype src_c/freetype/ft_cache.c src_c/freetype/ft_wrap.c src_c/freetype/ft_render.c src_c/freetype/ft_render_cb.c src_c/freetype/ft_layout.c src_c/freetype/ft_unicode.c src_c/_freetype.c $(SDL) $(FREETYPE) $(DEBUG)
_sprite src_c/_sprite.c $(SDL) $(DEBUG)
#these modules are required for pygame to run. they only require
#SDL as a dependency. these should not be altered
base src_c/base.c $(SDL) $(DEBUG)
color src_c/color.c $(SDL) $(DEBUG)
constants src_c/constants.c $(SDL) $(DEBUG)
display src_c/display.c $(SDL) $(DEBUG)
event src_c/event.c $(SDL) $(DEBUG)
key src_c/key.c $(SDL) $(DEBUG)
mouse src_c/mouse.c $(SDL) $(DEBUG)
rect src_c/rect.c $(SDL) $(DEBUG)
rwobject src_c/rwobject.c $(SDL) $(DEBUG)
surface src_c/simd_blitters_sse2.c src_c/simd_blitters_avx2.c src_c/surface.c src_c/alphablit.c src_c/surface_fill.c $(SDL) $(DEBUG)
surflock src_c/surflock.c $(SDL) $(DEBUG)
time src_c/time.c $(SDL) $(DEBUG)
joystick src_c/joystick.c $(SDL) $(DEBUG)
draw src_c/draw.c $(SDL) $(DEBUG)
image src_c/image.c $(SDL) $(DEBUG)
transform src_c/transform.c src_c/rotozoom.c src_c/scale2x.c src_c/scale_mmx.c $(SDL) $(DEBUG)
mask src_c/mask.c src_c/bitmask.c $(SDL) $(DEBUG)
bufferproxy src_c/bufferproxy.c $(SDL) $(DEBUG)
pixelarray src_c/pixelarray.c $(SDL) $(DEBUG)
math src_c/math.c $(SDL) $(DEBUG)
pixelcopy src_c/pixelcopy.c $(SDL) $(DEBUG)
newbuffer src_c/newbuffer.c $(SDL) $(DEBUG)
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/Setup_Darwin.in 0000644 0001751 0000177 00000000307 14676242340 017640 0 ustar 00runner docker #This file defines platform specific modules for mac os x
SCRAP =
scrap src_c/scrap.c $(SDL) $(SCRAP) $(DEBUG)
sdlmain_osx src_c/sdlmain_osx.m $(SDL) $(DEBUG)
_camera src_c/_camera.c $(SDL) $(DEBUG)
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/Setup_Unix.in 0000644 0001751 0000177 00000000163 14676242340 017337 0 ustar 00runner docker #This file defines platform specific modules for linux
_camera src_c/_camera.c src_c/camera_v4l2.c $(SDL) $(DEBUG)
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/Setup_Win_Camera.in 0000644 0001751 0000177 00000000050 14676242340 020414 0 ustar 00runner docker _camera src_c/_camera.c $(SDL) $(DEBUG)
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/Setup_Win_Common.in 0000644 0001751 0000177 00000000106 14676242340 020456 0 ustar 00runner docker # Windows specific flags for Pygame modules.
SCRAP = -luser32 -lgdi32
././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/__init__.py 0000644 0001751 0000177 00000000000 14676242340 017003 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000033 00000000000 010211 x ustar 00 27 mtime=1727612127.963112
pygame-2.6.1/buildconfig/__main__.py 0000644 0001751 0000177 00000000040 14676242340 016770 0 ustar 00runner docker from .config import main
main()
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1727612189.9891257
pygame-2.6.1/buildconfig/__pycache__/ 0000755 0001751 0000177 00000000000 14676242436 017122 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1727612189.3981264
pygame-2.6.1/buildconfig/__pycache__/__init__.cpython-310.pyc 0000644 0001751 0000177 00000000224 14676242435 023357 0 ustar 00runner docker o
Df @ s d S )N r r r 7/home/runner/work/pygame/pygame/buildconfig/__init__.py s ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1727612189.4001265
pygame-2.6.1/buildconfig/__pycache__/config.cpython-310.pyc 0000644 0001751 0000177 00000014552 14676242435 023076 0 ustar 00runner docker o
Df @ s d Z zddlZW n ey ddlmZ Y nw ddlZddlZddlZddlZddlZddl Z dZ
dd Zdd Zdd Z
d
d Zdd
ZdddZedkrTe dS dS )a Quick tool to help setup the needed paths and flags
in your Setup file. This will call the appropriate sub-config
scripts automatically.
each platform config file only needs a "main" routine
that returns a list of instances. the instances must
contain the following variables.
name: name of the dependency, as references in Setup (SDL, FONT, etc)
inc_dir: path to include
lib_dir: library directory
lib: name of library to be linked to
found: true if the dep is available
cflags: extra compile flags
N.c O s t j| i | dS )z(Similar to the Python 3.0 print functionN)msysioprint_)argskwds r 5/home/runner/work/pygame/pygame/buildconfig/config.pyr s r c C s dt jv o
tdt jd S )z%Return true if this in an MSYS2 buildZMSYSTEMzMSYS|MINGW.*|CLANG.*|UCRT.*)osenvironrematchr r r r is_msys2$ s
r
c C s dS )zReturn true if this in an MinGW/MSYS build
The user may prompted for confirmation so only call this function
once.
Fr r r r r
is_msys_mingw* s r c s | j r| jd | _| j D ]}| jd| 7 _qn| jd | _d| j d | _| js?| jdkr=d| _d| j d | _d| _d S |rCd
nd |rIdnd
|rQt|ndg }| jrtt| jtri | jd g}n fdd| jD }g }| j rt| j tr| j d g}nfdd| j D }d}| j D ]}|d| 7 }q| j
dr| j| d| | _d S | jd d| d| d | j | | _d S )zadd some vars to a depz =z -lz = -I.$()ZSDLz5SDL = -I/NEED_INC_PATH_FIX -L/NEED_LIB_PATH_FIX -lSDL Nz
-I$(BASE)z -Iz
-L$(BASE)z -Lr c g | ]
} |d qS Nr .0dir)IPREFIXstartindr r
R zprepdep..c r r r r )LPREFIXr r r r X r COPYLIB_ )
libsnamelinevarnamefoundleninc_dir
isinstancestrZlib_dir
startswithjoincflags)depbasepathlibZincsZlidsr r )r r r r prepdep8 s@
2r. c C sP t jtdd}t|}tt jtdd}d}|ddkr2|| | }|ddks"|ddkrD| }|ddks9|rO|d | d
| D ]
}||jd
qQ| }g } |D ]&}
d}|
}|D ]}
|
}|r|r|d |d krd}qn|r| |
qd| | | }d
d | D }|
d |D ]\}d}|ds|r|d dksttd|tj}||r|d| d}|r| D ]}|j|v r|jsd}|d| nq|r|
d|
dd d |r|| qW d n1 sw Y W d dS W d dS 1 s!w Y dS )z'create a modified copy of Setup.SDLx.inbuildconfigz
Setup.SDL2.inSetupwr z#--StartConfigz#--EndConfigzBASE =
r r c S s h | ]}|j qS r )r" )r dr r r