Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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.30.10 | 2.22.0 | 2.8.0 | 2.8.2 | 1.0.4 |
You can install the latest version of pysdl2-dll via pip:
pip install pysdl2-dll # install latest release version
At present, the following platforms are supported:
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.
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.
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).
FAQs
Pre-built SDL2 binaries for PySDL2
We found that pysdl2-dll demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.