mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
raylib python bindings (#34534)
* build * fix * build * wheel * arm * linux * both
This commit is contained in:
@@ -111,6 +111,8 @@ dev = [
|
||||
"tabulate",
|
||||
"types-requests",
|
||||
"types-tabulate",
|
||||
"raylib @ https://github.com/commaai/raylib-python-cffi/releases/download/wheel/raylib-5.5.0.2-cp312-cp312-linux_x86_64.whl ; (platform_machine == 'x86_64' and platform_system == 'Linux' and python_version == '3.12')",
|
||||
"raylib @ https://github.com/commaai/raylib-python-cffi/releases/download/wheel/raylib-5.5.0.2-cp311-cp311-linux_x86_64.whl ; (platform_machine == 'x86_64' and platform_system == 'Linux' and python_version == '3.11')",
|
||||
]
|
||||
|
||||
tools = [
|
||||
|
||||
2
third_party/raylib/.gitignore
vendored
2
third_party/raylib/.gitignore
vendored
@@ -1 +1,3 @@
|
||||
/raylib_repo/
|
||||
/raylib_python_repo/
|
||||
/wheel/
|
||||
|
||||
24
third_party/raylib/build.sh
vendored
24
third_party/raylib/build.sh
vendored
@@ -30,7 +30,7 @@ fi
|
||||
|
||||
cd raylib_repo
|
||||
|
||||
COMMIT="f5b0a7237c6e45f0e8a6ff68322d19b49298d798"
|
||||
COMMIT="66030a7de62c9e1ee8ab30a1d657a740333bb4f2"
|
||||
git fetch origin $COMMIT
|
||||
git reset --hard $COMMIT
|
||||
git clean -xdff .
|
||||
@@ -45,3 +45,25 @@ echo "raylib development files installed/updated in $INSTALL_H_DIR"
|
||||
set -x
|
||||
RAYGUI_COMMIT="76b36b597edb70ffaf96f046076adc20d67e7827"
|
||||
curl -fsSLo $INSTALL_H_DIR/raygui.h https://raw.githubusercontent.com/raysan5/raygui/$RAYGUI_COMMIT/src/raygui.h
|
||||
|
||||
|
||||
# Building the python bindings
|
||||
cd $DIR
|
||||
|
||||
if [ ! -d raylib_python_repo ]; then
|
||||
git clone -b master --no-tags https://github.com/commaai/raylib-python-cffi.git raylib_python_repo
|
||||
fi
|
||||
|
||||
cd raylib_python_repo
|
||||
|
||||
BINDINGS_COMMIT="ef8141c7979d5fa630ef4108605fc221f07d8cb7"
|
||||
git fetch origin $BINDINGS_COMMIT
|
||||
git reset --hard $BINDINGS_COMMIT
|
||||
git clean -xdff .
|
||||
|
||||
RAYLIB_PLATFORM=$RAYLIB_PLATFORM RAYLIB_INCLUDE_PATH=$INSTALL_H_DIR RAYLIB_LIB_PATH=$INSTALL_DIR python setup.py bdist_wheel
|
||||
cd $DIR
|
||||
|
||||
rm -rf wheel
|
||||
mkdir wheel
|
||||
cp raylib_python_repo/dist/*.whl wheel/
|
||||
|
||||
4
third_party/raylib/larch64/libraylib.a
vendored
4
third_party/raylib/larch64/libraylib.a
vendored
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2682a70d41ec1894e060fb1bc6795dd93bf51aeee1ad779b4b0f6e82f1ff6efc
|
||||
size 3140268
|
||||
oid sha256:9c3125236db11e7bebcc6ad5868444ed0605c6343f98b212d39267c092b3b481
|
||||
size 3140628
|
||||
|
||||
4
third_party/raylib/x86_64/libraylib.a
vendored
4
third_party/raylib/x86_64/libraylib.a
vendored
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:76697e9a248b8af45e798137038fa5ec5d9e36c9b4565fa448aefbcd0d2ab113
|
||||
size 2769636
|
||||
oid sha256:f0b8f59758fe1291be82a8bda7a7ca05629c7addb0683936dd404ed08e19e143
|
||||
size 2769684
|
||||
|
||||
Reference in New Issue
Block a user