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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.28.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: pysdl2-dll-2.28.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ba3ff250603084a3817a7b9742f0ee8c23edbe4ea97d86fc3349496c299ebcf9
MD5 fa4c4514f2c6f1c9d7afe84fb486a873
BLAKE2b-256 e0914859de5cb8b7060638a9bde0cb5fd0b1378840031eb3c0b16609eac764bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.2-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1ac3bff1306eca66380b89cb44881204fd340e5fa68e7839ca47b93bc0aee5c1
MD5 1d3aefbb1450e938b03595d1f8494d24
BLAKE2b-256 2782ef06bc4db969667b88cc716b69f9f86e402e9dcc1a5466961d5d68755d1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.28.2-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.2-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 3efc71b9a22b4fc931ddf189289751eaf89a72b812732663afccc07f1991a563
MD5 b4d3221faef39401b41702b98fb3f916
BLAKE2b-256 923ae1f6ca37aa024d38d784422a440dcdf604ab3ef66a016eee74be64fe5938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.2-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 51d548fdfe6e14c2f320c4f2126743bd08596bbc94972f38ca36a80dbf686220
MD5 35f5c35836dfd67f293d0d7f48b174c7
BLAKE2b-256 30bf7e9b1af56494e4c888e0316135000c05a7a16be893cbaa04effc122b1d28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.2-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bc4e91bf50ae7f0a514d68d9451ef5c3d703d9e2e06c90ea945fdc50a505de51
MD5 5a1c3eba82ec2a8705bf1587cc1dc16b
BLAKE2b-256 3ba3ab21c0db8b8589a7bd51ae971f8cc52caa83af3a0241ddb181ac29e20120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.2-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ac30de955052262d417f2e324131c3fc68f1a3b98104dce371b1805766ed0a8d
MD5 4b9275b9c709efef6fbb386185319777
BLAKE2b-256 c38ec17f4ad9c46be88493b7f5c2a6f4ac4fea5b51ebcfb467336bd7fbe82dcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.2-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 5fb3e27a3d9f7b67f0943ccd7b14d459ae372bb07dbe938734327964400939cb
MD5 8eda7003c7eb45b8525302bf39644e9d
BLAKE2b-256 6fa9e015eb269d709874e8555ec800852b9840921847a61a713981e28acac6e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.2-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 a2a2b200e3438ec8bb7f62a4d0a5a71dd22df3bb15a90a621cdf6c9f8943e075
MD5 b487efa8be59625f1c366620010f2156
BLAKE2b-256 cf539e8cbe599fab2041f68821440dfc6be197867342926b601a79357f11b2b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.28.2-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 1340fbb2a398b6e407f2ce43e76de2cc584ee131db5beaa4428a066cbeb27415
MD5 ba8f430a01fc983873d967e455e584f8
BLAKE2b-256 93f678a6035bbc6370b7fc848e4f43333b4fd3705960daafbf5e2c226cce4d18

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