Skip to content

Commit e939572

Browse files
committed
snapcraft: fix series24 using python-packages
In Snapcraft documentation about the python plugin[1], it is told that "If the source contains a setup.py or pyproject.toml file, those files are used to install the dependencies specified by the package itself." Because of this, the request_unixsocket2 package is being pulled, and it requires urllib3 2.4 or highed. However, the Debian stage package python3-requests-oauthlib also pulls urllib3, but it's the version from the Debian archives, which is 2.0.7. Because of this, pip tries to uninstall the old version and fails (because it's a Debian install). Replacing the python3-requests-oauthlib stage package with requests-oauthlib python package fixes the build issue. [1]: https://documentation.ubuntu.com/snapcraft/latest/reference/plugins/python_plugin/#how-it-works
1 parent 5ab8048 commit e939572

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

checkbox-core-snap/series24/snap/snapcraft.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ parts:
244244
- python3-jinja2
245245
- python3-packaging
246246
- python3-pyparsing
247-
- python3-requests-oauthlib
248247
- python3-urwid
249248
- python3-xlsxwriter
250249
# added to stage python:
@@ -260,6 +259,8 @@ parts:
260259
- python3.12-minimal
261260
- python3-yaml
262261
python-packages:
262+
- requests-oauthlib
263+
- requests-unixsocket
263264
- tqdm
264265
- picamera # p-p-c dep that wouldnt install in another part
265266
after: [checkbox-support]

0 commit comments

Comments
 (0)