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.26.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.9+, 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.26.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.26.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.26.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.26.0-py2.py3-none-manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.26.0-py2.py3-none-macosx_10_9_x86_64.whl (5.0 MB view details)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

pysdl2_dll-2.26.0-py2.py3-none-macosx_10_9_universal2.whl (5.0 MB view details)

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

File details

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

File metadata

  • Download URL: pysdl2-dll-2.26.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.15

File hashes

Hashes for pysdl2-dll-2.26.0.tar.gz
Algorithm Hash digest
SHA256 f195fd20d67c0e562d5c8e8d2dfcb2ada340974e61c0886c84d8b41492965f1e
MD5 41f31f79044f7b12eed0b0032746a4da
BLAKE2b-256 80ce06a5b01747ca7843212ac92a40ea76179a52291b14980d2e66a1bb250a01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8dfa7154473bc0fa67800bbff95aed4077abd1e453d85196671e1e8788df7fe0
MD5 bbb2781568155636f400e5c649fcde6c
BLAKE2b-256 32d6533c1fd609b44696155625cb30b34ca60f29917725afec8c9bf559e14693

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.26.0-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.1 CPython/3.8.10

File hashes

Hashes for pysdl2_dll-2.26.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 24f0cf3bae335012c35d51a2930cc94bc7e131fef674b43f1c2cb2492fcba6d4
MD5 11cd33fbe9405cf59fca3a979d7ab606
BLAKE2b-256 a303e9ed572d38571800a766ef6c29c5cfe10da36baafb6b38b09c8387402e46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.0-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 31e8cc20041c6eb58c21ce2ba56e10a21e209076d991b356bb35f9b6b5badd32
MD5 2971c7049d8238035ad13cd1614d3fd0
BLAKE2b-256 31cf92b964800a5a4094ca56a9d0005fb77ff4688974c2104e27357a1e0a2595

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.0-py2.py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 cf87c7b37ca49dc6678cf1254426cee65bc78d4e94e01cdc9c242f6740f0c284
MD5 773d21427fe39489244d04d2d3502646
BLAKE2b-256 d99180b1692b0116f8dbedc921043ec86764f1beef177b85c7bde0669d881236

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.0-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4c575c75efe4d1171ad210fa33f89fc51ea255817f7b469e52fb17067cff643f
MD5 eaadf1a642305f84dd74183aaeff8e16
BLAKE2b-256 ecc36cd42dbea2cb2469f52398a857eb7ed541dabd735f3885efb6038868bd43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.0-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f8bdbd1ddd1b420bf17ddce7bc73424affb515cfea684f53843c4587a8e0e197
MD5 1bb00d2aa2db2b371941411d24b3f1cf
BLAKE2b-256 70a6b801951b78e784908061653e4d0ed3dd1f842491cb6deccc30bb8941b40a

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.26.0-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.26.0-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 892f7d27101a56ada7a4ab2a06e8f4d12804e08207a1e84c63a1b0a7e199249e
MD5 01718869818c67a6619ca237af5e1494
BLAKE2b-256 9a75977f26da918b0b1c84d314b1cb271882d1be17f965111fa02f08294912b4

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.26.0-py2.py3-none-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.26.0-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 850c5cc7847955fe7f48bd3bf045a293fbc19a9e6fd996e8d44643c91984f7e5
MD5 6c299b9be557c352df3948c3d2a30c21
BLAKE2b-256 d6a0e785ff7d32803a8975399205dea7add6d0df1bebd92c90d9103b605054c1

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