mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
* speeeedy ci * disable for now * rm * cppcheck cache * simple docker * one more * needs to get to 1m... * one more * needs time to build * libusb
26 lines
617 B
Bash
Executable File
26 lines
617 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd $DIR
|
|
|
|
PLATFORM=$(uname -s)
|
|
|
|
echo "installing dependencies"
|
|
if [[ $PLATFORM == "Darwin" ]]; then
|
|
brew install --cask gcc-arm-embedded
|
|
brew install python3 gcc@13
|
|
elif [[ $PLATFORM == "Linux" ]]; then
|
|
sudo apt-get install -y --no-install-recommends \
|
|
make g++ git libnewlib-arm-none-eabi \
|
|
libusb-1.0-0 \
|
|
gcc-arm-none-eabi python3-pip python3-venv python3-dev
|
|
else
|
|
echo "WARNING: unsupported platform. skipping apt/brew install."
|
|
fi
|
|
|
|
python3 -m venv .venv
|
|
source .venv/bin/activate
|
|
|
|
pip install -e .[dev]
|