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

View File

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