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.

The latest release includes the following versions of the SDL2 binaries:

SDL2 SDL2_ttf SDL2_mixer SDL2_image SDL2_gfx
2.0.14 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)
  • Windows 32-bit
  • Windows 64-bit

Linux is not currently supported as no official binaries are available, though support may be added in future with a manylinux build system (pull requests welcome). The pysdl2-dll package can be installed on Linux and other unsupported platforms without issue, 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

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.14.post1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

pysdl2_dll-2.0.14.post1-py2.py3-none-macosx_10_6_x86_64.whl (4.1 MB view details)

Uploaded Python 2 Python 3 macOS 10.6+ x86-64

File details

Details for the file pysdl2-dll-2.0.14.post1.tar.gz.

File metadata

  • Download URL: pysdl2-dll-2.0.14.post1.tar.gz
  • Upload date:
  • Size: 9.9 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.14.post1.tar.gz
Algorithm Hash digest
SHA256 ee03bf34afc3b0e9df9c424f7977a46536527d5e6b8e1c38b67ba182b23ea534
MD5 eb0db81b9081f05b1adfa086a2ececf3
BLAKE2b-256 e8371eca7c548d365a2bbb3605e3dfacdc0e648807a38defaeb9717cf73bf289

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.14.post1-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.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.0

File hashes

Hashes for pysdl2_dll-2.0.14.post1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ea323daedb5e14e971c0dd0cd4d4092ff782284d569c2d05790a712d5cf69a75
MD5 cf553623bc655a85faaae2d0fa9b5dd2
BLAKE2b-256 8094062bf8657265f1ba1b16f20defb7d463ef63781be352bc9e15d27cb5f9b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.14.post1-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.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.0

File hashes

Hashes for pysdl2_dll-2.0.14.post1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 d9d24e240ace205cf335e9f00c4438348d6c9c779852222f0b40ed371237615a
MD5 441f9c76ba08f6de970154f7118d2b92
BLAKE2b-256 28f5006599d6d6459ab874199094dfae4f7cfa9729b23d5361c19937ff8b9b59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysdl2_dll-2.0.14.post1-py2.py3-none-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 2, Python 3, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/2.7.17

File hashes

Hashes for pysdl2_dll-2.0.14.post1-py2.py3-none-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 e955c1e83a89d51d1d7b26ba35e1b0d232e162ce19a9f6c932ff97ccf76a100d
MD5 a26306a2b4a6c2138109fc66ad54e368
BLAKE2b-256 bbee84d6346617dde7bde694aac6411548316bb99b1946a0dc08b62179cceffb

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