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.32.0 2.24.0 2.8.1 2.8.6 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.32.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distributions

pysdl2_dll-2.32.0-py2.py3-none-win_amd64.whl (4.0 MB view details)

Uploaded Python 2Python 3Windows x86-64

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

Uploaded Python 2Python 3Windows x86

pysdl2_dll-2.32.0-py2.py3-none-manylinux_2_28_x86_64.whl (5.2 MB view details)

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

pysdl2_dll-2.32.0-py2.py3-none-manylinux_2_28_aarch64.whl (4.4 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 2Python 3

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

Uploaded Python 2Python 3

pysdl2_dll-2.32.0-py2.py3-none-macosx_10_11_x86_64.whl (6.6 MB view details)

Uploaded Python 2Python 3macOS 10.11+ x86-64

pysdl2_dll-2.32.0-py2.py3-none-macosx_10_11_universal2.whl (6.6 MB view details)

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

File details

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

File metadata

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

File hashes

Hashes for pysdl2-dll-2.32.0.tar.gz
Algorithm Hash digest
SHA256 4ee29af075c0ca2f0f7a4478f9f01d1caa3b8bdcc5ea8492ef379d8528ddd821
MD5 78b4f35fb8fd444430dede90bdc501c6
BLAKE2b-256 0e9eedc54eb68ebdb3e26302c330a6e2171ebb41179fa1245caa03b3ea89c930

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 28f577907bf17df3b3600daebbf0534aeaa44af266430ba09c7e04ab3e22b41f
MD5 63fcc127ccf77bbda922ecc8b214a426
BLAKE2b-256 47ef5ba6580e06aec8f1e3004269a6939457e63e4791ca1e36ab2e3492a120da

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pysdl2_dll-2.32.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 0139ce2160d8387fa4f9bbd5272b374be521e9dd133cd9a2d76c20a20d599bed
MD5 590dc0e07771f00c0476d72c301e2d72
BLAKE2b-256 2e9cf09d804737501b4813b3612c95e4d74dcbc0c82a51a74542ed8e5a4a27b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.0-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 490f1525c47ab00d8150ed1245fb306f02628d1b43f0e162e6903ed5c1a4a1ef
MD5 015acf11c27bede690f193c6ffeaa0a2
BLAKE2b-256 80119bee58ff7aa742e7917d97a926ff3d1c2e9a67ac2e82244c4c50c51e3df8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.0-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c9a5c97b0647f9ddf9ad52f5f95b90d1dbf362ab52fcad0ff091e3f32663b257
MD5 64072af1485821ed8de7aaeaef7c24c0
BLAKE2b-256 a08788203f9a7f72246a1388d7a8cb15045ba119ca4e79bb7d1ad624fe9519f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.0-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9086bd345be6d4e3463379703701a4ff6acdd2991a49f5722ad4f8bc86b26539
MD5 b46f83674381489152661979f260a5be
BLAKE2b-256 ef09246560c698f6c857f522134b648e12b5a9fecb89a82abeb1ed36cf17f0f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.0-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9f8c5945dda098037be08ff480a995d7c34b9e2e8afcf743de26e8e1ffff0e22
MD5 c0166126e7fc4bf221b91e511a164189
BLAKE2b-256 6bfe8a8d56f3674b6ab685ffc64a5bb3819f643717972f06690b19ba6d72c3e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.0-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 745da0fd2bca264620fb65db8fbb473d230a2ddb649952c84b93592d663d95cc
MD5 a5526913c5140069d544a539ddc5ad78
BLAKE2b-256 2a7eb699279c78f4ba978dbe17782b18f12909dc04ab1f42c6835aac365518c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.0-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 61adecf7501e074a8b476eebffbc1661f1553681db8d01b3047a9674b737b9fa
MD5 c043a773d558e4f716458ce3a1809010
BLAKE2b-256 6c858e3290d674f96768efdf62c20630a018a4204d5192bc58af0eca55c2249c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page