diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 2e4f68c00..df0ed6a57 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -47,13 +47,16 @@ parts: plugin: python source: . source-subdir: acme - constraints: [$SNAPCRAFT_PART_SRC/constraints.txt] + constraints: [$SNAPCRAFT_STAGE/constraints.txt] + override-pull: | + snapcraftctl pull + $SNAPCRAFT_PART_SRC/tools/strip_hashes.py $SNAPCRAFT_PART_SRC/letsencrypt-auto-source/pieces/dependency-requirements.txt > $SNAPCRAFT_STAGE/constraints.txt python-version: python3 certbot: plugin: python source: . source-subdir: certbot - constraints: [$SNAPCRAFT_PART_SRC/constraints.txt] + constraints: [$SNAPCRAFT_STAGE/constraints.txt] python-version: python3 after: [acme] override-pull: | @@ -66,7 +69,7 @@ parts: plugin: python source: . source-subdir: certbot-apache - constraints: [$SNAPCRAFT_PART_SRC/constraints.txt] + constraints: [$SNAPCRAFT_STAGE/constraints.txt] python-version: python3 after: [python-augeas, certbot] stage-packages: [libaugeas0] @@ -77,7 +80,7 @@ parts: plugin: python source: . source-subdir: certbot-nginx - constraints: [$SNAPCRAFT_PART_SRC/constraints.txt] + constraints: [$SNAPCRAFT_STAGE/constraints.txt] python-version: python3 # This is the last step, compile pycache now as there should be no conflicts. override-prime: |