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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.24.2-py2.py3-none-macosx_10_9_x86_64.whl (4.9 MB view details)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

pysdl2_dll-2.24.2-py2.py3-none-macosx_10_9_universal2.whl (4.9 MB view details)

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

File details

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

File metadata

  • Download URL: pysdl2-dll-2.24.2.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.24.2.tar.gz
Algorithm Hash digest
SHA256 bc33a3873158af0f67603a47688d2896934ff39b10cb7f1c50aa971a2c35c36e
MD5 14c0bbf89f44bc7a8d2c943c63c4ee8a
BLAKE2b-256 055020a6102c4fb40d2ee7e287be78cd3e63f3822274f777d08872af19091678

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.2-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ac4b566a186cc4e901dc3a916e284ed1354d522f14267363f2f9ae0aa748b42f
MD5 3a98e5e1af0364049dcf438903a9b578
BLAKE2b-256 d841840dcef531b34563c8fdab8d3b79a26b60d08f8d73a71892583a119d65ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.24.2-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.2-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 01ebc67946760b739be553313bd441158acfb5a10f9ac063101698d601b05f2d
MD5 2f11fbd1bbc7c2e2a6b2c0abf274189c
BLAKE2b-256 4382ec8b4cc18eccd3b7c5bc9e8b1571ee460f2ec0297dca1c787a6d56a177f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.2-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 f0d2d733ed58e3a48f4a1beec12958256c025a3fe312a4d05575d171be8d2868
MD5 83aaff48824f744efd8ca9321125fa67
BLAKE2b-256 30c7cb7d188ede89dcd1ccb6eeb539398e49e9ac52c7a1e67f3db29f302d6f40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.2-py2.py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 3b25fee8a6ecd0ceda72a45aef8d890e78a74aa13bb680be9e1e5358c198516e
MD5 b5ca2c0b452e73542964f8966a41bd75
BLAKE2b-256 a212d3cabac8137fb1b039c6d0fabdf8765c7b7ff9e0e363c6e2f1082fc95a67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.2-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19706155c4bef622f5196d1430d282032c22cb4a0ddd1a869dc7971e10d251d5
MD5 63f52761ce2a48b6da0662b169e5abb8
BLAKE2b-256 6a56340282cd2a9dc953507e2d91e130ef873ccddb9b899dfcaacb862246802e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.2-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c05d17ced744b318dca2832bead0d37e34e27be761b779454da22efe022f4a06
MD5 0e9733edc40fc6edb2a67dcaf0cd4717
BLAKE2b-256 d40e3cfcfba5cd5ff3b1d203160a63ef61baf37cbe0c88d6ced2daea052c3180

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.2-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7966b5661e86d5d1f3c7026a2206e6a5b94a9cb2fe2d844815b164db9be9981e
MD5 e8b4edac7331b165b19b2cecd5150c30
BLAKE2b-256 e256fb2ac104f12677617ebe79ba817527b2b304260743138405d214350ce36e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.2-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 562501033995e9fac0c97cd607603157483c0855ab0763f8f20fa777bfcdcab0
MD5 92e5cc67fdfec7a3d6ec9309903109ec
BLAKE2b-256 a369433743561dde7d09bd9a3b45ad2e6a661720bcf75d15ac84d1e8231df533

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