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.1 2.20.0 2.6.0 2.6.0 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.9+, 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_24 standard (for 64-bit x86 and 64-bit ARM only). The manylinux_2_24 SDL2 binaries require a more recent version of Linux, but offer dynamic support for additional features such as Wayland windowing, Pipewire/sndio/JACK audio, and OpenGL ES v1 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_24 wheels. Distributions that use musl C instead of glibc (e.g. Alpine Linux) are not supported.

Note: pysdl2-dll is currently not built with libdecor support, meaning that native Wayland (non-XWayland) window decorations will be unavailable when using these binaries (see issue #9 for details). Given that SDL2 defaults to using XWayland this shouldn't be an issue for most users, but suggestions and/or PRs to fix the issue are welcome!

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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.26.1-py2.py3-none-manylinux_2_24_x86_64.whl (3.3 MB view details)

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

pysdl2_dll-2.26.1-py2.py3-none-manylinux_2_24_aarch64.whl (2.9 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.24+ ARM64

pysdl2_dll-2.26.1-py2.py3-none-manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.26.1-py2.py3-none-macosx_10_9_x86_64.whl (5.0 MB view details)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

pysdl2_dll-2.26.1-py2.py3-none-macosx_10_9_universal2.whl (5.0 MB view details)

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

File details

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

File metadata

  • Download URL: pysdl2-dll-2.26.1.tar.gz
  • Upload date:
  • Size: 15.3 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.1.tar.gz
Algorithm Hash digest
SHA256 f5c7b7b764834812702dcea4e470903ec75ec34bdb351509bbd44fc2e7ffc272
MD5 8b63ea8fcdf6170c08a1e7be887368e1
BLAKE2b-256 6c81912ff2eeeabf42bb6a25de765c0f42db9be90c96477ca9705350f36276cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 df327ef9395f26d19bbca602e8acaba9d3492594e513d1ef777f3db479fa73db
MD5 284de5705cfc53234d9b29e4feb3ec16
BLAKE2b-256 14aaab6f8ff1fc88c55f02d145d5a742b6ebc85231dfe7ebbbdbf6915e079647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.26.1-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.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 192db885903cf92d2a07df1e6dcd017760bc58ebd6cd3209d0b3957cc2a4e32a
MD5 8e6447f642949f81f447ce41470b1128
BLAKE2b-256 d24df4062dd8b372525771d3f6dfbb57088c6fbaf9cbbd5b9a0fe87e2c2c03f1

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.26.1-py2.py3-none-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.26.1-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 7ba49b12c943ed7f53b611e0303c50353cf11c6486876b453c3399a350fc50cb
MD5 2e47f6bd6488d94d681938db12c4cae9
BLAKE2b-256 93a785851fecbdb0d802819d023e7da73a2126b8c387984295e1d15085a8efa2

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.26.1-py2.py3-none-manylinux_2_24_aarch64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.26.1-py2.py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 2860f49c7f5062bc371c6056e0f19df0674e7c60e3390a01c0dc51af056058c8
MD5 81fbe4a984d50813c628ec968f55a719
BLAKE2b-256 b2c38e8396ff8ceaefd2f97c8e4cebd3264bc578041871cbb7258385e2ebca72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.1-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64dd7da008aa469cba17d4bebd4958d9105a8a768d0573dafdda98c059b87dd3
MD5 88162183b9358ddf08e4b471d399bf26
BLAKE2b-256 08462cb811390861c6e38cf89bf6988dc730d4ba152d1a3a8ca7c74a602aea0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.1-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 dd85fb198778ee82c3476171247856cf4312cf97543ae8c8a4629956f6fa9d6f
MD5 c762f889b7e2c8fd0e1c20c6c7bebfe1
BLAKE2b-256 dc398478c5197e0c52a226874e50744b5d93f1484c07ce180cb7a755be13e0ae

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.26.1-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.26.1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d89c8f75c101eccfb4dae4677a6738445ac2d1f9c97312c0639ae6ea36f25915
MD5 2c59b7304efbe3dc6f98e4e57c55a50d
BLAKE2b-256 ee0b18aada6923696b0f6cdc208a123c3eb3a4ed673a7adc159c8a1d1229d953

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.26.1-py2.py3-none-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.26.1-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8109b9f8dc28ad9171c60d07dcca37581da78d831f61d82b554a2d7734196b37
MD5 60d8c89e7ffd32f9522742a48c96d8dd
BLAKE2b-256 2e11c03bb09803a616e3ffa38689ae85cec53191b77b77ad218118685e32f947

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