Skip to content

Commit 0f6472e

Browse files
committed
Import setup from setuptools
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
1 parent c467d6f commit 0f6472e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
import os
1717
import sys
18-
from distutils.core import setup
19-
from setuptools import find_packages
18+
from setuptools import find_packages, setup
2019

2120
DESCRIPTION = "The tools to build, test, and work with Mbed OS"
2221
OWNER_NAMES = "Jimmy Brisson, Brian Daniels"

0 commit comments

Comments
 (0)