Browse Source

Try to exclude the requirements_all to make HA smaller and install deps OD

Joachim M. Giæver 1 year ago
parent
commit
74dcd337a8
1 changed files with 2 additions and 5 deletions
  1. 2 5
      snap/snapcraft.yaml

+ 2 - 5
snap/snapcraft.yaml

@@ -238,16 +238,13 @@ parts:
       - -lib/python3.11/site-packages/icalendar
       - -lib/python3.11/site-packages/icalendar
     requirements:
     requirements:
       - requirements.txt
       - requirements.txt
-      - requirements_all.txt
+      #- requirements_all.txt
     constraints:
     constraints:
       - homeassistant/package_constraints.txt
       - homeassistant/package_constraints.txt
     override-build: |
     override-build: |
       CWD="$(pwd)"
       CWD="$(pwd)"
-      cd "${SNAPCRAFT_PART_BUILD}"
-      python3 -m script.translations develop --all
-      cd "${CWD}"
+      cd "${SNAPCRAFT_PART_BUILD}" && python3 -m script.translations develop --all && cd "${CWD}"
       snapcraftctl build
       snapcraftctl build
-      
     override-stage: |
     override-stage: |
       snapcraftctl stage
       snapcraftctl stage
       find $SNAPCRAFT_STAGE/bin -type f -executable -exec sed -i 's/!\/usr\/bin\/env python3.11/!\/usr\/bin\/env python3/' {} \;
       find $SNAPCRAFT_STAGE/bin -type f -executable -exec sed -i 's/!\/usr\/bin\/env python3.11/!\/usr\/bin\/env python3/' {} \;