# pysdl2-dll
[![Build Status](https://api.cirrus-ci.com/github/a-hurst/pysdl2-dll.svg)](https://cirrus-ci.com/github/a-hurst/pysdl2-dll)
[![Build Status](https://ci.appveyor.com/api/projects/status/lnwpe9v50bne3afu?svg=true)](https://ci.appveyor.com/project/a-hurst/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](https://github.com/py-sdl/py-sdl2) 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](https://github.com/a-hurst/sdl2gfx-builds) for the same platforms. For Linux, the SDL2 binaries and their dependencies are all built from source using the official Python [manylinux](https://github.com/pypa/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.30.1 | 2.22.0 | 2.8.0 | 2.8.2 | 1.0.4
## Installation
You can install the latest version of pysdl2-dll via pip:
```bash
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:
```bash
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).
Raw data
{
"_id": null,
"home_page": "https://github.com/a-hurst/pysdl2-dll",
"name": "pysdl2-dll",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Austin Hurst",
"author_email": "mynameisaustinhurst@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/73/ac/ecb7506faf926997ef22ec8258e9abbc32fb5359e93d3460bdb6a5cf6f36/pysdl2-dll-2.30.1.tar.gz",
"platform": null,
"description": "# pysdl2-dll\n\n[![Build Status](https://api.cirrus-ci.com/github/a-hurst/pysdl2-dll.svg)](https://cirrus-ci.com/github/a-hurst/pysdl2-dll)\n[![Build Status](https://ci.appveyor.com/api/projects/status/lnwpe9v50bne3afu?svg=true)](https://ci.appveyor.com/project/a-hurst/pysdl2-dll)\n\npysdl2-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](https://github.com/py-sdl/py-sdl2) library.\n\nIt uses the official SDL2, SDL2\\_mixer, SDL2\\_ttf, and SDL2\\_image binaries for macOS and Windows, as well as [unofficial SDL2\\_gfx binaries](https://github.com/a-hurst/sdl2gfx-builds) for the same platforms. For Linux, the SDL2 binaries and their dependencies are all built from source using the official Python [manylinux](https://github.com/pypa/manylinux) images for maximum compatibility.\n\nThe latest release includes the following versions of the SDL2 binaries:\n\nSDL2 | SDL2\\_ttf | SDL2\\_mixer | SDL2\\_image | SDL2\\_gfx\n--- | --- | --- | --- | ---\n2.30.1 | 2.22.0 | 2.8.0 | 2.8.2 | 1.0.4\n\n\n## Installation\n\nYou can install the latest version of pysdl2-dll via pip:\n\n```bash\npip install pysdl2-dll # install latest release version\n```\n\n\n## Requirements\n\nAt present, the following platforms are supported:\n\n* macOS (10.11+, 64-bit x86)\n* macOS (11.0+, 64-bit ARM)\n* Windows (32-bit x86)\n* Windows (64-bit x86)\n* Linux (32-bit x86)\n* Linux (64-bit x86)\n* Linux (64-bit ARM)\n\nThe pysdl2-dll package can be *installed* on platforms other than the ones listed above, but it won't have any effect.\n\npysdl2-dll requires PySDL2 0.9.7 or later in order to work correctly. To update to the latest PySDL2, you can run:\n\n```bash\npip install -U pysdl2\n```\n\nBecause 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.\n\n\n### Linux Requirements\n\nThere 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.\n\nYou 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.\n\n\n## Usage\n\nIf 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.\n\nTo 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).\n",
"bugtrack_url": null,
"license": "Mozilla Public License Version 2.0",
"summary": "Pre-built SDL2 binaries for PySDL2",
"version": "2.30.1",
"project_urls": {
"Homepage": "https://github.com/a-hurst/pysdl2-dll"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ed00fb214b0e4b3de634f7d25782c7e9947ea178d0b1b559f9f393a28c11a310",
"md5": "574e8f8b30d3840906fc12feeb922291",
"sha256": "52cd040563a0bfa957b031c6349f301fce8b5b75e804d8fc35052f2e537ee58b"
},
"downloads": -1,
"filename": "pysdl2_dll-2.30.1-py2.py3-none-macosx_10_11_universal2.whl",
"has_sig": false,
"md5_digest": "574e8f8b30d3840906fc12feeb922291",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 6658677,
"upload_time": "2024-04-01T03:15:26",
"upload_time_iso_8601": "2024-04-01T03:15:26.571490Z",
"url": "https://files.pythonhosted.org/packages/ed/00/fb214b0e4b3de634f7d25782c7e9947ea178d0b1b559f9f393a28c11a310/pysdl2_dll-2.30.1-py2.py3-none-macosx_10_11_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9606a7f6ae1c650c4508b3f7ed664104afcba5c4a96b20af0deb503eb3629a84",
"md5": "fc5123a49ee34f66ed9b1839883d823a",
"sha256": "54151b8f86aff798989d84ba9db92edb6bd5fa35edfdec17d5e3ead7e7553cc0"
},
"downloads": -1,
"filename": "pysdl2_dll-2.30.1-py2.py3-none-macosx_10_11_x86_64.whl",
"has_sig": false,
"md5_digest": "fc5123a49ee34f66ed9b1839883d823a",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 6658676,
"upload_time": "2024-04-01T03:15:29",
"upload_time_iso_8601": "2024-04-01T03:15:29.192161Z",
"url": "https://files.pythonhosted.org/packages/96/06/a7f6ae1c650c4508b3f7ed664104afcba5c4a96b20af0deb503eb3629a84/pysdl2_dll-2.30.1-py2.py3-none-macosx_10_11_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "abb54c2552fac5a9a5e8481d6979861b8c161b14e4c48f74fdf55dc0ec29344d",
"md5": "9062fa6e22254dc52534ad04685d8905",
"sha256": "db57dd9e2566279b8ce67a31b92f3cc0c90dcbfcda69a2b4114c66c1005675a1"
},
"downloads": -1,
"filename": "pysdl2_dll-2.30.1-py2.py3-none-manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "9062fa6e22254dc52534ad04685d8905",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 4545847,
"upload_time": "2024-04-01T03:20:35",
"upload_time_iso_8601": "2024-04-01T03:20:35.145098Z",
"url": "https://files.pythonhosted.org/packages/ab/b5/4c2552fac5a9a5e8481d6979861b8c161b14e4c48f74fdf55dc0ec29344d/pysdl2_dll-2.30.1-py2.py3-none-manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e928f0449f974fcdf3eba090399433037ab8849cab54e0bb61cdce29357f2e60",
"md5": "cdff29c17d203155560b12e5d0b6d334",
"sha256": "d2a52478d2094d7a758b4197e9a17bc3f9423362e999ccb9705234a442380621"
},
"downloads": -1,
"filename": "pysdl2_dll-2.30.1-py2.py3-none-manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "cdff29c17d203155560b12e5d0b6d334",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 4243053,
"upload_time": "2024-04-01T03:20:08",
"upload_time_iso_8601": "2024-04-01T03:20:08.237284Z",
"url": "https://files.pythonhosted.org/packages/e9/28/f0449f974fcdf3eba090399433037ab8849cab54e0bb61cdce29357f2e60/pysdl2_dll-2.30.1-py2.py3-none-manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4e819ddf5683338738a52064e31031360c57940c5333c695293661ac2a72a1c4",
"md5": "77c56c44f53741470c87f4f23404d926",
"sha256": "37df14a32a42bb29f2d8a8a145dcd2c11ba5a08f131d6428537e4e4fe943714a"
},
"downloads": -1,
"filename": "pysdl2_dll-2.30.1-py2.py3-none-manylinux_2_28_aarch64.whl",
"has_sig": false,
"md5_digest": "77c56c44f53741470c87f4f23404d926",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 4214642,
"upload_time": "2024-04-01T03:22:25",
"upload_time_iso_8601": "2024-04-01T03:22:25.543420Z",
"url": "https://files.pythonhosted.org/packages/4e/81/9ddf5683338738a52064e31031360c57940c5333c695293661ac2a72a1c4/pysdl2_dll-2.30.1-py2.py3-none-manylinux_2_28_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "21f78453d1bdcfc94cfc2030a2222e3514f491c845a55e8812dfc2f1deca0385",
"md5": "eb2943a3d27881585958a35972476b69",
"sha256": "b0d3230318c02ee239e772177c48f6862ec61b1268b6c769f798c4124518fe5f"
},
"downloads": -1,
"filename": "pysdl2_dll-2.30.1-py2.py3-none-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "eb2943a3d27881585958a35972476b69",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 4990194,
"upload_time": "2024-04-01T03:22:01",
"upload_time_iso_8601": "2024-04-01T03:22:01.262778Z",
"url": "https://files.pythonhosted.org/packages/21/f7/8453d1bdcfc94cfc2030a2222e3514f491c845a55e8812dfc2f1deca0385/pysdl2_dll-2.30.1-py2.py3-none-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0afcb8b7a44c508599030f8a5dd3afa8edc2d6eeaa67d45d789277008ca82e6c",
"md5": "052219f849cfa39dc4b8e14893e6514f",
"sha256": "a9f817e5e80b81974be00b666310b6105dbcf622ff80694096c52472a50a2d7c"
},
"downloads": -1,
"filename": "pysdl2_dll-2.30.1-py2.py3-none-win32.whl",
"has_sig": false,
"md5_digest": "052219f849cfa39dc4b8e14893e6514f",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 3624987,
"upload_time": "2024-04-01T03:14:55",
"upload_time_iso_8601": "2024-04-01T03:14:55.158146Z",
"url": "https://files.pythonhosted.org/packages/0a/fc/b8b7a44c508599030f8a5dd3afa8edc2d6eeaa67d45d789277008ca82e6c/pysdl2_dll-2.30.1-py2.py3-none-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b1d82bf900e1d1166bbdb5eb59538dd4821678879d24d512375f9e11be02c171",
"md5": "48ec8309024e60641c5d56d2529c17a8",
"sha256": "8850dd310acab85d4896558ad1b62c7eabfad74c7f56e387d865de3eb6e70af3"
},
"downloads": -1,
"filename": "pysdl2_dll-2.30.1-py2.py3-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "48ec8309024e60641c5d56d2529c17a8",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 4135082,
"upload_time": "2024-04-01T03:15:35",
"upload_time_iso_8601": "2024-04-01T03:15:35.886477Z",
"url": "https://files.pythonhosted.org/packages/b1/d8/2bf900e1d1166bbdb5eb59538dd4821678879d24d512375f9e11be02c171/pysdl2_dll-2.30.1-py2.py3-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "73acecb7506faf926997ef22ec8258e9abbc32fb5359e93d3460bdb6a5cf6f36",
"md5": "a3726642fc82ef787e12064521711b43",
"sha256": "214b5175315ce236159e246f15ea88dc9926387b648bac9c544e68b35befb499"
},
"downloads": -1,
"filename": "pysdl2-dll-2.30.1.tar.gz",
"has_sig": false,
"md5_digest": "a3726642fc82ef787e12064521711b43",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 15366,
"upload_time": "2024-04-01T03:14:38",
"upload_time_iso_8601": "2024-04-01T03:14:38.140642Z",
"url": "https://files.pythonhosted.org/packages/73/ac/ecb7506faf926997ef22ec8258e9abbc32fb5359e93d3460bdb6a5cf6f36/pysdl2-dll-2.30.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-01 03:14:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "a-hurst",
"github_project": "pysdl2-dll",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"appveyor": true,
"lcname": "pysdl2-dll"
}