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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.30.0-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.0-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.0-py2.py3-none-manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.30.0-py2.py3-none-manylinux2014_i686.whl (4.6 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.30.0-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.0-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.0.tar.gz.

File metadata

  • Download URL: pysdl2-dll-2.30.0.tar.gz
  • Upload date:
  • Size: 15.3 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.30.0.tar.gz
Algorithm Hash digest
SHA256 b79ba0670f9c777188294d8c2d0df7dc1191ac5956f0e031b621b9402657a6f4
MD5 d1687378e908de8587bbbe79ad187d48
BLAKE2b-256 260671dccd14647484fb05f01f1ac0c584cc67dd86ca0526238d3972107081db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 79a5aff8389a8b03f602b32e22c9051c96ab6cb6fb83ce29ddcb0ea3a08cb321
MD5 da565a41f91a75e46dd9eecd3813a10e
BLAKE2b-256 c5b4bab7181a7682f782e1fd2a2a52af913222ce71928068833c1709ce85019d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.30.0-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/4.0.2 CPython/3.8.10

File hashes

Hashes for pysdl2_dll-2.30.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 d04dd435cac0d4bc80c9d3c2c5f4a48964518a4f9350b78f617a7fb5c9cc9f4c
MD5 da765d28285d210848e983efc8ff62d6
BLAKE2b-256 546a62041d1119c57f07798f6ecc6457bc114ea9090fdd226387974b59ff4217

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.0-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6f02c310903f925c7e41476f721bfd4a78ec0238d671bbb69b31f78127ba9ea0
MD5 5d48de688c4a3adc83b0c2606a8cf5bb
BLAKE2b-256 38cd74da7eb5cadf382b24ad72a4ad0ba49b6f8af8d3609af1b02d708e2fe313

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.0-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 40f72777c95159168512ea827549bb7f4f0710023815a59ec5eed084bc0bc976
MD5 0e8779efc6501fdc26d7eb7a6fba77d4
BLAKE2b-256 c9ae34e80a56bf95144da1af0c8a97fe7b299bd16f138f24a5caf0500bae42ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.0-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5ecdbe6152a345091478b44785141f33079fb14d3538b5917ae06cb7166515e
MD5 1f3101911eccc4dfd821991de033e5f9
BLAKE2b-256 ab79fb333705e94ed4e2b41ac099528dabf5f25bc1232568f42df0c31c3621e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.0-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 49163690091797ae62d28cbff18978319b32d9a763a87f9089f5fc01ccd6149a
MD5 54811ab4e3325ebd30419b51774847e6
BLAKE2b-256 d052c531a36050b13a66fd958cb49f81ee4f8531bfe32698b41607607b7ef282

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.0-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 e873d823c206b92680575a62466e02717ce81ece7e433c818fb660154eda083f
MD5 757149a2ebc37cad31bf765acf6d9260
BLAKE2b-256 93d05911ad3cecb896588202e3e90bd97c0c7381718a6ccb2eaeebb70d7fe2ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.0-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 2748f8960bd98c5c53c9c1a94fdefed84a3458094f8014556d5f8026cc8341a4
MD5 47fd8a9720842bed0e99bed51f43242a
BLAKE2b-256 0ea49c9e1786c3ade85d59a54cf0f9f371624e807e91183dc273144e692fc061

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