raylib.dynamic
CFFI ABI dynamic bindings exist in order to avoid the need to compile a C extension module.
See https://github.com/electronstudio/raylib-python-cffi/blob/master/test_static.py for how to use.
Currently the github version may include bundled DLLs in raylib/dynamic
but the pypi version requires a system installed Raylib.
You can put your own DLLs in raylib/dynamic
if you prefer.
If your system already has the Raylib library installed, you can set the environment variable USE_EXTERNAL_RAYLIB
and it will
always be used instead of the bundled DLLs.
If you want to build your own wheel with just raylib.dynamic and not even attempt to compile the static libraries, the command is:
python3 setup_dynamic.py bdist_wheel
Warning
There have been some weird failures with dynamic bindings and ctypes bindings before and often the failures are silent so you dont even know. Also the static bindings should be faster. Therefore I personally recommend the static ones. But the dynamic bindings have the big advantage that you don’t need to compile anything to install. You just need a Raylib DLL.
API is the same as raylib.static.