Pre-built SDL2 binaries for PySDL2
Project description
pysdl2-dll
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.10 | 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pysdl2-dll-2.0.10.tar.gz
.
File metadata
- Download URL: pysdl2-dll-2.0.10.tar.gz
- Upload date:
- Size: 3.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65f82a526ea36a456cd4188e3eb3284e853094a7e52187dca988eef58bf9888e |
|
MD5 | 0249db0dcafd37b33cce97793d0a8f73 |
|
BLAKE2b-256 | 8e35f8ba6e846035d2a24c50bb79444bd96ec39e96921c8e8523dadcdf45fb75 |
File details
Details for the file pysdl2_dll-2.0.10-py2.py3-none-win_amd64.whl
.
File metadata
- Download URL: pysdl2_dll-2.0.10-py2.py3-none-win_amd64.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 2, Python 3, Windows 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e46ca52f1d5d51d3ebf6ad1b40031f99a94f9070f20221f3405783109b358403 |
|
MD5 | ce5bd876afae81f067441c44bb76fc23 |
|
BLAKE2b-256 | 8f8d09f771ed2c2bdcc92a25b6899738a681063dee34642f922285adef87b42e |
File details
Details for the file pysdl2_dll-2.0.10-py2.py3-none-win32.whl
.
File metadata
- Download URL: pysdl2_dll-2.0.10-py2.py3-none-win32.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 2, Python 3, Windows x86
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c178c72dfab34591a51cd032048967091312dc442b7782112893d52a8f1fd340 |
|
MD5 | bd8f8dc22bfeb123e0b198992cff2ee9 |
|
BLAKE2b-256 | 89a457cab16be0a365d034b311b5ea3b2d30e4a81197ebff62d1fef40e055027 |
File details
Details for the file pysdl2_dll-2.0.10-py2.py3-none-macosx_10_6_x86_64.whl
.
File metadata
- Download URL: pysdl2_dll-2.0.10-py2.py3-none-macosx_10_6_x86_64.whl
- Upload date:
- Size: 3.5 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/41.4.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c64ed2b8270cf4c3a5cd15e1ca383be7fa4c89202a0d63da032e304039661b8 |
|
MD5 | 282b2944b665a18d2096cd5af51bd2eb |
|
BLAKE2b-256 | cdee8d97d898764dbd2d3a4fbc82e7937312eff263e58a87f022443a95f63d73 |