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
Bug 1884798 - swift-lang requires Python 2 to build
Summary: swift-lang requires Python 2 to build
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: swift-lang
Version: 34
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ron Olson
QA Contact: Fedora Extras Quality Assurance
Depends On: BRPY27
TreeView+ depends on / blocked
Reported: 2020-10-02 19:55 UTC by Petr Viktorin
Modified: 2021-02-09 15:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Bug

Attachments (Terms of Use)

Description Petr Viktorin 2020-10-02 19:55:10 UTC
Python 2 reached upstream end-of-life in January 2020. In Fedora, it's now provided from the deprecated compat package `python27`. It should not be added as a new  dependency, as it was in swift-lang 5.3-1.

If it's possible that the dependency won't be removed in Fedora 34, please request a FESCo exception. You can refer to the exception for mercurial as an example:
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 Ron Olson 2020-10-02 20:25:38 UTC

I am very aware of Fedora's desire to sunset Python 2, and commented on this very issue on the Swift forums: The Swift folks have been actively working towards removing Python 2 as a dependency (for example: but this was not done in time for Swift 5.3 as the code is frozen presumably per an internal schedule probably related to the next version of iOS, macOS, etc. 

The Python 2 dependency is there because the Swift toolchain uses it for building.

I do not know what version will be declared Python 2-free (next-version builds have not yet been made available per and the main branch (that the next version will be forked from) does not yet consistently build cleanly because of the number and variety of commits that is normal for a large, active project.

Comment 2 Petr Viktorin 2020-10-02 20:40:58 UTC
Thanks for the info! Glad to hear this is moving forward.

Comment 3 Ben Cotton 2021-02-09 15:19:39 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

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