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

Fix CI failure on Python 3.12 #400

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

brenns10
Copy link
Contributor

Our setup.py imports setuptools which is no longer provided by Python 3.12. It must be installed manually via pip. We did not notice this because the "nodeenv" package listed setuptools in its install_requires, thus providing the dependency for us.

Four hours ago nodeenv 1.9.0 was released, and it happened to drop the setuptools dependency. This broke CI. Add an explicit setuptools requirement in our pip command to fix it.

Our setup.py imports setuptools which is no longer provided by Python
3.12. It must be installed manually via pip. We did not notice this
because the "nodeenv" package listed setuptools in its install_requires,
thus providing the dependency for us.

Four hours ago nodeenv 1.9.0 was released, and it happened to drop the
setuptools dependency. This broke CI. Add an explicit setuptools
requirement in our pip command to fix it.

Signed-off-by: Stephen Brennan <[email protected]>
@brenns10
Copy link
Contributor Author

The 3.12 failure can be seen in this build. The 3.6 failure for that branch is for a genuine issue with my change, but the 3.12 issue cropped up by chance at the same time. I root-caused it by comparing to this recent build which installed setuptools as a dependency of nodeenv, while my build no longer did.

Copy link
Owner

@osandov osandov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to track down the cause!

@osandov osandov merged commit 06a9bb6 into osandov:main May 29, 2024
29 checks passed
@brenns10 brenns10 deleted the fix_setuptools branch May 29, 2024 05:49
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.

2 participants