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.26.5 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 on macOS, and for PySDL2 to load the binaries automatically when available. 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. For older versions of PySDL2, you will need to import this module manually in your scripts (import sdl2dll) before PySDL2 is imported.

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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.26.5-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.26.5-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.26.5.tar.gz.

File metadata

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

File hashes

Hashes for pysdl2-dll-2.26.5.tar.gz
Algorithm Hash digest
SHA256 c0b5d6fcfee642a1aeef5771960910cd2b4fbda98662aaf4318b067b4a046d61
MD5 50bee70eb91591404419bd41e330622e
BLAKE2b-256 0f24b1c4ba6630095bde6bd21017a677214c6f44fe52af98ac65a4d5df6140e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.5-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 64b1f84b68197757811e4bf59072c1e2705177400d867dbde3b8ee0029f709d5
MD5 99fe9faf8455670e9c7479a2489c9134
BLAKE2b-256 b87d71ddcac801b991f5ccba4cf210c7e77d7a10ad750123dd6c43b3184318da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.26.5-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.26.5-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 b6694828eacf62be4f9a61aa10a82ae49e4b54bb903cabec348057e2df4a9c80
MD5 49c2c0e802b3370d9375e1cb2a993c7d
BLAKE2b-256 2dc80a87dd9849f961e2e671da14e7d7edfb7d1991b758f4ccff4e6be6343bb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.5-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0984230bde601a71500f00b35f3362dc0326adaf5bf2cf2b36fdbc81983574d1
MD5 eded3e8a65da7f8e9248c9a8d1d8fe0f
BLAKE2b-256 9db0bc18f2a6e9e7b48c0db5d3807cfd18e52fa4a7c1e20a9e7804ab0866615e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.5-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e9d81435425604e0244bfaaa7bdec4955688df43ec0d9b531affc1fe7221a4d8
MD5 cf5b99dabf50f16427917b844dc7ee6a
BLAKE2b-256 8e41fcb875df8318bfd567b52ccf37fd49f377b035b83240635b6516b5792ddf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.5-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fcd63cbbd424b328c0ddebab102c0061a2716bddf749ad41f80e8a01d545415d
MD5 b318b7e60af44680cbb4be35f229737e
BLAKE2b-256 9060594372cccdac046630258908cb9db440c8ecdd69aeae30494c834cd2074b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.5-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b85beb25c663ae4c0b515271912fa01c25b92d3327ab0c58dbda61e5d13b531a
MD5 4ec2690040f66e170dda4941d03702f0
BLAKE2b-256 43c6f0eedd37a521b5d190b82711c5b53ddf3cd4a2833bba1cca366728bf97de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.5-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 a06f99600c89c9673731020c77317ad0d1750f461840705e229997f6540c478e
MD5 11536655ce34c13b82ce8e1c81c7ab37
BLAKE2b-256 9be282436c68bb6f01d7560c2ba5cd3c68e7aae4dd9738d8d7114fd0a7da96e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.5-py2.py3-none-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 7ee669222f36e98c940fe86e7f316aca08f61f00422383a6f7796a9dfd5e830a
MD5 18a1bde2a7581618b6745e2e51b30499
BLAKE2b-256 a32086c2fbe5567b20c289d5bbbf0d8c90b43babc0407fbd045bcc78b7ca2355

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