Skip to content

Replace distutils mkpath deprecated call#120

Closed
isaac-fs wants to merge 2 commits intoHPENetworking:masterfrom
isaac-fs:isaac-fs/setup-tools-fix
Closed

Replace distutils mkpath deprecated call#120
isaac-fs wants to merge 2 commits intoHPENetworking:masterfrom
isaac-fs:isaac-fs/setup-tools-fix

Conversation

@isaac-fs
Copy link
Copy Markdown
Contributor

@isaac-fs isaac-fs commented Mar 26, 2026

distuils was deprecated in Python 3.10, and removme from Python's standard library on Python 3.12. For users using Python 3.12+ an error is presented: ModuleNotFoundError: No module named 'distutils'

I had two ways going about this fix. Fixing the call to dist utils, but then I realized we would also need to request plugin implementers to update their own repositories. So the easier and scalable fix was taking advantage that setuptools now wraps distutils via .pth's.

Isaac F. Fonseca Segura added 2 commits March 26, 2026 15:01
distuils was deprecated in Python 3.10, and removed from Python's
standard library on Python 3.12. For users using Python 3.12 and higher
an error is presented:  ModuleNotFoundError: No module named 'distutils'

setuptools maps these calls in newer Python versions. Adding this
dependency avoids crashes when using topology.
@isaac-fs isaac-fs force-pushed the isaac-fs/setup-tools-fix branch from 36942dc to 9d6d5d4 Compare March 26, 2026 21:12
@isaac-fs
Copy link
Copy Markdown
Contributor Author

Closing in favor of #119.

@isaac-fs isaac-fs closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant