"python-is-python2-but-deprecated" and "python-is-python3" don't provide the "python" package
doko at ubuntu.com
Mon Mar 23 18:46:59 UTC 2020
On 3/23/20 5:36 PM, Daniel Dromboski wrote:
> Just sent this to "ubuntu-devel," but it probably should have been
> posted here instead...
> At the moment, neither "python-is-python2-but-deprecated" nor
> "python-is-python3" provide the "python" package.
"python-is-python2-but-deprecated" will provide "python (= 2.7.17-1)" for the
20.04 LTS release. This is done so that upgrades don't get packages removed,
which depend on python.
> I wonder if this is intended behavior, or an oversight?
it's intended. Before we are uploading a package with the provides, we have to
make sure that no package in the archive uses the unversioned python as a
runtime or a build dependency. This work is not yet finished. Help and patches
are appreciated. Please subscribe me to such bug reports with patches.
> In the last update on this [topic] on the [ubuntu-devel] mailing list,
> back in February,
> it was stated that at least "python-is-python2-but-deprecated" would
> provide the "python" package.
>> - Before release, add a binary package "python-is-python2-but-deprecated"
> package shipping the /usr/bin/python symlink, and providing the python
> package. [...]
> P.S. When I run `apt info python-is-python2-but-deprecated` I get this
> about dependencies:
> Depends: python2
> Breaks: python, python-is-python3
> Replaces: python, python-is-python3
> But no "Provides:"...
> And when I run `apt info python-is-python3` I get:
> Depends: python3
> Breaks: python, python-is-python2-but-deprecated
> Replaces: python, python-is-python2-but-deprecated
> No "Provides:" again.
> (By contrast here is what I get for `apt info wine-development`, which
> "provides" the wine package):
> Provides: wine
> Depends: [...]
> Suggests: [...]
> Breaks: [...]
> Replaces: [...]
> With neither back-compatible transition package "providing" the
> "python" package, anything package that currently depends on the
> version-neutral "python" package can't be installed in Focal.
More information about the Ubuntu-devel-discuss