Building from source
-Have Pip build from source
Useful if the binaries don’t work on your system.
Make sure Raylib is installed and then:
pip3 install --no-binary raylib --upgrade --force-reinstall raylib
Build from source manually
-Useful if the Pip build doesn’t work, or you want to contribute to the -project, or you want to skip building the static lib and just use the -dynamic binding with your own dll.
+Useful if the Pip build doesn’t work and you want to debug it, or you want to contribute to the +project.
Attention
If the Pip build doesn’t work, please submit a bug. (And if you have @@ -110,7 +106,7 @@ fixed it, a PR.)
Manual instructions follow, but see also how we actually build the wheels at https://github.com/electronstudio/raylib-python-cffi/blob/master/.github/workflows/build.yml
-Windows manual build
Clone this repo including submodules so you get correct version of Raylib.
@@ -149,13 +145,13 @@ use DLLs with raylib.dynamic:Then install it:
-pip3 install dist\raylib-3.7.0-cp37-cp37m-win_amd64.whl
+pip3 install dist\raylib-3.7.0-cp37-cp37m-win_amd64.whl
(Note: your wheel’s filename will probably be different than the one
here.)
-
-
+
Linux manual build
These instructions have been tested on Ubuntu 20.10 and 16.04.
Clone this repo including submodules so you get correct version of @@ -200,8 +196,8 @@ anything.)
Build
pip3 install cffi
-rm -rf build raylib/static/_raylib_cffi.*
-python3 raylib/static/build.py
+rm -rf build raylib/_raylib_cffi.*
+python3 raylib/build.py
To build a complete set of libs for Python 3.6, 3.7, 3.8 and 3.9:
-./raylib/static/build_multi.sh
+./raylib/build_multi.sh
Warning
pypi wont accept Linux packages unless they are built
--plat-name manylinux2014_x86_64
so on linux please run
-./raylib/static/build_multi_linux.sh
)
+./raylib/build_multi_linux.sh
)
Todo
Separate the instructions for preparing the dynamic module
from the instructions for building the static module!
-
-
+
Macos manual build
These instructions have been tested on Macos 10.14.
Clone this repo including submodules so you get correct version of @@ -254,14 +250,14 @@ Raylib.
Build and install module.
pip3 install cffi
-rm -rf build raylib/static/_raylib_cffi.*
-python3 raylib/static/build.py
+rm -rf build raylib/_raylib_cffi.*
+python3 raylib/build.py
pip3 install wheel
python3 setup.py install