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

Uploaded Source

Built Distributions

pysdl2_dll-2.30.1-py2.py3-none-win_amd64.whl (4.1 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

pysdl2_dll-2.30.1-py2.py3-none-win32.whl (3.6 MB view details)

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.30.1-py2.py3-none-manylinux_2_28_x86_64.whl (5.0 MB view details)

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

pysdl2_dll-2.30.1-py2.py3-none-manylinux_2_28_aarch64.whl (4.2 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.28+ ARM64

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.30.1-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.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for pysdl2-dll-2.30.1.tar.gz
Algorithm Hash digest
SHA256 214b5175315ce236159e246f15ea88dc9926387b648bac9c544e68b35befb499
MD5 a3726642fc82ef787e12064521711b43
BLAKE2b-256 73acecb7506faf926997ef22ec8258e9abbc32fb5359e93d3460bdb6a5cf6f36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8850dd310acab85d4896558ad1b62c7eabfad74c7f56e387d865de3eb6e70af3
MD5 48ec8309024e60641c5d56d2529c17a8
BLAKE2b-256 b1d82bf900e1d1166bbdb5eb59538dd4821678879d24d512375f9e11be02c171

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pysdl2_dll-2.30.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 a9f817e5e80b81974be00b666310b6105dbcf622ff80694096c52472a50a2d7c
MD5 052219f849cfa39dc4b8e14893e6514f
BLAKE2b-256 0afcb8b7a44c508599030f8a5dd3afa8edc2d6eeaa67d45d789277008ca82e6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.1-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b0d3230318c02ee239e772177c48f6862ec61b1268b6c769f798c4124518fe5f
MD5 eb2943a3d27881585958a35972476b69
BLAKE2b-256 21f78453d1bdcfc94cfc2030a2222e3514f491c845a55e8812dfc2f1deca0385

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.1-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 37df14a32a42bb29f2d8a8a145dcd2c11ba5a08f131d6428537e4e4fe943714a
MD5 77c56c44f53741470c87f4f23404d926
BLAKE2b-256 4e819ddf5683338738a52064e31031360c57940c5333c695293661ac2a72a1c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.1-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d2a52478d2094d7a758b4197e9a17bc3f9423362e999ccb9705234a442380621
MD5 cdff29c17d203155560b12e5d0b6d334
BLAKE2b-256 e928f0449f974fcdf3eba090399433037ab8849cab54e0bb61cdce29357f2e60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.1-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 db57dd9e2566279b8ce67a31b92f3cc0c90dcbfcda69a2b4114c66c1005675a1
MD5 9062fa6e22254dc52534ad04685d8905
BLAKE2b-256 abb54c2552fac5a9a5e8481d6979861b8c161b14e4c48f74fdf55dc0ec29344d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.1-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 54151b8f86aff798989d84ba9db92edb6bd5fa35edfdec17d5e3ead7e7553cc0
MD5 fc5123a49ee34f66ed9b1839883d823a
BLAKE2b-256 9606a7f6ae1c650c4508b3f7ed664104afcba5c4a96b20af0deb503eb3629a84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.30.1-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 52cd040563a0bfa957b031c6349f301fce8b5b75e804d8fc35052f2e537ee58b
MD5 574e8f8b30d3840906fc12feeb922291
BLAKE2b-256 ed00fb214b0e4b3de634f7d25782c7e9947ea178d0b1b559f9f393a28c11a310

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