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.30.10 2.22.0 2.8.0 2.8.2 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.11+, 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. 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_28 standard (for 64-bit x86 and 64-bit ARM only). The manylinux_2_28 SDL2 binaries require a more recent version of Linux, but offer dynamic support for additional features such as native Wayland windowing, Pipewire audio, and Vulkan 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_28 wheels. Distributions that use musl C instead of glibc (e.g. Alpine Linux) are not supported.

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.

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

Uploaded Source

Built Distributions

pysdl2_dll-2.30.10-py2.py3-none-win_amd64.whl (3.9 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

pysdl2_dll-2.30.10-py2.py3-none-win32.whl (3.4 MB view details)

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.30.10-py2.py3-none-manylinux_2_28_x86_64.whl (5.1 MB view details)

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

pysdl2_dll-2.30.10-py2.py3-none-manylinux_2_28_aarch64.whl (4.3 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.28+ ARM64

pysdl2_dll-2.30.10-py2.py3-none-manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.30.10-py2.py3-none-manylinux2014_i686.whl (4.5 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.30.10-py2.py3-none-macosx_10_11_x86_64.whl (6.7 MB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

pysdl2_dll-2.30.10-py2.py3-none-macosx_10_11_universal2.whl (6.7 MB view details)

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

File details

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

File metadata

  • Download URL: pysdl2-dll-2.30.10.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for pysdl2-dll-2.30.10.tar.gz
Algorithm Hash digest
SHA256 900c8301c6a04d4d3f726aa12f3734f35d42ff827ff873aaaadb4430336ea6c0
MD5 13ff78a629e3db7d8ef1f12616b24b46
BLAKE2b-256 af5b81e6037607f297e24f407a7f458242d49b0b19a5c9f3a161f51b4cefc5fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.10-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e2e44af09ff5513cf6ec3a3cde945edf752dd83fcc7221fb0531cacb1fa2741b
MD5 773c1093a2e4ea15460dca2f6afd6295
BLAKE2b-256 688b6f5519f0972095c23201464bd25fcce7764e0b7ab40adcdff151890afbd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.10-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 70a448157d4280465d55f1adb431833108d2f846ceca3bfa07573801c2503bbb
MD5 ec36e43f9c0724d07bfcfa53827c5432
BLAKE2b-256 ad581c6fdf49ecb754e078cc8ddd7c57e6bbc494bbfd204c661168e89db03638

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.30.10-py2.py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.30.10-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1020248bc9794780016d60984df7a4ec6ca768754f8c62120f5a1600e4eb2d5a
MD5 d27fc3abfe577d16f20e7c17e461b5e7
BLAKE2b-256 d029ff2c74c20b668ff2e147e2c2134058c6d49e2476c8c5cf802c8cfee6c5f1

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.30.10-py2.py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.30.10-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b406678e6b49732489f2c6dba217404caa1569a8cab13548f55ed8e4ed91df56
MD5 9015c4fc0cd910af98e098e55e3afb74
BLAKE2b-256 26da44f99fc03203578554e889e43497a2f1c63502cc3f4f296dfef248fb4f58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.10-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5ab505d17272afad29e8965dfdcb3b6551f29a3fc69a3552b730bdf855b33177
MD5 c21868e9a0c55c68c457868441427432
BLAKE2b-256 c94342df9bfb479f0784a15627e8e99adbe5dbf5f5491b8b0dd9ce617fad7559

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.10-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 2ba837fb1150218cced4a2b6c95c60b25f5012736df879cba3b77d03315eec9d
MD5 b379d9ea138eb9d1e71355fb058e4b9f
BLAKE2b-256 c36c049170e09ea57674b3a5b1a853bbd66fe4bb037f422e739fc8dfa5342c32

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.30.10-py2.py3-none-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.30.10-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 0fbf259cf73e51b268bd9e121943e61e17b2e65485117841fcb31f89e91ecb06
MD5 7c7635a1bf8eb0c57d3c9de2397e8b4c
BLAKE2b-256 25b3ef7a217af47aa36556b208491e88d789fa247daf22b93ed66dba04b0150c

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.30.10-py2.py3-none-macosx_10_11_universal2.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.30.10-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 1a97b50a7f601d9f0ab007c44bb4324e61aecb288383e3940b065b77d60dbfb1
MD5 6c805af421d41b7c1d2c0c5b65f5d878
BLAKE2b-256 022461e84a2710ee520e63dcf20beb957b4c5cf9ea97a49bd1e0358fa38dfa44

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page