From 68c84c08c4901dce762eb25d53e63500b944fbcd Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 9 Dec 2022 11:11:07 +0100 Subject: [PATCH] fix: [install] prevent installation of docker-compose when python >= 3.9 is present --- bin/myc-install | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/bin/myc-install b/bin/myc-install index 81432ab..d8fb24f 100755 --- a/bin/myc-install +++ b/bin/myc-install @@ -111,15 +111,20 @@ EOF ## ## We could need some docker-compose for some quick hacks ## -if ! type -p docker-compose >/dev/null; then - # seems to require a C compiler - apt-get install -y build-essential /dev/null 2>&1 && + ! version_gt $(python3 --version | cut -f 2 -d " ") 3.9 ; then + if ! type -p docker-compose >/dev/null; then + # seems to require a C compiler + apt-get install -y build-essential libffi-dev