Skip to content
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

difficulty testing distutils #12

Open
jaraco opened this issue Aug 27, 2024 · 0 comments
Open

difficulty testing distutils #12

jaraco opened this issue Aug 27, 2024 · 0 comments

Comments

@jaraco
Copy link
Member

jaraco commented Aug 27, 2024

While attempting to enroll distutils in coherent, I ran into another issue.

Because the coherent system uses setuptools_scm, and because setuptools_scm depends on setuptools, and because setuptools has a hack to supply distutils, by the time pytest gets around to importing distutils.conftest, the import fails because that module doesn't exist (as a submodule of setuptools._distutils).

I tried disabling that distutils hack, but that doesn't work because setuptools_scm actually imports setuptools during the project setup, so some distutils needs to be available for installation prior to pytest being invoked.

My instinct is to try to get setuptools out of the dependency tree, but that probably means replacing setuptools_scm with something else. Fortunately, I have some work in progress with jaraco.vcs to potentially do that.

@coherent-oss coherent-oss deleted a comment Aug 27, 2024
@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
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

No branches or pull requests

1 participant