Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1738039 - k3d depends on Python 2
Summary: k3d depends on Python 2
Keywords:
Status: CLOSED DUPLICATE of bug 1777631
Alias: None
Product: Fedora
Classification: Fedora
Component: k3d
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ralf Corsepius
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F31_PY2REMOVAL 1767503
TreeView+ depends on / blocked
 
Reported: 2019-08-06 12:36 UTC by Lumír Balhar
Modified: 2019-11-28 01:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-28 01:15:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lumír Balhar 2019-08-06 12:36:47 UTC
Python 2.7 will reach end-of-life in January 2020, over 9 years after it was released. This falls within the Fedora 31 lifetime.
Packages that depend on Python 2 are being switched to Python 3 or removed from Fedora: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages
Python 2 will be retired in Fedora 32: https://fedoraproject.org/wiki/Changes/RetirePython2

To help planning, we'd like to know the plans for k3d's future. Specifically:


- What is the reason for the Python2 dependency? (Is it software written in Python, or does it just provide Python bindings, or use Python in the build system or test runner?) 

- What are the upstream/community plans/timelines regarding Python 3?

- What is the guidance for porting to Python 3? (Assuming that there is someone who generally knows how to port to Python 3, but doesn't know anything about the particular package, what are the next steps to take?)


This bug is filed semi-automatically, and might not have all the context specific to k3d.
If you need anything from us, or something is unclear, please mention it here.

Thank you.

Comment 1 Ralf Corsepius 2019-08-11 08:46:28 UTC
(In reply to Lumír Balhar from comment #0)
> Python 2.7 will reach end-of-life in January 2020, over 9 years after it was
> released. This falls within the Fedora 31 lifetime.
> Packages that depend on Python 2 are being switched to Python 3 or removed
> from Fedora:
I consider this step to be non-helpful and extremistic, to say the least.

> To help planning, we'd like to know the plans for k3d's future. Specifically:
> 
> 
> - What is the reason for the Python2 dependency? (Is it software written in
> Python, or does it just provide Python bindings, or use Python in the build
> system or test runner?) 
This package contains python modules.
 
> - What are the upstream/community plans/timelines regarding Python 3?
This package basically is in "keep-alive mode".

I.e. upstream is alive and is accepting patches, but I am not aware of any active development nor any plans to move to Python 3.

> - What is the guidance for porting to Python 3? (Assuming that there is
> someone who generally knows how to port to Python 3, but doesn't know
> anything about the particular package, what are the next steps to take?)

This package doesn't build with Python 3, basically because of these issues:
a) Its cmake-files do not honor recent Fedora Python (2 + 3) packaging changes.
b) Its cmake-files do not honor Python 3.
c) The source-code is not Python 3 compatible.

So far, I've worked-around a) (Successfully wrt. Python 2) by hacking cmake stuff from inside of the spec-file.

I have preliminary hacks/attempts to address a) (Python3) and c) pending, but no success so far.

Comment 2 Petr Viktorin 2019-08-12 11:10:48 UTC
Keeping software on Python 2 is entirely possible. If that's the plan, could you file for a FESCo exception, so it is tracked?

k3d's Python 2 dependencies (which would generally need to find a maintainer) are tracked at: https://fedora.portingdb.xyz/pkg/k3d/

Comment 3 Ben Cotton 2019-08-13 16:50:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 4 Ben Cotton 2019-08-13 17:04:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 5 Lumír Balhar 2019-08-19 11:25:31 UTC
The current plan is to remove packages with dependency on Python 2 from Fedora 32 in the middle of November 2019. If you want to keep your package in Fedora after that date and you cannot port it to Python 3 yet, you need to request a FESCo exception for the package and all its Python 2 dependencies (even transitive) [1]. If you don't want to maintain it anymore, and nothing in Fedora uses it, you can retire it or just remove the Python 2 part from it (subpackage, module, bindings, etc.).

If you're considering filing the exception request, let us know. We can help (for example, we can help find all the dependencies).

[1] https://fedoraproject.org/wiki/Changes/RetirePython2#FESCo_exceptions

