Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for systems without gpio or not suppoting the "python3-libgpiod" lib #758

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/install-moonraker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ install_packages()
# Update system package info
report_status "Running apt-get update..."
sudo apt-get update --allow-releaseinfo-change

system_deps="${SRCDIR}/scripts/system-dependencies.json"
if [apt-cache search grep | grep -q "python3-libgpiod"]; then
system_deps="${SRCDIR}/scripts/system-dependencies.json"
else
echo "can't install the libgpiod lib! the system might not support gpio, skipping installation of gpio lib's."
system_deps="${SRCDIR}/scripts/system-dependencies-without-gpio.json"
fi
if [ -f "${system_deps}" ]; then
if [ ! -x "$(command -v python3)" ]; then
report_status "Installing python3 base package..."
Expand Down
14 changes: 14 additions & 0 deletions scripts/system-dependencies-without-gpio.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"debian": [
"python3-virtualenv",
"python3-dev",
"liblmdb-dev",
"libopenjp2-7",
"libsodium-dev",
"zlib1g-dev",
"libjpeg-dev",
"packagekit",
"wireless-tools",
"curl"
]
}
Loading