From 186215124c3c9c1713869988b81dcabb6dc208fa Mon Sep 17 00:00:00 2001 From: Darshak Thakore Date: Tue, 31 Aug 2021 21:24:44 -0600 Subject: [PATCH] Forcing pip version 19.0.3 in postinstall to deal with python dependency issues --- filesystem/DEBIAN/postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filesystem/DEBIAN/postinst b/filesystem/DEBIAN/postinst index 6702daa..5a97c57 100755 --- a/filesystem/DEBIAN/postinst +++ b/filesystem/DEBIAN/postinst @@ -21,6 +21,8 @@ function install-gw-service { rm -rf "${MICRONETS_GW_SERVICE_DIR}/${MICRONETS_GW_VIRTENV_NAME}" virtualenv --clear -p $(which python3) ${MICRONETS_GW_SERVICE_DIR}/${MICRONETS_GW_VIRTENV_NAME} source $MICRONETS_GW_VIRTENV_NAME/bin/activate + echo "Installing compatible pip version" + pip install pip==19.0.3 echo "Running: pip install -r requirements.txt" pip install -r requirements.txt popd > /dev/null