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.30.2 2.22.0 2.8.0 2.8.2 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).

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.30.2.tar.gz (15.4 kB view details)

Uploaded Source

Built Distributions

pysdl2_dll-2.30.2-py2.py3-none-win_amd64.whl (4.1 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

pysdl2_dll-2.30.2-py2.py3-none-win32.whl (3.6 MB view details)

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.30.2-py2.py3-none-manylinux_2_28_x86_64.whl (5.0 MB view details)

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

pysdl2_dll-2.30.2-py2.py3-none-manylinux_2_28_aarch64.whl (4.2 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.28+ ARM64

pysdl2_dll-2.30.2-py2.py3-none-manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.30.2-py2.py3-none-manylinux2014_i686.whl (4.5 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.30.2-py2.py3-none-macosx_10_11_x86_64.whl (6.7 MB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

pysdl2_dll-2.30.2-py2.py3-none-macosx_10_11_universal2.whl (6.7 MB view details)

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

File details

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

File metadata

  • Download URL: pysdl2-dll-2.30.2.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for pysdl2-dll-2.30.2.tar.gz
Algorithm Hash digest
SHA256 fdde25cf1863c7cc538da4bb997f5bdf87cbbcf09aa6a736d11e6c3848d04900
MD5 0491104e1507480b6286039964c25c73
BLAKE2b-256 7052984b7935e21623d7c7c80d239a80e1cb15e073e049fd7e891baeb9e57aff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.2-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1f243b9bd3f48a782f9feec26c261b0ae5ffbc3aa78756c5853e992fa5e7dfcf
MD5 08521c2091f2a594a991a22e800adcbd
BLAKE2b-256 b0e096b1d1ea651de40e84b72a515171d9a75a5b298c8059b2807de50f579b85

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pysdl2_dll-2.30.2-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 2b710986fb7f0c36eebf0d75a8b1d96d47e3b31a926673a72f63d683494efbc9
MD5 e8b4173011accba2fe6a3a2302d4624f
BLAKE2b-256 a2aacf113219b04c3e9008dd724dc5210ed00ddc9ddd582805d29358156a7daf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.2-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 97e16b03b8d0a25c78dabb216ae741d9a2c174186d7544c93a4bce093b60bcca
MD5 ff28198a1dd2fec08f88442aa850e42a
BLAKE2b-256 580b7397cb3c636bf72f98d164ddb7b110b56888a7ea9e013da1bc1943e5676d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.2-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dbb9bab74ed72912781523dbcaa537657faf9e3690d5c7f99712aea379dfe652
MD5 f2a55c701c0040013183ac3de02cd2b8
BLAKE2b-256 e1241dd0bfca53de21b16c727844aa11e45c68a02ec54143287b94890f816a4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.2-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e6a3b4fbca88c4a729610bf35a0968a906166441f38479a95214ef6e347b197e
MD5 8dd91220913c41b160051ecb37176bf3
BLAKE2b-256 0732d033a920c9e63b14a1cd7940297be73a74e96a8eeb9a06547501ee9c96e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.2-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d8534970c452bb0c5b7a2a24c39105e28c69438333be285b7ccdb8edab2e9e90
MD5 c197e5d1a9719efaf251e5a5245c394e
BLAKE2b-256 011282daa7cd36494d22cbb81afe138731ad5fe1801973459541b52058de2c68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.2-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 890233f56f544d3f08c9a6cc1ca1d1ce9e2621983baaff74a949a93dc311ed9f
MD5 1395d82a56f0d0319552e5c67bd078a4
BLAKE2b-256 8a287a07e09431bfe29d0506606ec1e5ac11abff6581139800017c8b54c0cc57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.2-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 bfab2f1a34a9eced88e9a6846f807596ecdc3a706779763a2e2be014f468da14
MD5 6d253b64d8a8f8f4bafdfb04cab822fd
BLAKE2b-256 32415ee4abcaf2f54706760264b3b3f4da1df781867dc4071068294ef005378d

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