don't install spidev on PC (#2360)

* don't install spidev on PC

* ugh base ubuntu
This commit is contained in:
Adeeb Shihadeh
2026-02-28 14:42:36 -08:00
committed by GitHub
parent 25357d5c6f
commit 0faafa1d91
2 changed files with 5 additions and 4 deletions

View File

@@ -14,6 +14,9 @@ classifiers = [
dependencies = [
"libusb1",
"opendbc @ git+https://github.com/commaai/opendbc.git@master#egg=opendbc",
# runtime dependency on comma four
#"spidev; platform_system == 'Linux'",
]
[project.optional-dependencies]
@@ -29,7 +32,6 @@ dev = [
"ruff",
"mypy",
"setuptools",
"spidev; platform_system == 'Linux'",
"gcc-arm-none-eabi @ git+https://github.com/commaai/dependencies.git@releases#subdirectory=gcc-arm-none-eabi",
"cppcheck @ git+https://github.com/commaai/dependencies.git@releases#subdirectory=cppcheck",
]

View File

@@ -17,10 +17,9 @@ elif [[ $PLATFORM == "Linux" ]]; then
fi
sudo apt-get install -y --no-install-recommends \
curl ca-certificates \
make g++ git \
curl ca-certificates gcc git \
libusb-1.0-0 \
python3-dev python3-pip python3-venv
python3-dev
else
echo "WARNING: unsupported platform. skipping apt/brew install."
fi