Browse Source

Add temp arch + try fix issues with arm-compl.

Joachim M. Giæver 4 years ago
parent
commit
ae05acf385

+ 0 - 3
.gitmodules

@@ -1,3 +0,0 @@
-[submodule "lxdbuild"]
-	path = lxdbuild
-	url = https://git.giaever.org/joachimmg/lxdbuild.git

BIN
snap/plugins/__pycache__/python_wot_plugin.cpython-36.pyc


+ 2 - 0
snap/plugins/python_wot_plugin.py

@@ -16,6 +16,8 @@ for python >= 3.7, see:
 class PluginImpl(plugins.python.PythonPlugin):
     def get_build_commands(self) -> List[str]:
         cmds = super().get_build_commands()
+        cmds.insert(1, 'pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip')
+        print(cmds)
         for idx, cmd in enumerate(cmds):
             # Find position where to inject pip uninstall
             if cmd.strip().startswith('[ -f setup.py ]'):

+ 3 - 0
snap/snapcraft.yaml

@@ -8,6 +8,8 @@ description: |
 base: core20
 grade: stable
 confinement: strict
+architectures: 
+  - build-on: [arm64, armhf] #, armhf, amd64, ppc64el]
 apps:
   hass:
     command: bin/hass --config $SNAP_DATA
@@ -26,6 +28,7 @@ parts:
     source: https://github.com/home-assistant/core.git
     source-tag: ${SNAPCRAFT_PROJECT_VERSION}
     python-packages:
+      - certifi
       - setuptools
       - wheel
       - Cython