You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -35,13 +37,35 @@ First make sure you have the latest pip installed:
35
37
Then install
36
38
37
39
python3 -m pip install setuptools
38
-
python3 -m pip install raylib
39
-
40
-
On most platforms it should install a binary wheel (Windows 10 x64, MacOS 12 x64/arm64, Linux Ubuntu2004 x64/arm64).
40
+
python3 -m pip install raylib==5.0.0.4
41
41
42
-
If yours isn't available then pip will attempt to build from source, in which case you will need to have Raylib development libs installed, e.g.
42
+
On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from source, in which case you will need to have Raylib development libs installed, e.g.
43
43
using homebrew, apt, etc.
44
44
45
+
## Windows
46
+
47
+
Binaries require x64 Windows 10 or newer. (For x86 or older Windows you will have to build from source.)
48
+
49
+
Use an [official Windows Python release](https://www.python.org/downloads/windows/) rather than WSL, MSYS, etc.
50
+
51
+
## MacOS
52
+
53
+
Binaries require arm64 MacOS 13 or x64 MacOS 12 or newer.
54
+
55
+
Older MacOS requires building from source but this is usually simple:
56
+
57
+
brew install pkg-config
58
+
brew install raylib
59
+
python3 -m pip install raylib==5.0.0.4
60
+
61
+
## Linux
62
+
63
+
Binaries require OS newer than Ubuntu 2020, x64 or arm64. Otherwise build from source.
64
+
(Pip should attempt automatically but will need Raylib itself installed and also pkg-config.)
65
+
66
+
The arm64 builds are built on Raspberry Pi arm64 Bullseye
67
+
so may not work on other boards.
68
+
45
69
## Raspberry Pi
46
70
47
71
[Using on Rasperry Pi](RPI.rst)
@@ -54,12 +78,23 @@ There is now a separate dynamic version of this binding:
54
78
55
79
It works on some systems where the static version doesn't, [but be sure to read these caveats before using it](https://electronstudio.github.io/raylib-python-cffi/dynamic.html)
56
80
57
-
## Beta testing
81
+
## SDL backend
82
+
83
+
This is not well tested but has better support for controllers:
84
+
85
+
python3 -m pip uninstall raylib
86
+
python3 -m pip install raylib_sdl
87
+
88
+
You can't have multiple backends installed at once.
89
+
90
+
## DRM backend
91
+
92
+
This uses the Linux framebuffer for devices that don't run X11/Wayland:
58
93
59
-
If you find a bug, it may be fixed in the [latest dev release](https://github.com/electronstudio/raylib-python-cffi/releases).
60
-
You can install an alpha or beta version by specifying the exact version number like this:
94
+
python3 -m pip uninstall raylib
95
+
python3 -m pip install raylib_drm
61
96
62
-
python3 -m pip install raylib==4.2.0.0.dev4
97
+
You can't have multiple backends installed at once.
63
98
64
99
## Problems?
65
100
@@ -143,9 +178,9 @@ A related library (that is a work in progress!):
143
178
* Converting more examples from C to Python
144
179
* Testing on more platforms
145
180
146
-
# License (updated)
181
+
# License
147
182
148
-
The bindings are now under the Eclipse Public License, so you are free to
183
+
Eclipse Public License, so you are free to
149
184
statically link and use in non-free / proprietary / commercial projects!
If it doesn't work, or you're not on Bullseye, or you're 32 bit, or if you want to use Raylib in ``PLATFORM_DRM`` mode, you will need to compile your own raylib. See below.
15
+
Alternatively there is a DRM wheel called ``raylib_drm`` to use the framebuffer without X11. You can't have both wheels
16
+
installed at once.
17
+
18
+
If it doesn't work, or you're not on Bullseye, or you're 32 bit, you will need to compile your own raylib. See below.
16
19
For full instructions on this, see https://github.com/raysan5/raylib/wiki/Working-on-Raspberry-Pi . If you need help with this ask Raylib.
17
20
18
21
Option 2: Compile Raylib from source X11 mode
@@ -39,7 +42,7 @@ Then have pip compile and install the wheel:
0 commit comments