use PyPI wheel for raylib on PC (#34586)

* wheel

* build
pull/34548/head^2
Maxime Desroches 2 months ago committed by GitHub
parent 4b278fe14f
commit 9ccfecb813
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      pyproject.toml
  2. 31
      third_party/raylib/build.sh
  3. 1211
      uv.lock

@ -111,8 +111,7 @@ dev = [
"tabulate", "tabulate",
"types-requests", "types-requests",
"types-tabulate", "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",
"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 = [ tools = [

@ -46,24 +46,27 @@ set -x
RAYGUI_COMMIT="76b36b597edb70ffaf96f046076adc20d67e7827" RAYGUI_COMMIT="76b36b597edb70ffaf96f046076adc20d67e7827"
curl -fsSLo $INSTALL_H_DIR/raygui.h https://raw.githubusercontent.com/raysan5/raygui/$RAYGUI_COMMIT/src/raygui.h curl -fsSLo $INSTALL_H_DIR/raygui.h https://raw.githubusercontent.com/raysan5/raygui/$RAYGUI_COMMIT/src/raygui.h
if [ -f /TICI ]; then
# Building the python bindings # Building the python bindings
cd $DIR cd $DIR
if [ ! -d raylib_python_repo ]; then if [ ! -d raylib_python_repo ]; then
git clone -b master --no-tags https://github.com/commaai/raylib-python-cffi.git raylib_python_repo git clone -b master --no-tags https://github.com/commaai/raylib-python-cffi.git raylib_python_repo
fi fi
cd raylib_python_repo cd raylib_python_repo
BINDINGS_COMMIT="ef8141c7979d5fa630ef4108605fc221f07d8cb7" BINDINGS_COMMIT="ef8141c7979d5fa630ef4108605fc221f07d8cb7"
git fetch origin $BINDINGS_COMMIT git fetch origin $BINDINGS_COMMIT
git reset --hard $BINDINGS_COMMIT git reset --hard $BINDINGS_COMMIT
git clean -xdff . git clean -xdff .
RAYLIB_PLATFORM=$RAYLIB_PLATFORM RAYLIB_INCLUDE_PATH=$INSTALL_H_DIR RAYLIB_LIB_PATH=$INSTALL_DIR python setup.py bdist_wheel RAYLIB_PLATFORM=$RAYLIB_PLATFORM RAYLIB_INCLUDE_PATH=$INSTALL_H_DIR RAYLIB_LIB_PATH=$INSTALL_DIR python setup.py bdist_wheel
cd $DIR cd $DIR
rm -rf wheel
mkdir wheel
cp raylib_python_repo/dist/*.whl wheel/
rm -rf wheel fi
mkdir wheel
cp raylib_python_repo/dist/*.whl wheel/

1211
uv.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save