Skip to content

Commit 1333399

Browse files
committed
cmdeploy: on ubuntu/debian, test if python3-dev is installed
1 parent b9a4471 commit 1333399

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/initenv.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
set -e
3+
4+
if [[ $(lsb_release -is 2> /dev/null) == "Ubuntu" || $(lsb_release -is 2> /dev/null) == "Debian" ]]
5+
then
6+
if [ $(dpkg -l | grep python3-dev 2>&1 /dev/null) ]
7+
then
8+
echo "You need to install python3-dev for installing the other dependencies."
9+
exit 1
10+
fi
11+
fi
12+
313
python3 -m venv --upgrade-deps venv
414

515
venv/bin/pip install -e chatmaild

0 commit comments

Comments
 (0)