Skip to main content

Pre-built SDL2 binaries for PySDL2

Project description

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.28.4 2.20.0 2.6.0 2.6.0 1.0.4

Note that the mixer and image libraries are pinned at their current versions until their next major release due to a regression in the macOS binaries.

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysdl2-dll-2.28.4.tar.gz (15.1 kB view details)

Uploaded Source

Built Distributions

pysdl2_dll-2.28.4-py2.py3-none-win_amd64.whl (2.6 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

pysdl2_dll-2.28.4-py2.py3-none-win32.whl (2.5 MB view details)

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.28.4-py2.py3-none-manylinux_2_28_x86_64.whl (3.4 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.28+ x86-64

pysdl2_dll-2.28.4-py2.py3-none-manylinux_2_28_aarch64.whl (3.2 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.28+ ARM64

pysdl2_dll-2.28.4-py2.py3-none-manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.28.4-py2.py3-none-manylinux2014_i686.whl (3.4 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.28.4-py2.py3-none-macosx_10_11_x86_64.whl (5.0 MB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

pysdl2_dll-2.28.4-py2.py3-none-macosx_10_11_universal2.whl (5.0 MB view details)

Uploaded Python 2 Python 3 macOS 10.11+ universal2 (ARM64, x86-64)

File details

Details for the file pysdl2-dll-2.28.4.tar.gz.

File metadata

  • Download URL: pysdl2-dll-2.28.4.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pysdl2-dll-2.28.4.tar.gz
Algorithm Hash digest
SHA256 051e411ef93778d924a21c6e8fcfabd404bae5620fa49fa417e05b494a6a7dca
MD5 f871d9e0e75a8aa4b5605ced67496db6
BLAKE2b-256 a063a3e2f7bc3027f9dcf528cd3cc2f6cb5d9e9d71807ac4051902873d020e3d

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.28.4-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.28.4-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 667628a119e00f45aed279e480516ccc484c2f9a5d03c901dd1996c3af4c5840
MD5 2a9f7620438fbe5fe020305d269e4da5
BLAKE2b-256 51058ed2f36afe7deebb019d23c6ea4925d3db880beb2bedc2b590cc7c8ed203

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.28.4-py2.py3-none-win32.whl.

File metadata

  • Download URL: pysdl2_dll-2.28.4-py2.py3-none-win32.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pysdl2_dll-2.28.4-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 e417decf74d63cc3f5092385bdfb75cc7815d34b838992f09aff21c40ad27237
MD5 a14fc255716a705609cf7b04d647c38c
BLAKE2b-256 8145e8132f2efe81fc455d05836bd556f7fa84e6129ebf8a20f5c0b66a03ace4

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.28.4-py2.py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.28.4-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 142133f79236b809850e035c9a7fc77cd1098bdeb5f4edbba818a24f2aa6cf55
MD5 c8ee9a179c1fbada7f3c688801c6a6ea
BLAKE2b-256 92b83dcf9bb9afdd58af2389227d84316fb436509af7f008da13f0c5733262ba

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.28.4-py2.py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.28.4-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bba4abda0962025bff2ab0f17ff93f70f09fe706468460a4709533f5550c9bd5
MD5 98ef331a3e43803d7e92f299488f0206
BLAKE2b-256 d29f357a96dba604626668c85e412223ec7747980cd644d388ba03cbe924afbb

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.28.4-py2.py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.28.4-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d77f13a0f411abb3abd6d49f8b41c1373f72b86b1973236023dc37d563c2d0db
MD5 ccd8437318f763f6536f9f1c5b6f9c33
BLAKE2b-256 8e19c7bd736204ed2b08f0e3fc993d1d83d84a77bf69c740314498cf9a03e700

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.28.4-py2.py3-none-manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.28.4-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6868f67b831053730c1d429076594e3b4db8522b779c51932b0ca003ae47b134
MD5 19c9d04c675a850feb637c175299577d
BLAKE2b-256 a081fb26ad6582a9e13d3eb5c36336bb69e8199fdb504c6cfdffa84022d69621

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.28.4-py2.py3-none-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.28.4-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 a35ab0f06b9e42ba12575b6960ad7ea013fc0f49e6935b4b53d66a0a06668eae
MD5 6e0b3594e05ffc8bc3ce8269230f020b
BLAKE2b-256 d55ff81e86c7ab456b2621b84a1c9d8dcc9e8c2655aa6a29db9b6c58d04f198d

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.28.4-py2.py3-none-macosx_10_11_universal2.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.28.4-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 1acff652e62f906109a6ca4874ff1e210eebb4989df651955c48add43f89c077
MD5 412280b4a232b228fc902e2310e777ba
BLAKE2b-256 c46dd126e2f31422a8fecdcd72f1d4a2ef744744cabeefddb9fa7fdfbe904597

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page