From 020a95d1f1e290d57241737927b6691e9b69fa7b Mon Sep 17 00:00:00 2001 From: beierlm Date: Mon, 28 Jun 2021 11:59:31 -0400 Subject: [PATCH] Adding dependencies Adds missing dependencies for osmclient and required libraries Fixes bug 1586 Change-Id: I4d42af70094a48f48fb58f013bceecbe54e555fd Signed-off-by: beierlm --- snap/snapcraft.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 84635ae..11ba71e 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -16,7 +16,7 @@ ## name: osmclient base: core18 -version: git +adopt-info: client summary: A python client for orchestrating OSM description: | A python client for orchestrating Open Source Mano (OSM). @@ -37,7 +37,7 @@ apps: - home - ssh-public-keys environment: - PATH: $SNAP/usr/bin:$SNAP/bin/:$PATH + PATH: $SNAP/usr/bin:$SNAP/bin/:$PATH:$SNAP/usr/local/bin/ PYTHONPATH: $SNAP/usr/lib/python3/dist-packages:$PYTHONPATH MAGIC: $SNAP/usr/share/file/magic.mgc @@ -52,7 +52,10 @@ parts: - git - make - wget + - libcurl4-openssl-dev + - libssl-dev stage-packages: + - libcurl4 - libmagic1 - python3 - python3-dev @@ -70,6 +73,8 @@ parts: git checkout $BRANCH_OR_TAG $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install . cd ../ && rm -rf IM/ + $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install -r requirements.txt $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install . rm -rf .tox + snapcraftctl set-version $(git describe --match v* --tags --dirty) snapcraftctl build -- 2.25.1