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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

pysdl2_dll-2.24.1-py2.py3-none-win32.whl (2.4 MB view details)

Uploaded Python 2 Python 3 Windows x86

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

pysdl2_dll-2.24.1-py2.py3-none-macosx_10_7_x86_64.whl (4.9 MB view details)

Uploaded Python 2 Python 3 macOS 10.7+ x86-64

pysdl2_dll-2.24.1-py2.py3-none-macosx_10_7_universal2.whl (4.9 MB view details)

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

File details

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

File metadata

  • Download URL: pysdl2-dll-2.24.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for pysdl2-dll-2.24.1.tar.gz
Algorithm Hash digest
SHA256 9ca39bcabc64f550c86b64bf7fb705d28b0a24c99b539ad48a2abeaa61f2e27f
MD5 0a96e73ccacaccee5cc2127a3c2c4e9a
BLAKE2b-256 bea6cfc4c2d33f5378fa159b751bf0fcb936ca87722187079ae7e28856d939e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 30bd1e7d618f1e6d0b5fff344125cdbf7e111ecddb4f5232ceb8a502ccee5ee1
MD5 132b1a04ec9670dc3b0727f4d8223c1e
BLAKE2b-256 d22c75f15916f7162f45a924918b80232e13e1929e80aae307ca5410afb14103

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pysdl2_dll-2.24.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 a7c76e28a2a816a5c42c0249c5e416c501bd65e73e47067c0c21534d8fd4ea69
MD5 dbd21097b16971425c684009bcd2fa39
BLAKE2b-256 7466d61f6b1966153604b014cc6ac7f07743d36ad6403ccec993a32c997b33f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.1-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 31de25ed1390e1f082ba7bd2928055e2164f662a95baa6d2e58714e0a777c18b
MD5 10d78e1b9c24fcb126967fed60c86fc7
BLAKE2b-256 68d221a18c79cbfe8f64f4cd87a964cb2b260d2186fdef657da912b8739d8bca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.1-py2.py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 e587fc3ca14b4d50e77a7d0a42528e4e010964751925ab91724eeb601ac0e8e5
MD5 6b9da704153000881b84b4ed9b05bb17
BLAKE2b-256 23232b27f5ba862ca2dd0945a7443dc7b71e29ed75b941e97cdb1a95b23d2842

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.1-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8183615f661c0a28ed99c59781e8775f8d691ab05070663c4c935a46519a0a3d
MD5 4736a0091f3b2b7b113396d2aaa779d1
BLAKE2b-256 d182aa26a302e77b62b60ba27c0dced96d3155ace17470cef9f1d5596b701bdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.24.1-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 0c5d5a52f6fe4c6902cc019bc37ea75e2ea40d9843ed0d0341d006604d1db30a
MD5 b5cbc7cda108aeb08a2f4bc1a5a94c4c
BLAKE2b-256 82f09650a4341b290d0f7210c97dfce47f98e1aa8b36c69d32be59129a567a91

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.24.1-py2.py3-none-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.24.1-py2.py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 879759374999c49fe7b9acc56003545e9e18b66fe6c97d94df31ed06f55c2109
MD5 f001ae4a59e1770e196a69a2b5655209
BLAKE2b-256 b311d5a73923dda4783646dabef1c90cfc58135bb992f55593460bf72ba15f90

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.24.1-py2.py3-none-macosx_10_7_universal2.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.24.1-py2.py3-none-macosx_10_7_universal2.whl
Algorithm Hash digest
SHA256 edfb2702f39b10ae323a207e0d6793489d92774889f549237a0bac749e011778
MD5 6c9f9c03976934d18184787e48e327b0
BLAKE2b-256 e9f5ae4bbf6fc619449d8766e991314b82c640cfa3dc727ee0b7f78194a7c234

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