This commit is contained in:
richard 2021-06-12 19:55:01 +01:00
parent 1c2ca0b3a5
commit 0ceae3c986
2 changed files with 31 additions and 4 deletions

View file

@ -12,7 +12,7 @@ New CFFI API static bindings. Faster, fewer bugs and easier to maintain than ct
We distribute a statically linked binary Raylib library, install from Pypi. We distribute a statically linked binary Raylib library, install from Pypi.
pip3 install raylib pip3 install raylib==3.5.0
Some platforms that should be available: Some platforms that should be available:
@ -20,11 +20,11 @@ Some platforms that should be available:
**MacOS: Python 3.6 - 3.8** **MacOS: Python 3.6 - 3.8**
**Linux (Ubuntu 16.04+): Python 3.6 - 3.8** **Linux (Ubuntu 16.04+): Python 3.6 - 3.9**
If yours isn't available then pip should attempt to build from source, but this has not been tested. If yours isn't available then pip should attempt to build from source, so you will need to have raylib development libs installed.
## Option 2: Build from source (Raylib 3.5, all platforms) ## Option 2: Build from source
If you're using a platform we don't have binary builds for yet If you're using a platform we don't have binary builds for yet
then you can either *use the dynamic binding with your own dll* or else you will have to build from source. then you can either *use the dynamic binding with your own dll* or else you will have to build from source.
@ -79,6 +79,9 @@ To build a complete set of libs for Python 3.6, 3.7, 3.8 and 3.9:
./raylib/static/build_multi.sh ./raylib/static/build_multi.sh
(NOTE 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` )
(TODO move the dynamic libs into a separate package rather than include them with every one.) (TODO move the dynamic libs into a separate package rather than include them with every one.)
### Raspberry Pi ### Raspberry Pi

View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
if ! command -v pyenv &> /dev/null
then
echo "Pyenv required: https://github.com/pyenv/pyenv-installer"
exit
fi
pyenv update
function build() {
echo "Building for Python $1"
pyenv install -s $1
pyenv global $1
pip3 install cffi
pip3 install wheel
rm -rf raylib/static/_raylib_cffi.* build
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
}
build 3.9.5
build 3.8.10
build 3.7.10
build 3.6.13