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.0.16 2.0.15 2.0.4 2.0.5 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.6+, 64-bit x86)
  • Windows (32-bit x86)
  • Windows (64-bit x86)
  • Linux (32-bit x86)
  • Linux (64-bit x86)

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 only). The manylinux_2_24 SDL2 binaries require a more recent version of Linux, but offer dynamic support for more 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 manylinux_2014 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.

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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.0.16-py2.py3-none-manylinux_2_24_x86_64.whl (9.6 MB view details)

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

pysdl2_dll-2.0.16-py2.py3-none-manylinux2014_x86_64.whl (10.6 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.0.16-py2.py3-none-manylinux2014_i686.whl (10.1 MB view details)

Uploaded Python 2 Python 3

pysdl2_dll-2.0.16-py2.py3-none-macosx_10_6_x86_64.whl (4.2 MB view details)

Uploaded Python 2 Python 3 macOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: pysdl2-dll-2.0.16.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/2.7.15

File hashes

Hashes for pysdl2-dll-2.0.16.tar.gz
Algorithm Hash digest
SHA256 32a4233d54570d5b64d9653ec85025ac337fec47de76bbde920b6f3d867328c7
MD5 1cea85e5664eefa9bbd06578e2bf546f
BLAKE2b-256 038677576e0ed73730d32a911a86f2dee410e35b8b074c0b905014c9038d34fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.16-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.0

File hashes

Hashes for pysdl2_dll-2.0.16-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 90ad157385c3ef549301a112c448f9060832f5f098c0209acdeb655806c6200d
MD5 8bbe4d741ea5ec07a3f5506d05aed4ae
BLAKE2b-256 cb2d87da8a40fff416dfb5275f3a806d5fca292dbaf1554f214bc1d661dc873e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.16-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/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.0

File hashes

Hashes for pysdl2_dll-2.0.16-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 edd599b3845772d4ae31d9e7f20665d169a8fe42cff636eaedf0a9344fb58458
MD5 dbd409ae5a61f19ace2088bf040afbc7
BLAKE2b-256 fe7ff276e55f7fdf8ee11507ae1eaa4d64dc7d1f5afcd25b0d0c44041d27f182

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.16-py2.py3-none-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: Python 2, Python 3, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/2.7.15

File hashes

Hashes for pysdl2_dll-2.0.16-py2.py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 cde22425dd98cf40a34e4dc15f3260eb2f556b8e1ee66e6bece0daa367324545
MD5 bb85b456f2294c4d4767feaccff4564b
BLAKE2b-256 d8cb2d7431e213d56656e011c7aa1c19b25f5ac161d1826b058423c2ca131396

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.16-py2.py3-none-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/2.7.15

File hashes

Hashes for pysdl2_dll-2.0.16-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f25b413039d6cfcb92045b4665b21eac5aa826dee17eeca6b2b06c4efdd1aad1
MD5 5ea7d20909e8a184c0ccc85afbb2c58f
BLAKE2b-256 711b1152e7851d81dd8361151c44290cf3772474cc0322b779203d2899f5976a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.16-py2.py3-none-manylinux2014_i686.whl
  • Upload date:
  • Size: 10.1 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/2.7.15

File hashes

Hashes for pysdl2_dll-2.0.16-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1f1a7855ba5dc9e2e8da6f3fe2d54a24c6118e1dc1db655796358c97d8e9f7d5
MD5 3a79362790e79098fca4d2aa7a8739ff
BLAKE2b-256 4ad6609c5866ff93eb07f0e127fe239e073739fa7f83af1aa8d4f06015303829

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.0.16-py2.py3-none-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: pysdl2_dll-2.0.16-py2.py3-none-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: Python 2, Python 3, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/2.7.15

File hashes

Hashes for pysdl2_dll-2.0.16-py2.py3-none-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 934b1df37d5b61426b2b7394906a718d0c065535dc0eb888b5eb2fdee76f7566
MD5 e1a56dcec71f542abaa54bfdebe78e0e
BLAKE2b-256 8db6c5686f515d86e65dd081ee494f1220a6231c95f610e85412c78a50ed3bb1

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