Skip to main content

pysdl2-dll

Build Status Build Status

pysdl2-dll is a Python package that bundles the SDL2 binaries in pip-installable form for macOS and Windows, making it easier to create and run scripts/packages that use the PySDL2 library.

It uses the official SDL2, SDL2_mixer, SDL2_ttf, and SDL2_image binaries for macOS and Windows, as well as unofficial SDL2_gfx binaries for the same platforms. For Linux, the SDL2 binaries and their dependencies are all built from source using the official Python manylinux images for maximum compatibility.

The latest release includes the following versions of the SDL2 binaries:

SDL2 SDL2_ttf SDL2_mixer SDL2_image SDL2_gfx
2.32.10 2.24.0 2.8.2 2.8.12 1.0.4

Installation

You can install the latest version of pysdl2-dll via pip:

pip install pysdl2-dll # install latest release version

Requirements

At present, the following platforms are supported:

  • macOS (10.11+, 64-bit x86)
  • macOS (11.0+, 64-bit ARM)
  • Windows (32-bit x86)
  • Windows (64-bit x86)
  • Linux (32-bit x86)
  • Linux (64-bit x86)
  • Linux (64-bit ARM)

The pysdl2-dll package can be installed on platforms other than the ones listed above, but it won't have any effect.

pysdl2-dll requires PySDL2 0.9.7 or later in order to work correctly. To update to the latest PySDL2, you can run:

pip install -U pysdl2

Because the wheels are not built against any specfic version of Python, pysdl2-dll supports all versions and implementations of Python that are supported by PySDL2.

Linux Requirements

There are currently two versions the Linux wheels: "legacy" wheels based on the manylinux2014 standard (for 32-bit and 64-bit x86), and "modern" wheels based on the manylinux_2_28 standard (for 64-bit x86 and 64-bit ARM only). The manylinux_2_28 SDL2 binaries require a more recent version of Linux, but offer dynamic support for additional features such as native Wayland windowing, Pipewire audio, and Vulkan rendering.

You must have pip 19.3 or newer to install the manylinux2014 wheels, and pip 20.3 or newer to install the manylinux_2_28 wheels. Distributions that use musl C instead of glibc (e.g. Alpine Linux) are not supported.

Usage

If you are using PySDL2 0.9.7 or later, you don't need to do anything special to use the pysdl2-dll binaries in your project: PySDL2 will load them automatically (and print a message indicating such) if they are available.

To override pysdl2-dll and use a different set of binaries, you can set the PYSDL2_DLL_PATH environment variable to the path of the folder containing the binaries you want to use instead, or alternatively set it to "system" to force PySDL2 to use the system install of SDL2 if available (e.g. SDL2 installed with brew on macOS).

Release files for pysdl2-dll 2.32.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysdl2-dll 2.32.10
File Size Uploaded
pysdl2_dll-2.32.10.tar.gz 16.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pysdl2-dll 2.32.10
File
pysdl2_dll-2.32.10-py2.py3-none-win_amd64.whl Python 2, Python 3 none Windows x86-64 Details
pysdl2_dll-2.32.10-py2.py3-none-win32.whl Python 2, Python 3 none Windows x86-32 Details
pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_x86_64.whl Python 2, Python 3 none Linux glibc 2.28+ x86-64 Details
pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_aarch64.whl Python 2, Python 3 none Linux glibc 2.28+ ARM64 Details
pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_x86_64.whl Python 2, Python 3 none Linux glibc 2.17+ x86-64 Details
pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_i686.whl Python 2, Python 3 none Linux glibc 2.17+ x86-32 Details
pysdl2_dll-2.32.10-py2.py3-none-macosx_11_0_universal2.whl Python 2, Python 3 none macOS 11.0+ universal2 (ARM64, x86-64) Details
pysdl2_dll-2.32.10-py2.py3-none-macosx_10_11_x86_64.whl Python 2, Python 3 none macOS 10.11+ x86-64 Details

Total release size: 39.3 MB

Release files / pysdl2_dll-2.32.10.tar.gz

