Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin python3-platformdirs & python3-virtualenv to 22.04 versions, for Python 2 on Ubuntu 23.10+ ? [try apt instead of pip, for KA Lite] #3587

Merged
merged 4 commits into from May 22, 2023

Conversation

holta
Copy link
Member

@holta holta commented May 21, 2023

This PR is essentially what @jvonau outlined at:

I suppose only time will tell (with Ubuntu 24.04 LTS about 11 months away) if this more long-winded apt approach is either (A) safer... or (B) more fragile... than the pip approach implemented by:

Related:

@holta holta added this to the 8.1 milestone May 21, 2023
@holta holta changed the title Pin python3-platformdirs & python3-virtualenv to 22.04 for Python 2 on Ubuntu 23.10+ ? [KA Lite] Pin python3-platformdirs & python3-virtualenv to 22.04 for Python 2 on Ubuntu 23.10+ ? [for KA Lite] May 21, 2023
@holta holta changed the title Pin python3-platformdirs & python3-virtualenv to 22.04 for Python 2 on Ubuntu 23.10+ ? [for KA Lite] Pin python3-platformdirs & python3-virtualenv to 22.04 versions, for Python 2 on Ubuntu 23.10+ ? [for KA Lite] May 21, 2023
@holta
Copy link
Member Author

holta commented May 21, 2023

FYI this approach works with KA Lite, when tested on Ubuntu 23.10:

root@u2310:~# virtualenv --version
virtualenv 20.13.0+ds from /usr/lib/python3/dist-packages/virtualenv/__init__.py

root@u2310:~# apt list virtualenv
Listing... Done
virtualenv/mantic 20.23.0+ds-1 all

root@u2310:~# apt list -a python3-platformdirs
Listing... Done
python3-platformdirs/mantic 3.5.0-1 all [upgradable from: 2.5.1-1]
python3-platformdirs/now 2.5.1-1 all [installed,upgradable to: 3.5.0-1]

root@u2310:~# apt list -a python3-virtualenv
Listing... Done
python3-virtualenv/mantic 20.23.0+ds-1 all [upgradable from: 20.13.0+ds-2]
python3-virtualenv/now 20.13.0+ds-2 all [installed,upgradable to: 20.23.0+ds-1]

This PR should also be tested on Debian 12 and Ubuntu 23.04, if this apt approach (whose version of virtualenv is about 16 months older than the pip approach) is strongly preferred.

@holta
Copy link
Member Author

holta commented May 21, 2023

This PR is tested on Debian 12 Bookworm's near-final pre-release (KA Lite works).

Raspberry Pi OS 12 will be much more important of course — when that's released in a few short weeks:

Finally: if this apt approach has legs, we might later improve it using a much more recent version of virtualenv from Ubuntu 23.04

@holta
Copy link
Member Author

holta commented May 21, 2023

This PR and/or the PR #3582 approach seem to make most sense in preparing for Ubuntu 24.04 LTS.

Whereas either approach should really be simplified — to use virtualenv 20.17.1 (already works with Python 2) built into Debian 12 and Raspberry Pi OS 12 — for people running those "Bookworm" OS's:

https://packages.debian.org/bookworm/virtualenv

@holta
Copy link
Member Author

holta commented May 21, 2023

Let's give this a shot.

All these rickety mechanisms to make KA Lite work for a couple more years in 2023-2025 will surely need to evolve.

On the positive side it does work, and lays a decent framework (including in-line docs) for the imminent crop of "Bookworm" OS's and hopefully Ubuntu 24.04 LTS after that.

@jvonau can these 2 warnings be cleaned up on Debian 12 Bookworm, or should we live with them for now?

W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

@holta
Copy link
Member Author

holta commented May 21, 2023

@jvonau can these 2 warnings be cleaned up on Debian 12 Bookworm, or should we live with them for now?

These probably can be ignored. Either way, I'm happy to merge this in the coming ~24h, regardless what the future holds.

@holta holta merged commit 3d87b0f into iiab:master May 22, 2023
2 checks passed
@holta holta changed the title Pin python3-platformdirs & python3-virtualenv to 22.04 versions, for Python 2 on Ubuntu 23.10+ ? [for KA Lite] Pin python3-platformdirs & python3-virtualenv to 22.04 versions, for Python 2 on Ubuntu 23.10+ ? [try apt instead of pip, for KA Lite] May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant