Skip to content

Commit

Permalink
fix: Use the distro python module from the jammy repo
Browse files Browse the repository at this point in the history
1.6 release fixes python-distro/distro#260
  • Loading branch information
yphus committed Dec 6, 2021
1 parent afa975a commit 5864a03
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions checkbox-core-snap/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ parts:
source: git://git.launchpad.net/checkbox-support
stage-packages:
# actual requirements
- python3-distro
- python3-requests-unixsocket
- python3-systemd
# added to stage python:
Expand Down Expand Up @@ -163,9 +164,6 @@ parts:
build-environment:
- C_INCLUDE_PATH: /usr/include/python3.9
- PYTHONPATH: $SNAPCRAFT_PART_INSTALL/usr/lib/python3/dist-packages:$PYTHONPATH
override-stage: |
snapcraftctl stage
sed -i 's|except OSError: # Command not found|except subprocess.CalledProcessError: # Command not found|g' lib/python3.*/site-packages/distro.py
################################################################################
checkbox-ng:
source-tag: ""
Expand Down

0 comments on commit 5864a03

Please sign in to comment.