Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812149 - [TRACKER] Packages relying on setuptools' use_2to3 option
Summary: [TRACKER] Packages relying on setuptools' use_2to3 option
Status: RESOLVED FIXED
Alias: None
Product: Quality Assurance
Classification: Unclassified
Component: Trackers (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 812209 812212 812215 812218 812221 812224 812227 812230 812233 812236 812239 812242 812500 812893 813825 813840 813864 813900 813915 818733 822840 827534
Blocks:
  Show dependency tree
 
Reported: 2021-09-08 10:19 UTC by Michał Górny
Modified: 2023-01-31 11:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-09-08 10:19:59 UTC
setuptools 58.x removes the use_2to3 option that some packages are still relying on.  Affected packages emit warnings like the following with older versions of setuptools:

/usr/lib/pypy3.7/site-packages/setuptools/lib2to3_ex.py:41: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.
  SetuptoolsDeprecationWarning)


Fixing roughly involves:

1. adding <dev-python/setuptools-58 BDEPEND to the current versions.

2. Filing a big upstream.

3. (optionally) adding an explicit 2to3 call to ebuild and removing use_2to3 from setup.py/setup.cfg (then removing <-dep on setuptools).


The 2to3 calls usually look like:

  2to3 -n -w --no-diffs <file/directory> || die
Comment 1 Toralf Förster gentoo-dev 2021-09-08 20:20:59 UTC
current from tinderbox:

app-text:rnc2rng-2.6.4
dev-python:beautifulsoup-4.9.3
dev-python:feedparser-5.2.1-r1
dev-python:fudge-1.1.1
dev-python:funcparserlib-0.3.6-r1
dev-python:jsmin-2.2.2
dev-python:lcdproc-0.03_p20150508
dev-python:nose-1.3.7-r8
dev-python:pybluez-0.23
dev-python:simpleeval-0.9.10
dev-python:sparql-wrapper-1.8.5
dev-python:sphinx-bootstrap-theme-0.8.0
dev-python:suds-0.8.4
dev-python:tempita-0.5.3-r3
sci-biology:pysam-0.16.0.1
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-09-09 07:49:47 UTC
Treecleaners, if you have a minute, could you walk through the blockers and look for dead packages?
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-31 11:46:16 UTC
We now require a newer setuptools version, so I guess this is solved.