Bug 2245257 - swig may be built using 2to3 which will be removed from Python 3.13 (Fedora 41)
Summary: swig may be built using 2to3 which will be removed from Python 3.13 (Fedora 41)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: swig
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-20 11:16 UTC by Karolina Surma
Modified: 2023-10-22 19:29 UTC (History)
3 users (show)

Fixed In Version: swig-4.1.1-12.fc40
Clone Of:
Environment:
Last Closed: 2023-10-22 19:29:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-10-20 11:16:34 UTC
This is an early notice about Python 3.13 which will be the main Python
in Fedora 41+ (https://fedoraproject.org/wiki/Changes/Python3.13).

We detected that swig sets '2to3' in one of the conditionals during its build time.
2to3 and lib2to3 will be removed from Python 3.13.

Python-maint has already started testing Fedora packages with Python 3.13 alphas.
We'll appreciate unblocking swig as soon as possible to enable smooth integration.

Possible solutions to this issue:
- (preferred) port your package to Python 3 upstream
- patch the source code of the package using 2to3 and add the patch to dist git
2to3 is still present in Fedora 37, 38, 39, 40.

Comment 1 Jitka Plesnikova 2023-10-20 12:17:04 UTC
All Python examples and tests are written to be Python 2 and Python 3 compatible in swig 4.1. 
So, 2to3 is not needed to run the examples or test-suite.
I missed this change in long list of changes in version 4.1.


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