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. 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.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 (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
Linux Requirements
There are currently two versions the Linux wheels: one based on the manylinux2010
standard (for 32-bit and 64-bit x86), and another 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, sndio and JACK audio, and OpenGL ES v1 rendering.
You must have pip 19.0 or newer to install the manylinux_2010
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
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.14.post2.tar.gz
.
File metadata
- Download URL: pysdl2-dll-2.0.14.post2.tar.gz
- Upload date:
- Size: 13.7 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 | a4ee0aeb954699787c81588e0d3a92d113a813efb9d2b80f861c2bc3ff2d73c6 |
|
MD5 | 9a99f70114d07f4b64af82bfb66e947f |
|
BLAKE2b-256 | df21d5a5b9cf63e22529fbf1d3dd4c5dcebd10e8e5cf9d13d1f4129262164867 |
File details
Details for the file pysdl2_dll-2.0.14.post2-py2.py3-none-win_amd64.whl
.
File metadata
- Download URL: pysdl2_dll-2.0.14.post2-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.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 740cc96fc433ceb019f59bd6766e16200c69fab2e2dc8883f4f9255a358b0c89 |
|
MD5 | b2702d3d83fa1ed525d5b5c50da9db03 |
|
BLAKE2b-256 | 2466fe63bb4e2561ceed078d807c8a3c8384b6d30f7e6a1130549c5fe7390b83 |
File details
Details for the file pysdl2_dll-2.0.14.post2-py2.py3-none-win32.whl
.
File metadata
- Download URL: pysdl2_dll-2.0.14.post2-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.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b075e162af41028394ad82ef275b5928637eab9be6f6f8b05bf39dfe34f4f03 |
|
MD5 | 3b84f6650da5e576af6365ed92c40128 |
|
BLAKE2b-256 | b7b51f684fc916b323bc0bab7a4cde8ad3fe13473c8e592266700dc00e0e1566 |
File details
Details for the file pysdl2_dll-2.0.14.post2-py2.py3-none-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: pysdl2_dll-2.0.14.post2-py2.py3-none-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 9.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 272d066ae2d0317281ed2454bc702062fca8fa1a48567c6b6fabadb908b0fc1d |
|
MD5 | 6480a7f9c5fb6e3f1bebe393bc2b1198 |
|
BLAKE2b-256 | ebc1502c38e72892b02491c112a77a0ba9d2d695360e67de25c408a900657b7a |
File details
Details for the file pysdl2_dll-2.0.14.post2-py2.py3-none-manylinux2010_x86_64.whl
.
File metadata
- Download URL: pysdl2_dll-2.0.14.post2-py2.py3-none-manylinux2010_x86_64.whl
- Upload date:
- Size: 10.8 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.12+ 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 | 39566f94adc82e9f25a3e182caf5e338f89c62c3cb7afcaa5ea4c59b2c83bfad |
|
MD5 | a9a3bc320193599c31f8ecf5812abab0 |
|
BLAKE2b-256 | 3b5377e6af79374117580e79ce5eaa2c03d0065a7ebf7a75093da14e40b0a653 |
File details
Details for the file pysdl2_dll-2.0.14.post2-py2.py3-none-manylinux2010_i686.whl
.
File metadata
- Download URL: pysdl2_dll-2.0.14.post2-py2.py3-none-manylinux2010_i686.whl
- Upload date:
- Size: 10.0 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.12+ i686
- 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 | e1f62ed6901a7cf2635103ccb1d1e4254bc127f63c5a2c3e7d63397d20237c90 |
|
MD5 | 529171200e944dabd068dbef0288e70e |
|
BLAKE2b-256 | 92a93caa9d0907ea99728e5f5aadf2784b777ae01fcb4be51862f33c876c6b3a |
File details
Details for the file pysdl2_dll-2.0.14.post2-py2.py3-none-macosx_10_6_x86_64.whl
.
File metadata
- Download URL: pysdl2_dll-2.0.14.post2-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.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 | 27680dae2e76a40677d1ed12f28ddafc7c859fcc1afc28acdd9f00ea79f4a80b |
|
MD5 | 709fb53aa1c737f5439517ddcc63e077 |
|
BLAKE2b-256 | c411039298217e19879eb1764eb6118a3faec686341880e99c04ba95109bc9fd |