-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
pip --only-binary equivalent #6798
Comments
Any update on this? We're trying to migrate from |
As you can see, no one has started to implement this feature at this time. |
This feature would be beneficial when building packages for older systems, I've recently seen this when attempting to use poetry and twine from an older linux system. Installing poetry with pip and passing the only-binary flag works, but for cryptography (or other hard-to-build packages) on older systems as dependencies managed by poetry, this kind of option would be very helpful. |
@martsa1 This would also help with macosx build distributions since not all package have update to support macosx > 11 It would be a great help if this is added as part of schema dependency specification. @neersighted , I would need some guidance on how this feature can be implemented, I will read some dev guides and reach back to you this week hopefully with a draft pr. |
If we implement it symmetrically with Poetry currently does not factor in wheel availability of any sort into solving. As a constraint on a dependency, this would require a major reengineering of the solver and may not be accepted. I can't really provide too much guidance beyond that, as now you'd be getting into most of the work of implementing either approach. I would suggest taking the former as a first step, as it is much simpler to implement and will solve some of the use cases described. |
How would you best define"install-time"? if I read related issues there is already a no-binary config, Would that mean something like poetry config installer.no-binary "greenlet,package2"? I have tried and I think that installs package2 and greenlet from source dist. |
"install-time" is when we pick the package files to use in |
Sorry for misunderstanding, the question is rather how should the package be marked to use sdist? via dependency specification? |
The "symmetrical with |
A The fix I found is to install it with |
https://python-poetry.org/blog/announcing-poetry-1.2.0/#opting-out-of-binary-distributions; Poetry is not Pip, but we do support this, as mentioned above. |
I wanted to clarify that this issue is for having poetry only use the binary distribution. Which is the oposite of the -no-binary option. |
Does |
poetry does not use pip to install packages, pip environment variables are irrelevant. this should be a fairly straightforward thing for someone to contribute: follow the general pattern for the existing |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Please support passing the --only-binary to pip.
We have a number of packages that we would only want to use binary package with. Please add the ability to support the pip flat --only-binary.
Thanks
The text was updated successfully, but these errors were encountered: