Skip to content

Commit

Permalink
Import setup from setuptools
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stefanor committed Nov 12, 2022
1 parent c467d6f commit 0f6472e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -15,8 +15,7 @@

import os
import sys
from distutils.core import setup
from setuptools import find_packages
from setuptools import find_packages, setup

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

0 comments on commit 0f6472e

Please sign in to comment.