build(snapcraft): Fix arm build by using py2 (#671)

pull/681/head
samwiseg0 4 years ago committed by GitHub
parent c8a8de38cc
commit 4fe8172eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,10 +19,14 @@ parts:
- on arm64: - on arm64:
- build-essential - build-essential
- automake - automake
- python-gi
- python-gi-dev
- on armhf: - on armhf:
- libatomic1 - libatomic1
- build-essential - build-essential
- automake - automake
- python-gi
- python-gi-dev
source: . source: .
override-pull: | override-pull: |
snapcraftctl pull snapcraftctl pull
@ -55,10 +59,6 @@ parts:
- PATH: "$SNAPCRAFT_PART_BUILD/node_modules/.bin:$SNAPCRAFT_PART_BUILD/../npm/bin:$PATH" - PATH: "$SNAPCRAFT_PART_BUILD/node_modules/.bin:$SNAPCRAFT_PART_BUILD/../npm/bin:$PATH"
override-build: | override-build: |
set -e 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 # Set COMMIT_TAG before the build begins
export COMMIT_TAG=$(cat $SNAPCRAFT_PART_BUILD/commit.txt) export COMMIT_TAG=$(cat $SNAPCRAFT_PART_BUILD/commit.txt)
snapcraftctl build snapcraftctl build

Loading…
Cancel
Save