-
Notifications
You must be signed in to change notification settings - Fork 114
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
Can't install package tree-sitter-languages #378
Comments
Yes, binary wheels for CPython only work on CPython. You can typically clone their repo and execute the same build steps as their CI does in a graalpy virtualenv to get a graalpy wheel.
It's not the only package that does binary only releases, it's a quite common problem for machine learning libraries. We have a patch in our pip that lets pip build from arbitrary tarball we specify in our patch metadata. But it also means that we need to provide a patch runs their build scripts within a standard pip build. Which is not always easy. |
Is there a way to force the check? Looking at the code, it appears that the wheel contains ordinary C shared libraries that don't depend on Python. See here and at the build method above. It looks a lot like a GraalPython build would just be redundant work. |
What you say is true of the |
To answer your question about the check - pip checks just the filename, so if you download the wheel and rename the it to have graalpy's ABI tag, then it should install. But the |
I was able to install the package from a github release using: pip install cython
pip install git+https://github.com/grantjenks/[email protected] If you can confirm for me that it works for your use case, I can add a patch to GraalPy so that |
The steps above worked for me, at least insofar as I was able to install the package on
However, on the
|
Ah, it seems that newer pip defaults to isolated builds. I was able to install it on master with
|
That worked! Amazing, thank you! You are so magical, consistently providing solutions to make everything work! Much appreciated! |
It's a binary only package that doesn't support source installs, maybe that's the cause? How does one compile such a thing for GraalPy? Perhaps there's a need to update their CI file to also build with GraalPy on each platform but I'm not sure how to do that.
The text was updated successfully, but these errors were encountered: