Commit e939572
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-works1 parent 5ab8048 commit e939572
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
| |||
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
| 262 | + | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| |||
0 commit comments