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

Note that the mixer and image libraries are pinned at their current versions until their 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.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.28.0-py2.py3-none-macosx_10_11_x86_64.whl (5.0 MB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

pysdl2_dll-2.28.0-py2.py3-none-macosx_10_11_universal2.whl (5.0 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.0.tar.gz.

File metadata

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

File hashes

Hashes for pysdl2-dll-2.28.0.tar.gz
Algorithm Hash digest
SHA256 40ed48d5450903b65dc6cfa43673e1db7e5b7de105afb7645db66a9baac9dc1d
MD5 70061c6b69581d52b0a79af202cccefe
BLAKE2b-256 a00b007c67742e2b8b92c1adfead96e55be07e3671afc67b86a29d426faa87cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7078d6549fafb6d012364557ae9a36a2e37c8c3627a2705f80b8186534ebac65
MD5 91ba2e82e5b19afa3b3178379d0bceec
BLAKE2b-256 be1fca8228a1956708c5f1c25407a71f77dd6e03431b9dc81d535ac4d11e171d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.28.0-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/4.0.2 CPython/3.8.10

File hashes

Hashes for pysdl2_dll-2.28.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 2e5751b36f2d15a9a21543716bcb54fe001190d531bd7073ab92df9de5168469
MD5 1c0044139f7199ea33c82577ecb6f7dd
BLAKE2b-256 b221945c74e034e23c7af17724c7044497b19cb53870989f704a6381ecd722a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.0-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d1b524dc7c2bb1101e1d1bfef457440fdcbb8a5182a5d69a57f2a1a151084ef6
MD5 b3e6222109df770bc17e8f672eac2885
BLAKE2b-256 a8b0a95db0a01b6c413a8ed423215e15fdc10416b56bf3f97f26760691d1c244

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.0-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bfb01d7f0bae94b01a78f4284dab5e47371822a32faababd1f545f45cbcd2782
MD5 03c6845422d9fd4c4a0f0c0339e281b4
BLAKE2b-256 c31a866db84674ab03f729d70ced0c50ad2042353f1d98036ba7c6375a35bf41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.0-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1edde019e0aba02f82fda6dc79e7774f7d510cc7684e793b89368d84cd24b9f
MD5 951b5b725719cb96a76df800beeaf16d
BLAKE2b-256 190205d46aeed636b19286fec553e43a36a5a997341e01fb0b18c2d4e4c33d4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.0-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 43e04b00252209bdf7d8d756ff27a90a56c79cc2a87c77380211541c52e581aa
MD5 272237119662768a84bef9a5b9d50040
BLAKE2b-256 b76abe723d8e4707bec0372c181b2a6dab5a8508a1ae49845d31c43b693f5d55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.0-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 2535e1d4ad0c6dfb0ba5c5cd9fab45c7c8b1865c7d8c22d2e07aaea35c37e24d
MD5 2976f94e2577b87859c1e83ed18ebd96
BLAKE2b-256 6a3d1572a410e6d9bfd9fa15dce9bc8a433aa5abe60c3f4a7c20ad3a99599ef8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.0-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 2564ef8321bfb0a4ab694eb8698ec0cee0580bae381e560d648edad2a14b958c
MD5 3822b72e60ef47cea1641d816eb2421d
BLAKE2b-256 bf21e11fbad4137b79a78b6ffab212952c057f62f5e3884f9e0cdd3ceb85221b

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