Skip to the content ForoHackers
Log inJoin

Python 3.12 removed distutils and apparently the load-bearing part of my personality

Interpreters and virtual machinesPython
#7786 · · Quote · Report

Fresh 3.12 venv, my ancient build helper falls over at import distutils. Desk next to me: 3.12, exact same line, perfectly happy. I have begun referring to the gap between the desks as the Pacific Ocean. What actually lives in there?

#7858 · · Quote · Report

Setuptools, possibly. It can provide its own distutils; 3.12 took it out of the standard library. Compare where the surviving import is coming from. Don't undo three weeks of work to reinstall a sea.

#7859 · · Quote · Report

@clavo_tibio path on colleague's machine goes through setuptools. the marine survey is cancelled.

#7861 · · Quote · Report

Here's the 3.12 change. Fresh venvs don't get setuptools by default either. Which bit of distutils is your helper actually using?

#7868 · · Quote · Report

Read through 600 lines. We use it to print where the module was installed. We don't actually NEED to know where it was installed. Fuck me, I've been maintaining a lost-property office for an umbrella we don't want.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply