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.18 2.0.15 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_ttf, 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.18.tar.gz (14.0 kB view details)

Uploaded Source

Built Distributions

pysdl2_dll-2.0.18-py2.py3-none-win_amd64.whl (2.7 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.0.18-py2.py3-none-manylinux_2_24_x86_64.whl (9.9 MB view details)

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

pysdl2_dll-2.0.18-py2.py3-none-manylinux_2_24_aarch64.whl (9.1 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.24+ ARM64

pysdl2_dll-2.0.18-py2.py3-none-manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.0.18-py2.py3-none-manylinux2014_i686.whl (10.4 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.0.18-py2.py3-none-macosx_10_6_x86_64.whl (4.2 MB view details)

Uploaded Python 2 Python 3 macOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: pysdl2-dll-2.0.18.tar.gz
  • Upload date:
  • Size: 14.0 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.18.tar.gz
Algorithm Hash digest
SHA256 49ab2d3a98367a34e17260f0e3ab34e38b5c3ce9e83e24e731acc679e47b98fe
MD5 951e6bdb8b49c80a828b4bc32241aede
BLAKE2b-256 204403374c4259a0a53614746fc2141b8ede50f18ae3b9367dea7867abaefab2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.18-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.7 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.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pysdl2_dll-2.0.18-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 85137bb0b03f4ca6ac88109e909e01724d8890575ffe69de672bbaa160f16aa7
MD5 9f6ae3211d6db0e5cb11300518d6d83b
BLAKE2b-256 65bbef75cc95afc6757cdf54de20472bdc21d8f3cb59202de8dc91f093ffc7c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.18-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/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pysdl2_dll-2.0.18-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 336f5a252854fccce934775ee879ac63375f2365058c378b9b5dac06224db4f0
MD5 f811c22b1556b50eed320126cf14f8e4
BLAKE2b-256 6cf02a5a777c780011c4c86fa7c84e0d5cbcbda2609ac4502f31634f44a47cde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.18-py2.py3-none-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 9.9 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.18-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 7dcc517e53c7b3352279f98b0d47a08f05a4821fc5dc67920e9be37858a95b53
MD5 41953255098c43e42c386749c138ea01
BLAKE2b-256 9982e4f4e7064f5379906ba97393ae92e4d16048fbd5e112e980c7c015a56a01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.18-py2.py3-none-manylinux_2_24_aarch64.whl
  • Upload date:
  • Size: 9.1 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.18-py2.py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 3c27a2baa1dd5016ae3dea72f93d0cba9e6fce28f8574ebf7d3d3e2e99541a5e
MD5 af7de87024f59f62c93b68ead6ef90b0
BLAKE2b-256 b8bf7855c9afae805d74f6927737ccde0a4c96c225d9346ddd0862aa26f7b8a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.18-py2.py3-none-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.8 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.18-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2cbf0946eacaaed2903a5e11bd54317f07b2a1033ca8442ea8eff1e042e4b0d5
MD5 55b781252150c492ddce154c3a4c39dc
BLAKE2b-256 fac6f340af4d0e24601e738c67a31de945e87ed6384d7e86e1db5e516f65bacf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.18-py2.py3-none-manylinux2014_i686.whl
  • Upload date:
  • Size: 10.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.18-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c214e6a628c1150414a675d08d17c70f55410333903d38f5f7b7e26c0affd0d0
MD5 18ba4cb8540ebcca826f5c70ceb8b202
BLAKE2b-256 40af35bc0ba5b5bb64d020e3d77d04e893d4f0e64a6ee34192f37c08422421cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.18-py2.py3-none-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 4.2 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.18-py2.py3-none-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 f039252fea1d438cbdccc456094f142e36080aedbb631c657db110c7a4ff7130
MD5 31260b3cf1f133aef5f2ce0b1fc6ae99
BLAKE2b-256 b95ca011089d9a294ba3132a7b998c4e772ce190128901525ab4f5917787483d

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