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.0.22 2.0.18 2.0.4 2.0.5 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.6+, 64-bit x86*)
  • Windows (32-bit x86)
  • Windows (64-bit x86)
  • Linux (32-bit x86)
  • Linux (64-bit x86)
  • Linux (64-bit ARM)

*Apple Silicon wheels will be available as soon as official universal binaries of the SDL2_mixer and SDL2_image libraries are released.

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

Uploaded Source

Built Distributions

pysdl2_dll-2.0.22-py2.py3-none-win_amd64.whl (3.1 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

pysdl2_dll-2.0.22-py2.py3-none-win32.whl (2.9 MB view details)

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.0.22-py2.py3-none-manylinux_2_24_x86_64.whl (16.4 MB view details)

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

pysdl2_dll-2.0.22-py2.py3-none-manylinux_2_24_aarch64.whl (15.5 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.24+ ARM64

pysdl2_dll-2.0.22-py2.py3-none-manylinux2014_x86_64.whl (18.0 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.0.22-py2.py3-none-manylinux2014_i686.whl (17.4 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.0.22-py2.py3-none-macosx_10_6_x86_64.whl (5.0 MB view details)

Uploaded Python 2 Python 3 macOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: pysdl2-dll-2.0.22.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • 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.0.22.tar.gz
Algorithm Hash digest
SHA256 e3b2024fb652b3040818ccd01ffe9dcc2bffb75a693d531dbe5d28d0b70b48a0
MD5 04fcb4f5918b8f01494f1bace7a6b86e
BLAKE2b-256 51f8779e76a3841fd10942d224cab0cf9762094217d58f289bb52b31158c20eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.22-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: Python 2, Python 3, Windows 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.0.22-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0371c90d4d502e2d0ed072510a044eb12f090af0ba53d3d078a1377c5841c350
MD5 8d7db95a2a6724337549936127398662
BLAKE2b-256 f1a190d6f12e0a1e2a7a478b778c323430202cbd643e6d1ae613c057a8273da1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.22-py2.py3-none-win32.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 2, Python 3, Windows x86
  • 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.0.22-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 1274b4c20b3e2ed44ccdaf94afa14cbeae53074c0a6f0127a3501c272c08027a
MD5 2b95d427b86c8f30450a02f359c84baf
BLAKE2b-256 093797461da51f268562b274cbb0624b5dca78c1b9a971667eb365b551497629

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.22-py2.py3-none-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 16.4 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.0.22-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 8d9a3b7c83b555a9ec2663ce8df233466774e719aff8620ddf689a1c8c7ec79d
MD5 30ec9511208245857dfd7ae3a7b33f7d
BLAKE2b-256 0bab2f8b3a374e9e523d5128353819669cfc8ddb8f47a1d905d3f6ef16437e93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.22-py2.py3-none-manylinux_2_24_aarch64.whl
  • Upload date:
  • Size: 15.5 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.0.22-py2.py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 9e0416589c45a33a8ff5e4de5e96beaac7d025a973037061e9729d263152ec01
MD5 2ca89d3f7296015ba2ea90a19405c0b8
BLAKE2b-256 da0afc8df526690fec2ec013d0e3ac9843192a651bff59904a6f7c7122d94a2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.22-py2.py3-none-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 18.0 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.0.22-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a3092031050bb97f1ac235c332e5737c8164280c3d03d24978abdab8bf40b613
MD5 29cfa6590f7a13c2029de6d9e76a24b9
BLAKE2b-256 f927f99cc1281c23dfa2777bdbd493e192a4c98b1022a055ad20139105dcfc0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.22-py2.py3-none-manylinux2014_i686.whl
  • Upload date:
  • Size: 17.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.0.22-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 580c20d758f8b4841e07bd0424d83c8bf0e6c2842a8229a4f14d4e6181feaf32
MD5 73f681fc4ca8a9e28c99c1cd601f565a
BLAKE2b-256 b7a92b9893e3d7eaee4b44e9931beec6ce6381129ddcc8a37c6df6c1d697545a

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.0.22-py2.py3-none-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: pysdl2_dll-2.0.22-py2.py3-none-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: Python 2, Python 3, macOS 10.6+ 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.0.22-py2.py3-none-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 a7070c4e6cd3b0e3786bfd680d3e94f0504de64a15d99f915f134e4e4562acdc
MD5 534249d57f2077c329c5be1d726550fa
BLAKE2b-256 ad360df9de185e189c2ac18b935dc1bc3cd7b4afa933266bf2ad0e6cfe0a012b

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