You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@abravalheri Hi again, now I am investigating build CI failures in requirementslib. It seems at some point before I was working on the project the build started failing with:
/home/matteius/requirementslib/.nox/coverage/lib/python3.9/site-packages/_distutils_hack/init.py:17: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the distutils module in sys.modules. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
I was scratching my head for a while until I found this PR with the updated documentation, and I tried setting export SETUPTOOLS_USE_DISTUTILS=stdlib and it was like magic causing the builld to run again and see what the actual test failures are. I am wondering now what the work around would be like to use the new default behavior, if you have ideas? Also, I see where distutils is going away at some-point, so does that mean usage such as from setuptools.dist import Distribution, distutils is going to further break soon? Thanks for your insights!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
logginginstead ofdistutils.logCloses
Pull Request Checklist
changelog.d/.(See documentation for details)