Skip to content

Commit 1e05974

Browse files
cliffmccarthymissytake
authored andcommitted
feat: Make sure build-essential is installed
- The Python modules installed by initenv.sh require a compiler to build. - Revised initenv.sh to check whether build-essential is installed before proceeding, if the system is based on Debian or Ubuntu.
1 parent 577c04d commit 1e05974

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/initenv.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ if command -v lsb_release 2>&1 >/dev/null; then
99
echo "You need to install python3-dev for installing the other dependencies."
1010
exit 1
1111
fi
12+
if ! dpkg -l | grep build-essential 2>&1 >/dev/null
13+
then
14+
echo "You need to install build-essential for building Python dependencies."
15+
exit 1
16+
fi
1217
;;
1318
esac
1419
fi

0 commit comments

Comments
 (0)