From ed93678c9dd1a67efb2bddebee9c73e2f9a04488 Mon Sep 17 00:00:00 2001 From: missytake Date: Fri, 25 Apr 2025 19:38:44 +0200 Subject: [PATCH] cmdeploy: on ubuntu/debian, test if python3-dev is installed --- scripts/initenv.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/initenv.sh b/scripts/initenv.sh index 3ece965e..779ebd89 100755 --- a/scripts/initenv.sh +++ b/scripts/initenv.sh @@ -1,5 +1,15 @@ -#!/bin/sh +#!/bin/bash set -e + +if [[ $(lsb_release -is 2> /dev/null) == "Ubuntu" || $(lsb_release -is 2> /dev/null) == "Debian" ]] +then + if [ $(dpkg -l | grep python3-dev 2>&1 /dev/null) ] + then + echo "You need to install python3-dev for installing the other dependencies." + exit 1 + fi +fi + python3 -m venv --upgrade-deps venv venv/bin/pip install -e chatmaild