Closed smoser closed 3 weeks ago
The whole 'python3' migration thing (python3.11 -> python3.12) is weird. I had some thoughts on it that I wanted to write down.
site-packages
, you can't just use python3.11 and import requests
if py3-requests
installed its files into /usr/lib/python3.12/site-packages/requests
. python3
symlink is useful during package build, but problematic. When you install a package it generally writes a shebang referencing whatever
executable ran the installer. Using python3.12 -m installer pkg.whl
will write #!/usr/bin/python3.12
as shebang while python3 -m installer.pkg
will write #!/usr/bin/python3
. But during package build, you don't want to have to call python3.12
explicitly as that will become wrong at some point in the future. python3
, as no end user should be burdened with having to know what python3.X version they're using.@smoser Looks like I might've messed up some metadata but it should be here: https://github.com/wolfi-dev/os/pull/26270
py3-parallel-ssh is currently unable to be used even though it can be built.
The above demonstrates the failure. Here is the "why". The package knows it depends directly on
But those dependencies are spread where some are installed in python3.11 path and others in python3.12
The problem is: