-
Notifications
You must be signed in to change notification settings - Fork 11
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
distutils deprecated #17
Comments
I don't recall exactly why I had the fallback to fyi. The larger problem with distutils will be felt by setuptools-dso (epics-base/setuptools_dso#24) where things are not so simple. eg. from distutils.sysconfig import customize_compiler Isn't readily replaceable. |
I've come across this "advice" before. It left me hoping to find some more concrete statement from the setuptools developers. Their recently demonstrated willingness to ~intentionally break API leaves me hesitant to guess at what will be supported. |
I wonder if any of the new build tools will do this any better? |
Which are? The only one which comes to my mind is |
28d3b0b removes the |
That advice is very careful to state "It is current at time of writing, but is not kept up to date." In other words, it's a best effort attempt to offer users some hopeful leads to investigate -- it's not some sort of stability guarantee. :P I would personally suggest getting out of the business of monkey-patching setuptools or otherwise using its API for anything more than Conveniently, that's all stuff that setuptools supports via setup.cfg, aside for |
This is how I read PEP632, and what I have tried to do. However, my attempts to investigate have so far not been as fruitful as I had expected. I have only found some bits and pieces of advice from sources I don't trust to be authoritative. eg. commenters on github issues. Thus my grumbling. Still, maybe I'm not putting the right keywords into google...
I would like to get out of this business. At the same time, I don't want to re-invent the whole of the setuptools ecosystem as a prerequisite to what I want to focus on. I am hoping that as the dust settles on the distutils situation, I will continue to be able to build onto setuptools.
The effects I want to achieve revolve around compiled extensions, and their dependencies. So I really can't set this aside. |
Distutils will be deleted in 3.12, and emits a DeprecationWarning:
Use setuptools or check PEP 632 for potential alternatives
The only runtime reference I can see is:
https://github.com/mdavidsaver/epicscorelibs/blob/cefd192d0cd4ab03e57cb908f14874f8ac56a1ae/src/python/epicscorelibs/config.py#L29
And PEP632 suggests using
sysconfig
instead: https://peps.python.org/pep-0632/#migration-adviceWhat does
distutils.sysconfig
provide thatsysconfig
does not?The text was updated successfully, but these errors were encountered: