mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-04-06 14:13:59 +08:00
don't install spidev on PC (#2360)
* don't install spidev on PC * ugh base ubuntu
This commit is contained in:
@@ -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",
|
||||||
]
|
]
|
||||||
|
|||||||
5
setup.sh
5
setup.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user