Skip to content

Commit

Permalink
build(snapcraft): Fix arm build by using py2 (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
samwiseg0 authored Jan 18, 2021
1 parent c8a8de3 commit 4fe8172
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ parts:
- on arm64:
- build-essential
- automake
- python-gi
- python-gi-dev
- on armhf:
- libatomic1
- build-essential
- automake
- python-gi
- python-gi-dev
source: .
override-pull: |
snapcraftctl pull
Expand Down Expand Up @@ -55,10 +59,6 @@ parts:
- PATH: "$SNAPCRAFT_PART_BUILD/node_modules/.bin:$SNAPCRAFT_PART_BUILD/../npm/bin:$PATH"
override-build: |
set -e
# On arm builds "python" cannot be found. Set python to python3
if [ "$ARCH" != "x86_64" ]; then
npm config set python "$(which python3)"
fi
# Set COMMIT_TAG before the build begins
export COMMIT_TAG=$(cat $SNAPCRAFT_PART_BUILD/commit.txt)
snapcraftctl build
Expand Down

0 comments on commit 4fe8172

Please sign in to comment.