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.32.10 2.24.0 2.8.2 2.8.12 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.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. 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.

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pysdl2_dll-2.32.10-py2.py3-none-win_amd64.whl (4.1 MB view details)

Uploaded Python 2Python 3Windows x86-64

pysdl2_dll-2.32.10-py2.py3-none-win32.whl (3.4 MB view details)

Uploaded Python 2Python 3Windows x86

pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_x86_64.whl (5.2 MB view details)

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

pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_aarch64.whl (4.5 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.28+ ARM64

pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded Python 2Python 3

pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_i686.whl (4.6 MB view details)

Uploaded Python 2Python 3

pysdl2_dll-2.32.10-py2.py3-none-macosx_11_0_universal2.whl (6.6 MB view details)

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

pysdl2_dll-2.32.10-py2.py3-none-macosx_10_11_x86_64.whl (6.6 MB view details)

Uploaded Python 2Python 3macOS 10.11+ x86-64

File details

Details for the file pysdl2_dll-2.32.10.tar.gz.

File metadata

  • Download URL: pysdl2_dll-2.32.10.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for pysdl2_dll-2.32.10.tar.gz
Algorithm Hash digest
SHA256 ad83e0e1a0227633495d6b3ec6701ac5a2beac44e6692f52278033bda1313717
MD5 1f7931640f4f301ea724f6b9b8a50beb
BLAKE2b-256 285bbd6fb7cce36ec24cacea8f7d8264db819a3a9de89402653690d70a8da659

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.10-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 65eba83d68c33b22aa5eca6c9a8521cff5044435ecd5b49521068df82674de6a
MD5 f6b697c395455cceb6e32ae85b3fcc77
BLAKE2b-256 918e3a90c664cca4c61c7538a8b1a7fd86c7dc3521465198a844bce21b4a97c1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pysdl2_dll-2.32.10-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 881e2362fbe5c8d7129fa66f690380bbd0240d9d2cb1bc5612856be1e58e9261
MD5 da9eb2645c990655c8f9f5dfd7fc520c
BLAKE2b-256 19d3f50924d47313cadf4b8994d1e8c3befb33031f4115c38570e5a4a8f13956

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e6139e3ce832d95d8376b77f4c9288bef34d6b131f844f2a5fcc8873ce8e6da
MD5 d814cab10cfb36f8f7868a259a0ddd60
BLAKE2b-256 2b1c91fb667c3968b420de5dd76e840259b44b876b6fc84c5889151633fcc06e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.10-py2.py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 248b1c6c6ba1f43e964f2f9bc723ee4ce39892aca840aee6de25da90c46f685d
MD5 ee43873a0a96f966520237efdc6546b4
BLAKE2b-256 65fc8e35a36010e9dce25247991762ba3fc058c2626d323848c5e293447dcb35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 12b136c38114ae0f8a85453a879795ba5d61663d98673ba19c36c3008ff00353
MD5 e25b6a81f614c607b5b5eedbeb0628e7
BLAKE2b-256 5d6e07ec92ba241b2aa941abf478e96c1474f2c5975b61d84303fbcb2ba1dcc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.10-py2.py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 4fad629105d0f138d084a37dcaf33aa47343ba771d1971c27f5cf68ef5428798
MD5 bdc3549a4bb274150568a88c8e8bd4a1
BLAKE2b-256 c83a0686cdb266f7051e8ed3cfbb38f7e325155beb19bfb9821056debf6dfecb

See more details on using hashes here.

File details

Details for the file pysdl2_dll-2.32.10-py2.py3-none-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for pysdl2_dll-2.32.10-py2.py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 5ccbd89cd2a032f4ac890606dfe5c33874c0e5e909b2e667438ad7d7fc7fcc5d
MD5 c36795f9a9c3ec62667a8b5cbca673ce
BLAKE2b-256 5ecb356315a7a30dff1d6b155d70c5293043fa683c52aae2eda236bab163081f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysdl2_dll-2.32.10-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 cab126a82c2bd2cd79b6cb8da906916884789c9f4f1ae4cf861f26438ce651a4
MD5 c14516678e155769d154123e580a2de3
BLAKE2b-256 0e434abf8109b7c68cb73bd0f09bfd429bfbfe9767fdab952098ec4f8fb4418a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page