Skip to content

Commit

Permalink
Point pip to Comma repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nworb-cire committed Sep 20, 2023
1 parent 3940aec commit bba05ac
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions generate_stubs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@
INSTALLED=$(pip list | grep capnp-stub-generator)

if [ "$1" == "--dev" ] || [ -z "$INSTALLED" ]; then
FORCE_REINSTALL=1
FORCE_INSTALL=1
else
FORCE_REINSTALL=0
FORCE_INSTALL=0
fi

set -e
if [ -z "$INSTALLED" ]; then
rm -rf capnp-stub-generator || :
git clone https://gitlab.com/mic_public/tools/python-helpers/capnp-stub-generator
git apply capnp-stub-generator.patch
fi
if [ "$FORCE_REINSTALL" -eq 1 ]; then
pip install ./capnp-stub-generator
if [ "$FORCE_INSTALL" -eq 1 ]; then
[[ -z "$INSTALLED" ]] || pip uninstall -y capnp-stub-generator
pip install git+https://github.com/commaai/capnp-stub-generator.git
fi
capnp-stub-generator -p "*.capnp" -c "(car|log|maptile|legacy|custom).py" "*.pyi"

Expand Down

0 comments on commit bba05ac

Please sign in to comment.