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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

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

File metadata

  • Download URL: pysdl2-dll-2.26.2.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.2.tar.gz
Algorithm Hash digest
SHA256 bacba1a1b047d370c260bf66e75206f97469456611abbb5f3197c52e66ddf547
MD5 8c182b48fba326339f1fa46cbd3a623e
BLAKE2b-256 3025d0d91dedab3c4825e4ef1a383f5ce9fb10a4546a4db16ad70b26fd34da10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.2-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 bd7ae82e0fdf892e6630f5e446cca2ad72d34d1df9da9797654eff98485ffeb6
MD5 3b44d9a24843aa0a7b7175aaf63aba70
BLAKE2b-256 23cdfa24c37b9ab17fa922d981a7072898039b5bca1c40fd3cc4e36ba8a02d87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.26.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.26.2-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 baa7060f416b7d0babce0f91090ca888b15f8f77408d20aa57a5105c88c092c0
MD5 012c521200cec7c100ec01d7d83b6bef
BLAKE2b-256 9c14fcc29f1fcc16239ecc73cbefee0f98aa72f98291f2106e5cc78829ac5f7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.2-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 4ab0639f1e9000e1cb7806d9846217d44940a191371a8aec2200c03dfefbf654
MD5 31419d8d241c1cb0d2e56abe30ab9fcd
BLAKE2b-256 e5c1010b7896db9223e6270f6d4e698ad45e7be84c8c37c01bb3f86e2b7237cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.2-py2.py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 67e302953f8822796fbaea90aca7223835f6f7081ee9b2657a6b1106bae2bf0d
MD5 6ec976767b0a91d3fc8d6620d42579b8
BLAKE2b-256 467198f6b1bfe8c8c2913ef62a296c4a9f79d3c84fcadf79d06742471002f09b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.2-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 63c05dc7b00f0a47551ef8975666fa29944bf9f03876a1ed013b238f8d914f5a
MD5 49d0fcbc55cf01858e780166ce470bcb
BLAKE2b-256 bb93c9d76f0153ad62131f3a4a20fbb4ff29f0a2b126d5769144f1f54c0b9ae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.2-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 5a27fab38e12e904375273fde4006862c414efd0e0470ff9fad1e9a473ac818d
MD5 65ebfb129a2c17ba301fcc339faf5df1
BLAKE2b-256 cac72682c6931ba9aa8464248da249f2ebceafcb452c7d246e285f0ae93892d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.2-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9b3cfa33a71232d753398c52df8cba1defa152731fe0053d77bfbf54079f5d4d
MD5 2f6c0db4b921aa49baff4c0d45669a8f
BLAKE2b-256 a1c8b6a39ba7594ca47a72b07d29671a80db287f97d3559e5da54edf22aae4fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.26.2-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 632ecd0aa33e0fd54dbcfaffcf136ac86e78cf243f8bb0e849259e29ab280bd0
MD5 2fa59366fe7df9897fa98dd3e23074f5
BLAKE2b-256 93896d32b22813582d2066b8e0409f4a8a86964137b0ed0f967f445aeb139940

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