Skip to content

Commit 20df13d

Browse files
author
Chris Patterson
committed
snap: use python3-apt stage-package
Currently python3-apt package is not installable with pip without a patch. Switch to the stage-package, which has the benefit of matching the base (and up-to-date). pypa/pip#8654 Signed-off-by: Chris Patterson <[email protected]>
1 parent 8363e8e commit 20df13d

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ PyYAML==5.3
66
pyxdg==0.26
77
requests==2.20.0
88
requests_unixsocket==0.1.5
9-
http://archive.ubuntu.com/ubuntu/pool/main/p/python-apt/python-apt_1.6.5ubuntu0.2.tar.xz; sys_platform == 'linux'
109
https://launchpad.net/python-distutils-extra/trunk/2.39/+download/python-distutils-extra-2.39.tar.gz
1110
requests-toolbelt==0.8.0
1211
responses==0.5.1

snap/snapcraft.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ parts:
8585
plugin: python
8686
requirements:
8787
- requirements.txt
88+
stage-packages:
89+
- python3-apt
8890
organize:
8991
# Put snapcraftctl into its own directory that can be included in the PATH
9092
# without including other binaries.

spread.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ suites:
260260
libxml2-dev \
261261
libxslt-dev \
262262
libyaml-dev \
263+
python3-apt \
263264
python3-venv \
264265
python3-yaml \
265266
python3.6-dev \
@@ -542,7 +543,7 @@ suites:
542543
SNAPCRAFT_PACKAGE_TYPE: "snap"
543544
prepare: |
544545
apt-get update
545-
apt-get install --yes gcc g++ make python3-dev python3-pip python3-wheel libffi-dev libsodium-dev libapt-pkg-dev squashfs-tools xdelta3 bzr git mercurial subversion libxml2-dev libxslt-dev
546+
apt-get install --yes gcc g++ make python3-apt python3-dev python3-pip python3-wheel libffi-dev libsodium-dev libapt-pkg-dev squashfs-tools xdelta3 bzr git mercurial subversion libxml2-dev libxslt-dev
546547
pip3 install --user --upgrade pip
547548
$PIP_COMMAND install --user --upgrade wheel setuptools
548549
$PIP_COMMAND install --user -r /snapcraft/requirements.txt -r /snapcraft/requirements-devel.txt

tools/environment-setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ lxc exec snapcraft-dev -- apt install --yes \
4343
libyaml-dev \
4444
make \
4545
patchelf \
46+
python3-apt \
4647
python3-dev \
4748
python3-pip \
4849
python3-venv \

0 commit comments

Comments
 (0)