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.24.0 2.20.0 2.6.0 2.6.0 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.7+, 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 on macOS, and for PySDL2 to load the binaries automatically when available. 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_24 standard (for 64-bit x86 and 64-bit ARM only). The manylinux_2_24 SDL2 binaries require a more recent version of Linux, but offer dynamic support for additional features such as Wayland windowing, Pipewire/sndio/JACK audio, and OpenGL ES v1 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_24 wheels. Distributions that use musl C instead of glibc (e.g. Alpine Linux) are not supported.

Note: pysdl2-dll is currently not built with libdecor support, meaning that native Wayland (non-XWayland) window decorations will be unavailable when using these binaries (see issue #9 for details). Given that SDL2 defaults to using XWayland this shouldn't be an issue for most users, but suggestions and/or PRs to fix the issue are welcome!

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. For older versions of PySDL2, you will need to import this module manually in your scripts (import sdl2dll) before PySDL2 is imported.

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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

pysdl2_dll-2.24.0-py2.py3-none-win32.whl (2.4 MB view details)

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.24.0-py2.py3-none-manylinux_2_24_x86_64.whl (3.3 MB view details)

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

pysdl2_dll-2.24.0-py2.py3-none-manylinux_2_24_aarch64.whl (2.9 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.24+ ARM64

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.24.0-py2.py3-none-macosx_10_7_x86_64.whl (4.9 MB view details)

Uploaded Python 2 Python 3 macOS 10.7+ x86-64

pysdl2_dll-2.24.0-py2.py3-none-macosx_10_7_universal2.whl (4.9 MB view details)

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

File details

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

File metadata

  • Download URL: pysdl2-dll-2.24.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for pysdl2-dll-2.24.0.tar.gz
Algorithm Hash digest
SHA256 0495318e7b0e2c12508a794c4d0dea3091ccc787806830c3132789ddd013b10b
MD5 56321f0059c5a770006ebdb1239f0fa3
BLAKE2b-256 da54b3af79d01851fde138ff1134c3a541a696f5416dfa4fc8516bcbda1e0ead

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9487a224316d9b049b4ed7454ed6c15d342ba1dc2db2743d3b08f6e41d58bff2
MD5 845db6bc1b745857b8f0571ed36130af
BLAKE2b-256 ec4fbc651b75336838123687c0df26e27b85d934996ed3ee3db80ae5572c98c5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pysdl2_dll-2.24.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 1096d57f65b64340281a97dd4fc947f188093c9b4aae41a528ae88384abe0243
MD5 2bc159ef71107026336cdc95f0497cb0
BLAKE2b-256 277488c069f63836e766a0b0734e95fb5b90cace4c2cb4fdf4cebac5351ca2a1

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.24.0-py2.py3-none-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pysdl2_dll-2.24.0-py2.py3-none-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 2, Python 3, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pysdl2_dll-2.24.0-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 5c18c1574cf857e81527db36060b897d8382d91b227767959d3972d5e2c0a5c7
MD5 0dabd15bad364fc5b655c6ced5869a69
BLAKE2b-256 e01dd629a707304f893dae02529bdde1e59e65f703730fa968a95dd43ff14aec

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.24.0-py2.py3-none-manylinux_2_24_aarch64.whl.

File metadata

  • Download URL: pysdl2_dll-2.24.0-py2.py3-none-manylinux_2_24_aarch64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 2, Python 3, manylinux: glibc 2.24+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pysdl2_dll-2.24.0-py2.py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 fdb5d1bacacca0c696eeab1f5a6fb653ecb686e29e0b2315689a665237b3c6ce
MD5 197f2d694eb38e2ef0a32299f8ee479c
BLAKE2b-256 4e734ea9708181dfcdadf6b3b3d1a16838dc8f017cd9127882493fded9d337e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.24.0-py2.py3-none-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pysdl2_dll-2.24.0-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4cd992e638a17dc6e08bcb63f760c3f29f7f5773971719bf0032ed2caa117192
MD5 7614ee397e402f0f3bf5316086fd380c
BLAKE2b-256 85b47e555a8a380dde578b1b109a53c2ccbac1696e1ff425bc2b43ecec4bc5b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.24.0-py2.py3-none-manylinux2014_i686.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pysdl2_dll-2.24.0-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 76d2a44b94bb62200678d4e403e81375176e110c419b1577210445dd9c67428e
MD5 4c3ab4bbf8830186e0f4a7be7187a7e8
BLAKE2b-256 9eeeacfeac561cf6523258d97b126340df454182d80497bc1385113dc292e0df

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.24.0-py2.py3-none-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: pysdl2_dll-2.24.0-py2.py3-none-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: Python 2, Python 3, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pysdl2_dll-2.24.0-py2.py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 af828994536be5d957a61b9778274f3e25b7f1e938fa05d76abd013ae0f278dc
MD5 71da53e79a8a9b5da1ff2bc3274bacea
BLAKE2b-256 48a181629d07a34adf11ed4034f6d1c575f36724903d9d296919adc82025e426

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.24.0-py2.py3-none-macosx_10_7_universal2.whl.

File metadata

  • Download URL: pysdl2_dll-2.24.0-py2.py3-none-macosx_10_7_universal2.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: Python 2, Python 3, macOS 10.7+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pysdl2_dll-2.24.0-py2.py3-none-macosx_10_7_universal2.whl
Algorithm Hash digest
SHA256 bc4940d47d88de54d7558f37114a4454fc3c98755feb57a4ce971e31bcc1c04c
MD5 7d208b258f673a40b8cc8a8cf488cd79
BLAKE2b-256 52312b3a8f74cad5b9f6679be9f2c0b0c6f05466b49c4f001e9b77e14689565a

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