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

Don't require setuptools in prod dependencies in pyproject.toml #155

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Don't require setuptools in prod dependencies in pyproject.toml #155

merged 1 commit into from
Mar 19, 2024

Conversation

lewiscollard
Copy link
Contributor

@lewiscollard lewiscollard commented Mar 19, 2024

It's not required for production use, only for building. Instead, add the constraint part to build_system -> requires to save anyone having to ship setuptools in production builds.

Fixes #154.

It's not required for production use, only for building.
Instead, add the constraint part to `build_system -> requires` to
save everyone having to ship setuptools in production builds.

Fixes #154.
@oschwald
Copy link
Member

Hmm, the Address Sanitizer build failure seems related in some way. I think we would need to figure that out before merging. I reran it and it failed, printing out AddressSanitizer:DEADLYSIGNAL repeatedly. The same build on main works.

@lewiscollard
Copy link
Contributor Author

Feels like it, if only because the sanitiser job installs setuptools before running the build. I think that might be because older versions of this script were doing python setup.py build to install (where setup.py imports from setuptools). It shouldn't have that same bootstrapping problem with a pyproject.toml-based config.

I'm...going to try removing this just on a hunch. I'll drop the commit if this hunch fails, squash if it works.

@lewiscollard
Copy link
Contributor Author

Nope, that wasn't it. Actually, it succeeded, but hung forever on exactly the same thing. That exhausts my thoughts for why this might be the case.

@lewiscollard
Copy link
Contributor Author

Well that's interesting. It succeeded on the most recent run.

@oschwald
Copy link
Member

Huh, that is weird. Maybe it is flaky. I don't know that it has a history of being flaky, but it is possible something recently changed in the image to make it so.

@oschwald
Copy link
Member

Given the above, I am going to go ahead and merge this. Thank you for taking a closer look.

@oschwald oschwald merged commit 21f144b into maxmind:main Mar 19, 2024
66 of 67 checks passed
@lewiscollard lewiscollard deleted the no-setuptools branch March 19, 2024 19:00
@lewiscollard
Copy link
Contributor Author

Thank you for the merge. I was reluctant to suggest merging given that it only started happening with me - but it does rather seem like we just had some bad luck with one particular RAM stick in the world or something.

@oschwald
Copy link
Member

Yeah, I am not sure. I don't really see how the issue could be related to your change; I would have expected an explicit build failure if it was that. It did pass again in main.

oschwald added a commit that referenced this pull request Mar 19, 2024
oschwald added a commit that referenced this pull request Mar 19, 2024
oschwald added a commit that referenced this pull request Mar 19, 2024
@oschwald
Copy link
Member

I released 2.6.0 with this change.

@lewiscollard
Copy link
Contributor Author

That was fast. Thank you very much!

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

Successfully merging this pull request may close these issues.

setuptools is (incorrectly?) listed as a production dependency in pyproject.toml
2 participants