Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Import setuptools before distutils #643

Closed
wants to merge 1 commit into from

Conversation

stefanor
Copy link

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/1022459

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.

This change in setuptools is to prepare for Python 3.12, which will drop
distutils.
@stefanor
Copy link
Author

stefanor commented Dec 1, 2022

Withdrawing this MR, I hadn't found the underlying bug, yet: https://bugs.debian.org/1025216

@stefanor stefanor closed this Dec 1, 2022
@stefanor stefanor deleted the setuptools-60 branch December 1, 2022 18:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant