Skip to content

Commit 9ccfecb

Browse files
use PyPI wheel for raylib on PC (commaai#34586)
* wheel * build
1 parent 4b278fe commit 9ccfecb

File tree

3 files changed

+621
-626
lines changed

3 files changed

+621
-626
lines changed

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ dev = [
111111
"tabulate",
112112
"types-requests",
113113
"types-tabulate",
114-
"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')",
115-
"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')",
114+
"raylib",
116115
]
117116

118117
tools = [

third_party/raylib/build.sh

+18-15
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,27 @@ set -x
4646
RAYGUI_COMMIT="76b36b597edb70ffaf96f046076adc20d67e7827"
4747
curl -fsSLo $INSTALL_H_DIR/raygui.h https://raw.githubusercontent.com/raysan5/raygui/$RAYGUI_COMMIT/src/raygui.h
4848

49+
if [ -f /TICI ]; then
4950

50-
# Building the python bindings
51-
cd $DIR
51+
# Building the python bindings
52+
cd $DIR
5253

53-
if [ ! -d raylib_python_repo ]; then
54-
git clone -b master --no-tags https://github.com/commaai/raylib-python-cffi.git raylib_python_repo
55-
fi
54+
if [ ! -d raylib_python_repo ]; then
55+
git clone -b master --no-tags https://github.com/commaai/raylib-python-cffi.git raylib_python_repo
56+
fi
5657

57-
cd raylib_python_repo
58+
cd raylib_python_repo
5859

59-
BINDINGS_COMMIT="ef8141c7979d5fa630ef4108605fc221f07d8cb7"
60-
git fetch origin $BINDINGS_COMMIT
61-
git reset --hard $BINDINGS_COMMIT
62-
git clean -xdff .
60+
BINDINGS_COMMIT="ef8141c7979d5fa630ef4108605fc221f07d8cb7"
61+
git fetch origin $BINDINGS_COMMIT
62+
git reset --hard $BINDINGS_COMMIT
63+
git clean -xdff .
6364

64-
RAYLIB_PLATFORM=$RAYLIB_PLATFORM RAYLIB_INCLUDE_PATH=$INSTALL_H_DIR RAYLIB_LIB_PATH=$INSTALL_DIR python setup.py bdist_wheel
65-
cd $DIR
65+
RAYLIB_PLATFORM=$RAYLIB_PLATFORM RAYLIB_INCLUDE_PATH=$INSTALL_H_DIR RAYLIB_LIB_PATH=$INSTALL_DIR python setup.py bdist_wheel
66+
cd $DIR
67+
68+
rm -rf wheel
69+
mkdir wheel
70+
cp raylib_python_repo/dist/*.whl wheel/
6671

67-
rm -rf wheel
68-
mkdir wheel
69-
cp raylib_python_repo/dist/*.whl wheel/
72+
fi

0 commit comments

Comments
 (0)