On Tue, Mar 14, 2023 at 04:43:14PM +0100, Loris Bennett wrote:
If I write a system program which has Python >= 3.y as a dependency,
what are the options for someone whose Linux distribution provides
Python 3.x, where x < y?
The docs suggest creating your own package or building and installing
from source:
https://docs.python.org/3/using/unix.html
To install from source, use ‘make altinstall’ (instead of ‘make
install’) to avoid shadowing your system Python version. The alternative
interpreter should be qualified with <major>.<minor> version, e.g.
python3.11
Depending on the package manager used by the distribution,
‘checkinstall’ could be used to build from source and install as a
package without rolling your own.
https://wiki.debian.org/CheckInstall
On Ubuntu check out the deadsnakes PPA:
https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
Or use python-build from pyenv to install to a custom location:
https://github.com/pyenv/pyenv/wiki/Common-build-problems#installing-a-system-wide-python
Simon
--
https://mail.python.org/mailman/listinfo/python-list