leamas / ddupdate

Update DNS Data for Dynamic IP Addresses
MIT License
40 stars 28 forks source link

Import setuptools before distutils #76

Closed stefanor closed 1 year ago

stefanor commented 1 year ago

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.

Fixes: https://bugs.debian.org/1022527

stefanor commented 1 year ago

Applied in a480bd9e5cdae7530ff6646cc8076a4a0cde6274