robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
451 stars 114 forks source link

Import setup from setuptools #212

Open stefanor opened 1 year ago

stefanor commented 1 year ago

setuptools 60 uses its own bunlded 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.

In this case, let's just remove distutils, entirely.

This change in setuptools is to prepare for Python 3.12, which will drop distutils.

stefanor commented 1 year ago

FWIW, the underlying bug I was describing is https://bugs.debian.org/1025216 but this change is still a worthwhile cleanup, I think.