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.28.5 2.20.0 2.6.0 2.8.1 1.0.4

Note that the mixer library is pinned at its current version until its next major release due to a regression in the macOS binaries.

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

Uploaded Source

Built Distributions

pysdl2_dll-2.28.5-py2.py3-none-win_amd64.whl (3.6 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

pysdl2_dll-2.28.5-py2.py3-none-win32.whl (3.1 MB view details)

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.28.5-py2.py3-none-manylinux_2_28_x86_64.whl (3.4 MB view details)

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

pysdl2_dll-2.28.5-py2.py3-none-manylinux_2_28_aarch64.whl (3.2 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.28+ ARM64

pysdl2_dll-2.28.5-py2.py3-none-manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.28.5-py2.py3-none-macosx_10_11_x86_64.whl (5.8 MB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

pysdl2_dll-2.28.5-py2.py3-none-macosx_10_11_universal2.whl (5.8 MB view details)

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

File details

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

File metadata

  • Download URL: pysdl2-dll-2.28.5.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pysdl2-dll-2.28.5.tar.gz
Algorithm Hash digest
SHA256 0015912b9ed50e5e45a6dbd85a4a3f67b7ace796cac4a055fb5424800f4a63e7
MD5 4ef4b3df7337569a5d7439d3f66523a0
BLAKE2b-256 37e6d111e78bc94a6499049538feb99abdd36ad15774847e8c7f41272ca38c35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.5-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5c245e18249b6c458a7b93b120afdd06487dfa4f19c8174b4d6de970f63e3142
MD5 98590841620933519e0f1745fbc7e3ed
BLAKE2b-256 1f3bed26592de6c3da645a6e61d3f4ab637e72996ad83a510ca7e99664896b5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.28.5-py2.py3-none-win32.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pysdl2_dll-2.28.5-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 6911eff43668ee717f9c2e06d0ed1b93d43c07a439bd0def5604beeb00dfc931
MD5 17ba08fb6b747c6cd827e8d47b93b553
BLAKE2b-256 e54c583df87afe58d3003badbb8d5dbd8c1bdeba16c0c85133fd83320c88dbd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.5-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fc08fb6a53e72c7199215535711169c95fe62ea2af9d2ae0ddede2db5de71cf4
MD5 f08d5eebfa2fc8a91638feab2df94c4c
BLAKE2b-256 bd9b2d6810a6c60d8df6c13204e1e4da70dc8c0f6472f4ee1ca56690660a7591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.5-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 83f0fe6c5ceeb1b18779577038e14e937311f523d2129cd4da7cde3e01ada92a
MD5 9937d6b50a57921ea8fdcea0755788b0
BLAKE2b-256 e1cb9072b90a9f1105a3174c1c7c038c0a58844fac231bf6d52a822f60744111

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.5-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99e3baa4155fa1a6e544daeca81c136e6b5ea4915b2c1574fa821c819021878a
MD5 9ed1440301449f1519c88a23512bb08a
BLAKE2b-256 3f68e3c846eb6c9836226b622a9b736af2794be1fec000572d72740555942432

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.5-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 3ac04353b17832ecedcab7903e8fc1e556645417d34898bbfbb193e3c44caea9
MD5 3f0e6cdd7c54518287c75b19b6b5b819
BLAKE2b-256 7aa5d382f55ef93799a952760c95c8f5d5bad5033d3e26daa4d2be09dbe9819a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.5-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 e8d7688173b30a77067011ad2b7d30f4c2ed417613ed489a117a3a608f9479b3
MD5 f9ec47e64ce00b92270448f0083d5bd2
BLAKE2b-256 b0fbc0d905219175422849b8a92c2c33b3bbde5a4294bdbced99b6fb2c87727e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.5-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 2242a86f86e1170145d485911803a814cb2c1e17b44aca42290e71f9d839ccf7
MD5 6ed452cb03c3244cd6c8f2c42bf00dff
BLAKE2b-256 7605dc74ba07d99c8c3959005cca3160ec111dc159b6325d61799fee44210546

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