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
This uses CFFI API static bindings rather than ctypes. Hopefully this will be faster, the static type knowledge from the C
4
-
headers will result in fewer bugs, and using the original headers will make it easier to maintain.
3
+
New CFFI API static bindings. Faster, fewer bugs and easier to maintain than ctypes.
5
4
6
5
# Install
7
6
8
-
**MacOS: Python 3.7**: we distribute a statically linked Raylib library, so in theory the only thing you need to do is install
9
-
us from Pypi.
7
+
**Windows 10 (64 bit): Python 3.6 - 3.7**
10
8
11
-
pip3 install raylib
9
+
**MacOS: Python 3.5 - 3.7**
12
10
13
-
**Linux: Python 3.6**: we dont distribute Raylib, so you must have Raylib 2.5dev already installed on your system. Currently we are building from the github version, specifically https://github.com/raysan5/raylib/commit/f325978b26ea934095f74ac628e6578ebbc2b7a0 although I guess any 2.5 build should work. First follow the instructions here: https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux Then do:
11
+
We distribute a statically linked Raylib library, install from Pypi.
14
12
15
13
pip3 install raylib
16
-
17
-
**Windows 10 (64 bit): Python 3.7**: we distribute a statically linked Raylib library, thanks to https://github.com/Pebaz, so in theory the only thing you need to do is install us from Pypi.
18
-
19
-
pip3 install raylib
20
14
21
-
If you're using a different version of Python, or maybe a Linux/Mac with incompatible libraries
22
-
you will have to build. The specific version we built against is https://github.com/raysan5/raylib/commit/f325978b26ea934095f74ac628e6578ebbc2b7a0 but we should soon try to synchronize with a proper released version of Raylib.
15
+
If you're using **Linux**a different version of Python, or maybe a different version of Windows/Mac with incompatible libraries
16
+
then you can either use the dynamic binding only or else you will have to build from source using Raylib 2.5, e.g.
23
17
24
-
cd raylib
18
+
cd raylib/static
25
19
python3 build_linux.py
26
-
python3 build_mac.py
27
20
28
21
# Use
29
22
@@ -32,9 +25,28 @@ you will have to build. The specific version we built against is https://github
32
25
Currently the goal is make usage as similar to the original C as CFFI will allow. There are a few differences
33
26
you can see in the examples. See test_static.py and examples/*.py for how to use.
0 commit comments