You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setuptools 60 uses its own bundled version of distutils, by default. It
injects this into sys.modules, at import time. So we need to make sure
that it is imported, before anything else imports distutils, to ensure
everything is using the same distutils version.
This change in setuptools is to prepare for Python 3.12, which will drop
distutils.
In this case, the best way to deal with the problem is to just use
setuptools' setup().
Fixes: https://bugs.debian.org/1022482 and https://bugs.debian.org/1022538
Copy file name to clipboardExpand all lines: packages/mbed-greentea/setup.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,7 @@
24
24
25
25
importos
26
26
fromioimportopen
27
-
fromdistutils.coreimportsetup
28
-
fromsetuptoolsimportfind_packages
27
+
fromsetuptoolsimportfind_packages, setup
29
28
30
29
DESCRIPTION="mbed 3.0 onwards test suite, codename Greentea. The test suite is a collection of tools that enable automated testing on mbed-enabled platforms"
0 commit comments