Bug 1805173 - coan requires Python 2 to build
Summary: coan requires Python 2 to build
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: coan
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Filipe Rosset
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: BRPY27
TreeView+ depends on / blocked
 
Reported: 2020-02-20 12:29 UTC by Petr Viktorin (pviktori)
Modified: 2021-02-10 14:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-10 14:49:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Viktorin (pviktori) 2020-02-20 12:29:58 UTC
Python 2 reached upstream end-of-life in January 2020. In Fedora Rawhide, it's now provided from the compat package `python27`.
Packages that only use Python 2 at build time, like coan, had a general exception to keep using it in Fedora 31. Now, the dependency should be removed.
Let us know if you need any help investigating or removing the dependency. (In coan's case, it looks like Python was used for tests, which are currently skipped. We can help porting to Python 3, but having tests pass under Python 2 would help a lot for that.)

If it's possible that the dependency won't be removed in Fedora 33. Please request a FESCo exception. You can refer to the exception for mercurial as an example: https://pagure.io/fesco/issue/2243
It's good to mention:

- What is the reason for the Python 2 build dependency?

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

- What is the guidance for porting the build 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?)

If you need anything from us, or something is unclear, please mention it here.

Comment 1 Ben Cotton 2020-08-11 13:08:58 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 2 Petr Viktorin (pviktori) 2021-01-14 16:47:05 UTC
It seems python2.7 is only used for tests, which are disabled.
Does it make sense to port them to Python 3?

Comment 3 Filipe Rosset 2021-01-28 15:06:58 UTC
(In reply to Petr Viktorin from comment #2)
> It seems python2.7 is only used for tests, which are disabled.
> Does it make sense to port them to Python 3?

yes, I'm building for rawhide without the python2 dependency.
Also I asked upstream to migrate all tests from python2 to python3.
thanks!

Comment 4 Petr Viktorin (pviktori) 2021-02-10 14:49:03 UTC
I no longer see the dependency in Rawhide.
Thank you!


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