-
Notifications
You must be signed in to change notification settings - Fork 145
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
Compilation fails, but only if setuptools-git-versioning is installed #858
Comments
Looks like an upstream issue https://github.com/dolfinus/setuptools-git-versioning/blob/master/setuptools_git_versioning.py#L184 this should use tomli not toml toml was never updated to support the new syntax that setuptools and pip now support |
Should work if you apply this patch dolfinus/setuptools-git-versioning#108 @bassmadrigal |
Just released |
On a tangential note, what do you need |
Thanks to both of you for the quick fix!
SlackBuilds.org (SBo) builds all modules from source. The version of setuptools in Slackware 15.0 is too old for some of the modules, so a newer version is built and installed into /opt/. That version of setuptools requires python3-wheel. SBo does not differentiate between build-time and run-time dependencies. I imagine some of the other dependencies requires wheel as well, but it's only documented on a package if none of the other dependencies already requires it (SBo does not list dependencies of dependencies). |
Sounds like even that version of setuptools is old enough to not yet have shed its requirement of Regardless, it sounds like this is (was) not an AnyIO problem so I'll close it. |
I just looked and it is new enough (v75.6.0) and tried building without wheel and it worked. I'll let the maintainer of that package know they no longer need that dependency listed.
Thanks! |
Thanks! Appreciated. |
Things to check first
I have searched the existing issues and didn't find my bug already reported there
I have checked that my bug is still present in the latest release
AnyIO version
4.8.0
Python version
3.9.21
What happened?
I recently took over maintenance of the anyio package for SlackBuilds.org (official 3rd-party software repo for Slackware Linux). In attempting to update it to the latest version, I found that it wouldn't compile on my main system. So I checked it in a clean system (only stock packages and the required dependencies for anyio) and it worked fine.
The error came from setuptools_git-versioning.py, so I tried installing that into the clean environment I just built anyio in, and it failed again. I also tried installing setuptools-git-versioning via pip, just in case it was a packaging issue from that maintainer, but it still broke.
Error from the build command
python3 -m build --no-isolation
is:How can we reproduce the bug?
Install all required dependencies to build anyio. On a full Slackware 15.0 (the latest stable) install that would include the following packages from SlackBuilds.org (SBo):
Then install python3-setuptools-git-versioning from SBo (or setuptools-git-versioning from pip) and try to compile the module using
python3 -m build --no-isolation
and it fails every time with the above error.The text was updated successfully, but these errors were encountered: