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 1829716 - python-setuptools fails to build with Python 3.9: lib2to3 package is deprecated
Summary: python-setuptools fails to build with Python 3.9: lib2to3 package is deprecated
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-setuptools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-04-30 07:37 UTC by Miro Hrončok
Modified: 2020-05-04 18:25 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-04 18:25:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pypa setuptools issues 2081 0 None closed Python 3.9.0a6: "PendingDeprecationWarning: lib2to3 package is deprecated" breaks the tests 2020-05-04 18:24:12 UTC

Description Miro Hrončok 2020-04-30 07:37:05 UTC
python-setuptools fails to build with Python 3.9.0a6.

==================================== ERRORS ====================================
__________________ ERROR collecting setuptools/lib2to3_ex.py ___________________
setuptools/lib2to3_ex.py:12: in <module>
    from lib2to3.refactor import RefactoringTool, get_fixers_from_package
/usr/lib64/python3.9/lib2to3/__init__.py:4: in <module>
    warnings.warn(
E   PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+
_______________ ERROR collecting setuptools/command/build_py.py ________________
setuptools/command/build_py.py:16: in <module>
    from setuptools.lib2to3_ex import Mixin2to3
setuptools/lib2to3_ex.py:12: in <module>
    from lib2to3.refactor import RefactoringTool, get_fixers_from_package
/usr/lib64/python3.9/lib2to3/__init__.py:4: in <module>
    warnings.warn(
E   PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+

...

See https://bugs.python.org/issue40360


lib2to3 package is deprecated and may not be able to parse Python 3.10+. The tests fail becaus ethey treat PendingDeprecationWarning as error.


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01357228-python-setuptools/

For all our attempts to build python-setuptools with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-setuptools/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2020-04-30 07:39:57 UTC
Reported upstream https://github.com/pypa/setuptools/issues/2081

Comment 2 Miro Hrončok 2020-04-30 08:27:01 UTC
Will add https://github.com/pypa/setuptools/pull/2082


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