Comment 6 Ralf Corsepius 2019-08-19 12:46:01 UTC
(In reply to Lumír Balhar from comment #5)
> The current plan is to remove packages with dependency on Python 2 from
> Fedora 32 in the middle of November 2019.
That's an utterly hostile act against fedora contributors.

> If you're considering filing the exception request, let us know. We can help
> (for example, we can help find all the dependencies).
Instead of pushing around volunteer contributors and direct them to the bureaucracy you have set up, you actually could have (technically) helped - Long time ago!
 
> [1] https://fedoraproject.org/wiki/Changes/RetirePython2#FESCo_exceptions
With a large grain of salt, I'll play it nice, an file a request.

Comment 7 Petr Viktorin 2019-08-19 13:08:44 UTC
>> The current plan is to remove packages with dependency on Python 2 from
>> Fedora 32 in the middle of November 2019.
> That's an utterly hostile act against fedora contributors.

Sorry for that!
We don't want to maintain software that has no upstream support. But we want to do better than just retire python2.
(As always, if you're not happy with this direction, you're welcome to take over python2 maintenance instead.)


>> If you're considering filing the exception request, let us know. We can help
>> (for example, we can help find all the dependencies).
> Instead of pushing around volunteer contributors and direct them to the bureaucracy you have set up, you actually could have (technically) helped - Long time ago!
 
Sorry for the bureaucracy. Keeping this organized isn't straightforward. There are hundreds of packages, many of which we're not familiar with at all. Unfortunately, it's too many to go and port each one. We need to ask for info from maintainers, and prioritize.

k3d depends on boost. When you include transitive and build-time dependencies, boost depends on 45 Python 2 packages: mercurial, PyYAML, mpich, openmpi python-atomicwrites, python-attrs, python-contextlib2, python-coverage, python-dateutil, python-docutils, python-extras, python-fixtures, python-freezegun, python-funcsigs, python-hypothesis, python-linecache2, python-mimeparse, python-mock, python-nose, python-pathlib2, python-pbr, python-pip, python-pretend, python-py, python-scandir, python-scripttest, python-setuptools, python-setuptools_scm, python-six, python-sure, python-testscenarios, python-testtools, python-traceback2, python-unittest2, python-wheel, python-zope-event, python-zope-interface, python-rpm-macros, python-enum34, python-futures, python2, python2-more-itertools, python2-numpy, python2-pluggy, python2-pytest
(We track them at: https://fedora.portingdb.xyz/pkg/k3d/)

Do you know which of these k3d uses directly, and which are (from k3d's point of view) just implementation details of other dependencies? For which ones are maintainers OK with supporting python2, and how long? Which ones need (co-)maintainers?

>> [1] https://fedoraproject.org/wiki/Changes/RetirePython2#FESCo_exceptions
> With a large grain of salt, I'll play it nice, and file a request.

Thank you!

Comment 8 Petr Viktorin 2019-11-01 08:49:42 UTC
The boost maintainer would be very happy to drop Python 2 support: supporting a dual py2/py3 build is "a nightmare". But it is technically possible to keep boost-python2. 

Is it worth keeping python2-boost for freeorion and k3d?

Comment 9 Petr Viktorin 2019-11-05 11:50:43 UTC
Here is a PR for using `boost169`, which will retain Python 2 support: https://src.fedoraproject.org/rpms/k3d/pull-request/1

See discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1767503

Comment 10 Ralf Corsepius 2019-11-11 07:31:52 UTC
(In reply to Petr Viktorin from comment #9)
> Here is a PR for using `boost169`, which will retain Python 2 support:
> https://src.fedoraproject.org/rpms/k3d/pull-request/1
> 
> See discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1767503

Thanks, Petr. I applied your patch.

Can this BZ now be closed or is k3d still at risc of being shot?

Comment 11 Petr Viktorin 2019-11-12 10:14:06 UTC
Technically, there's still no exception for it. Are you still planning to file one, or should I?

Comment 12 Miro Hrončok 2019-11-28 01:15:38 UTC

*** This bug has been marked as a duplicate of bug 1777631 ***


Note You need to log in before you can comment on or make changes to this bug.