Skip to content

Setuptools is replacing distutils #2464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AdamRJensen opened this issue May 27, 2025 · 1 comment · Fixed by #2465
Closed

Setuptools is replacing distutils #2464

AdamRJensen opened this issue May 27, 2025 · 1 comment · Fixed by #2465
Milestone

Comments

@AdamRJensen
Copy link
Member

readthedocs is generating the following warning, stating that "Setuptools is replacing distutils"

/home/docs/checkouts/readthedocs.org/user_builds/pvlib-python/envs/2459/lib/python3.11/site-packages/_distutils_hack/init.py:30: UserWarning: Setuptools is replacing distutils. Support for replacing an already imported distutils is deprecated. In the future, this condition will fail. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml

@kandersolar
Copy link
Member

For context: that's been printed out for quite a while (years?) now. Ignoring it doesn't seem to have had any adverse consequence.

Anyway, I speculate that updating the build to use Python 3.12 (which removed distutils entirely) would get rid of that warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants