-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fail fast if setuptools is too old on Python 3.6 #3295
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
Fail fast if setuptools is too old on Python 3.6 #3295
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
The installation works badly on Python 3.6 when the This should be able to reproduce it. Versions are locked to the current ones on that docker image, for reproducibility in the future:
|
|
No conditional logic in |
Is that common? Also, |
|
It's not unheard of. And yeah, setup.py will fail if no setuptools is installed, but I think this particular failure is actually due to pip's bundled setuptools so even this it might not fix it. @HaraldNordgren can you tell us which particular failure you're trying to fix? Is it the |
|
@jonparrott Yes, it's the Attribute error that happens on setup: |
|
@HaraldNordgren Sorry for the delay on the review. I'm not sure a change like this is the right fix for this problem. I (personally) would prefer the current process: address bugs as filed and try to document clearly that people should have up to date tooling (which should come as no surprise). Working around people having out of date tooling with explicit hacks seems very wrong to me. @lukesneeringer @jonparrott Are we going to try to get this (or something like this) through? If not we should close this PR. |
|
We definitely are not going to do the conditional logic (which will not actually work because eventually wheels). I am open to depending on setuptools >= 34 always. |
|
@lukesneeringer So it sounds like we should close this PR then? (Sorry @HaraldNordgren but we appreciate the effort.) |
|
Yeah, we should close this PR, and make a new issue to explicitly depend on a version of setuptools. |
Not 100% sure about this, but worth an attempt I think.