Download URL pysdl2_dll-2.32.10.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ad83e0e1a0227633495d6b3ec6701ac5a2beac44e6692f52278033bda1313717
BLAKE2b-256 checksum
How to use checksums
285bbd6fb7cce36ec24cacea8f7d8264db819a3a9de89402653690d70a8da659
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / pysdl2_dll-2.32.10-py2.py3-none-win_amd64.whl

Download URL pysdl2_dll-2.32.10-py2.py3-none-win_amd64.whl
Size 4.1 MB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
65eba83d68c33b22aa5eca6c9a8521cff5044435ecd5b49521068df82674de6a
BLAKE2b-256 checksum
How to use checksums
918e3a90c664cca4c61c7538a8b1a7fd86c7dc3521465198a844bce21b4a97c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / pysdl2_dll-2.32.10-py2.py3-none-win32.whl

Download URL pysdl2_dll-2.32.10-py2.py3-none-win32.whl
Size 3.4 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
881e2362fbe5c8d7129fa66f690380bbd0240d9d2cb1bc5612856be1e58e9261
BLAKE2b-256 checksum
How to use checksums
19d3f50924d47313cadf4b8994d1e8c3befb33031f4115c38570e5a4a8f13956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_x86_64.whl

Download URL pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_x86_64.whl
Size 5.2 MB
Tags Linux glibc 2.28+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
1e6139e3ce832d95d8376b77f4c9288bef34d6b131f844f2a5fcc8873ce8e6da
BLAKE2b-256 checksum
How to use checksums
2b1c91fb667c3968b420de5dd76e840259b44b876b6fc84c5889151633fcc06e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_aarch64.whl

Download URL pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_aarch64.whl
Size 4.5 MB
Tags Linux glibc 2.28+ ARM64 Python 2 Python 3
SHA-256 checksum
How to use checksums
248b1c6c6ba1f43e964f2f9bc723ee4ce39892aca840aee6de25da90c46f685d
BLAKE2b-256 checksum
How to use checksums
65fc8e35a36010e9dce25247991762ba3fc058c2626d323848c5e293447dcb35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_x86_64.whl

Download URL pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_x86_64.whl
Size 4.3 MB
Tags Linux glibc 2.17+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
12b136c38114ae0f8a85453a879795ba5d61663d98673ba19c36c3008ff00353
BLAKE2b-256 checksum
How to use checksums
5d6e07ec92ba241b2aa941abf478e96c1474f2c5975b61d84303fbcb2ba1dcc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_i686.whl

Download URL pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_i686.whl
Size 4.6 MB
Tags Linux glibc 2.17+ x86-32 Python 2 Python 3
SHA-256 checksum
How to use checksums
4fad629105d0f138d084a37dcaf33aa47343ba771d1971c27f5cf68ef5428798
BLAKE2b-256 checksum
How to use checksums
c83a0686cdb266f7051e8ed3cfbb38f7e325155beb19bfb9821056debf6dfecb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pysdl2_dll-2.32.10-py2.py3-none-macosx_11_0_universal2.whl

Download URL pysdl2_dll-2.32.10-py2.py3-none-macosx_11_0_universal2.whl
Size 6.6 MB
Tags Python 2 Python 3 macOS 11.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
5ccbd89cd2a032f4ac890606dfe5c33874c0e5e909b2e667438ad7d7fc7fcc5d
BLAKE2b-256 checksum
How to use checksums
5ecb356315a7a30dff1d6b155d70c5293043fa683c52aae2eda236bab163081f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / pysdl2_dll-2.32.10-py2.py3-none-macosx_10_11_x86_64.whl

Download URL pysdl2_dll-2.32.10-py2.py3-none-macosx_10_11_x86_64.whl
Size 6.6 MB
Tags Python 2 Python 3 macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
cab126a82c2bd2cd79b6cb8da906916884789c9f4f1ae4cf861f26438ce651a4
BLAKE2b-256 checksum
How to use checksums
0e434abf8109b7c68cb73bd0f09bfd429bfbfe9767fdab952098ec4f8fb4418a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page