diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 55b5334c..03d96fc5 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -126,7 +126,9 @@ parts:
       - cargo
     override-build: |
       python3 -m pip install poetry
+      python3 -m pip install setuptools --upgrade
       poetry install
+      poetry run pip install setuptools --upgrade
       poetry build
       python3 -m pip install ./dist/onionshare_cli-*.whl --prefix $SNAPCRAFT_PART_INSTALL
     after: [tor, obfs4, snowflake-client, meek-client]