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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.0.20-py2.py3-none-manylinux_2_24_x86_64.whl (16.2 MB view details)

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

pysdl2_dll-2.0.20-py2.py3-none-manylinux_2_24_aarch64.whl (15.4 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.24+ ARM64

pysdl2_dll-2.0.20-py2.py3-none-manylinux2014_x86_64.whl (17.9 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.0.20-py2.py3-none-manylinux2014_i686.whl (17.3 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.0.20-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.20.tar.gz.

File metadata

  • Download URL: pysdl2-dll-2.0.20.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.20.tar.gz
Algorithm Hash digest
SHA256 903f3845498f90fc8a9d2294891e8e74e37a066d66e3954cdf2e64d78850e90a
MD5 cd05fcfdb90766fc4ebdbf3db7d4ba30
BLAKE2b-256 5cc7d4a96f05b5934ec8251db1f8251a71564b029bfb40ae5b9a14a5d89e335e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.20-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.20-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e99c7ac7d1ee164bf176c07682231eb067d356551ef9db5d657f132ebaa6448a
MD5 60d2cc6696bec28aed60eace2aa8862a
BLAKE2b-256 b76f37cdee2957043f0f53b4c49fe819a8c7d3f2e37e6fe452b49cfd5615c344

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.20-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.20-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 918d39f6d24785fb2d77fe62192ad89fc9ae26ec7abfb5839c7eb2b55f0fd81d
MD5 78ea47a8ca88d3f016f941ea9a016adf
BLAKE2b-256 62e5d093c90d06055e48c8024d46b17b34990809dcf69250f8eeb16aaef0083e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.20-py2.py3-none-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 16.2 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.20-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 3e728ee1c4574b7c3dc61eed355c9c7c36c74b33f03c5f38fce3644b0d768267
MD5 9bdf6e45eb0553d389616f19f3ad4d7a
BLAKE2b-256 622e33e6a4567f2b2feea2ccec982312c72e99f86713b37b0829686d62e6c8d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.20-py2.py3-none-manylinux_2_24_aarch64.whl
  • Upload date:
  • Size: 15.4 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.20-py2.py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 9c9cb769b4375564146a7cbfffc5632a964b27a72be465883a4329d9be3a82af
MD5 74c022864ba626fe6e0d9b1b5f818a38
BLAKE2b-256 d3459465573ce4cd3d2648fedd07a687c5b8f2f0e28413b4951ecaaca72f9066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.20-py2.py3-none-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 17.9 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.20-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0585d4f6a13fbb12969bb5c0303d5a0a3717371f86a6cb46d4dc523ec0db6d5
MD5 b792145f3d54d428f4e8860dbf9bad9f
BLAKE2b-256 9323a73d0dc333f0258cb6244b6f27998923ef9ad606ae3323b4f267e81d1351

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.20-py2.py3-none-manylinux2014_i686.whl
  • Upload date:
  • Size: 17.3 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.20-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 cb487662740cc1700e6dd57b14aa9e368d2341fb28805dfd3c3632fd00119426
MD5 fd6712bb729f9f82e87460775d1d441d
BLAKE2b-256 ee28e189ecd160daeacd3c7567e3e5152b435185e62bff82b9cd4caeb5bb657c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.20-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.20-py2.py3-none-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 6cb9e4266621aa42ef4fdcd40b1889b9c151878c8d6550b1c9d91e388679c5f7
MD5 03e1bff069610b8e77a96df2a1c7959f
BLAKE2b-256 f04f3f28968810cad1e271ad99fbd4552b81a77dad983eb288182bae4a70b3ce

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