fix(cli): require correct setuptools version#4492
Conversation
There was a problem hiding this comment.
For backwards compatibility we could fall back to distutils.command.build instead.
Several distros have outdated packages according to https://pkgs.org/search/?q=setuptools
ALT Linux: 42.0.0
Amazon Linux 2: 49.1.3
Amazon Linux 2023: 59.6.0
Debian 11: 44.1.1
openSUSE Leap 15.6: 44.1.1
PCLinuxOS: 45.2.0
RHEL 8 & derivatives: 39.2.0
RHEL 9 & derivatives: 53.0.0
Slackware 15.0: 57.5.0
Ubuntu 22.04: 59.6.0
|
From what I understand when you declare like I did the pip will install the build deps in a temporary env; so I'm not sure there's benefit to implementing fallback |
|
Not if you use the system packages. |
|
Can you please rebase? |
|
Can we merge #4493 instead? |
|
Why? This is a much simpler fix for the actual issue, and 62.4.0 was released three years ago. |
|
The |
|
I agree with @clason. I would like the bindings to stay simple; I don’t think it’s worth adding the fallback scheme to support people who do not want to install recent versions of setup tools. |
|
Then should we bump all the way to v70.1.0? |
Why? What will that buy us over 62.4.0? |
|
|
We could also just keep using the |
|
The package isn't deprecated but the |
|
Do we have a conclusion here? I'm happy to pull in latest master and bump further to 70 whatever as needed. |
|
Let's start with a simple rebase(!) on |
b3be589 to
378619f
Compare
|
K, i have rebased and force-pushed and its all clean. |
|
Successfully created backport PR for |
The build process uses the module
setuptools.command.buildwhich was added in 62.4.0 asper https://github.com/pypa/setuptools/blob/main/NEWS.rst#v6240
also ref tree-sitter-perl/tree-sitter-perl#214