Merge branch 'master' of github.com:electronstudio/raylib-python-cffi
This commit is contained in:
commit
66723110cd
1 changed files with 12 additions and 3 deletions
15
README.md
15
README.md
|
@ -1,4 +1,4 @@
|
||||||
# Python Bindings for Raylib 3.x
|
# Python Bindings for Raylib 3.5
|
||||||
|
|
||||||
New CFFI API static bindings. Faster, fewer bugs and easier to maintain than ctypes.
|
New CFFI API static bindings. Faster, fewer bugs and easier to maintain than ctypes.
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ Build and install Raylib from the raylib-c directory.
|
||||||
cd raylib-python-cffi/raylib-c
|
cd raylib-python-cffi/raylib-c
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DWITH_PIC=on ..
|
cmake -DWITH_PIC=on -DSTATIC=on -DSHARED=on ..
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
Make a patched version of raylib header.
|
Make a patched version of raylib header.
|
||||||
|
@ -53,6 +53,16 @@ Build
|
||||||
cd static
|
cd static
|
||||||
pip3 install cffi
|
pip3 install cffi
|
||||||
python3 build_linux.py
|
python3 build_linux.py
|
||||||
|
|
||||||
|
To build a complete set of libs for Python 3.6, 3.7, 3.8 and 3.9:
|
||||||
|
|
||||||
|
./build_linux_multi.sh
|
||||||
|
|
||||||
|
To update the dynamic libs too:
|
||||||
|
|
||||||
|
cd ../..
|
||||||
|
rm raylib/dynamic/*.so*
|
||||||
|
cp --preserve=links /usr/local/lib/libraylib.so* raylib/dynamic/
|
||||||
|
|
||||||
# Use
|
# Use
|
||||||
|
|
||||||
|
@ -140,5 +150,4 @@ See test_dynamic.py for how to use.
|
||||||
* converting more examples from C to python
|
* converting more examples from C to python
|
||||||
* testing and building on more platforms
|
* testing and building on more platforms
|
||||||
* sorting out binary wheel distribution for Mac/Win and compile-from-source distributtion for Linux
|
* sorting out binary wheel distribution for Mac/Win and compile-from-source distributtion for Linux
|
||||||
* dealing with conversions to pointers in PyRay automatically
|
|
||||||
|
|
||||||
|
|
Reference in a new issue