-
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
How to add a dependency with --no-binary option #1316
Comments
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This is still an issue. The spatial library |
I'm also interested in this. |
Cartopy is another library which requires the no binary flag, since I work with geospatial data I hardly want to miss out on it and would really appreciate an implementation into poetry. And further, it is possible to install such packages with poetry, using something like |
This is an interesting case. I think the more, elegant solution would be to be able to specify a per-dependency requirement. The issue however, is that this is ususally a PEP 517 frontend task, which generally falls outside the scope of poetry's core features. That said, since we are moving more towards being more independent of tools like We might need to discuss where we draw the line first, before enabling a feature like this. I do think think this is unavoidable. For now, a workaround might be to use a url dependency pointing to an sdist along with a platform marker. |
I'm having this same issue. @abn would you be able to provide a working example of your suggested workaround? |
We're in the same position with |
shapely = { url = "https://files.pythonhosted.org/packages/42/f3/0e1bc2c4f15e05e30c6b99322b9ddaa2babb3f43bc7df2698efdc1553439/Shapely-1.7.1.tar.gz" }
This will nto work with |
I just came across this with In fact, their full install command is: pip install --no-binary :all: confluent-kafka Sadly this doesn't seem to be supported by my beloved Poetry 😄 |
We are facing a similar problem in our package (https://github.com/litebird/litebird_sim). We depend on a numerical C++ package that requires significant memory to be built, and sometimes this makes Readthedocs builds crash. What we would like to do is to have the following situation:
We manage package builds using Poetry and documentation builds using a plain old |
Trying to install Kivy on Pop_OS (Linux) using the wheel that Pypi provides results in broken audio. The fix is to install the relevant dependencies and install kivy with the --no-binary. I can't use poetry to install kivy to the virtual environment because of this issue. It would be great if the --no-binary option could be integrated into the CLI of poetry. Just to be able to type: Would be a huge improvement, but this script is a good workaround so far. |
I am running into that. Currently using
|
+1 for this, big problem for constrained OSes like raspiOS where wheels are often incompatible with system packages (eg. numpy wheels all require GLIBC >= 2.29 and RaspiOS buster, which is still required for lots of embedded applications, ships with 2.28) |
I am having the same issue, as I need |
+1 to this being an issue. Having a lot of trouble installing |
think this is part of a cluster of issues, tried to start a discussion here: #4137 (comment) |
Having the same issue. |
Same issue here. It's impossible to use geospatial libraries as a compilation of Shapely/Cartopy is needed. All our efforts to migrate from pip to poetry are wasted by this issue. Is there a way to help? |
+1 on this being an issue. Trying to make our packages fit the AWS lambda size limit of 250mb. This issue is currently making all our efforts of migrating to poetry a waste. |
@markthor I don't think this issue affects any size limit. Whether installing from binary or source, the size of the final installation should be the same. |
@remram44 I am not an expert on this subject, so I might have misunderstood something. But when i do |
this basically overrides the lockfile. |
It is in fact bypassing the wheel, the very purpose of This is the entire point of this issue. He's bypassing the lockfile because poetry doesn't support |
@markthor I just tested this and got the opposite result, my build from source (using pip) is much bigger than the binary wheel installation. Every Either way, my current workaround of changing the files in the |
sorry ya i was just speaking loosely which in retrospect is the opposite of the meaning i intended. wheel -> tarball is what i meant. basically i agree and also think it's a thing poetry should support, and have tried to sketch some ideas about how that could work over here in the context of specifying sources/architectures ( #4137 (comment) ) because from what i can tell about the library it could be approached as a general means of passing arguments from pyproject to the solver to the lockfile edit: spelling |
We also introduce the `no-binary` option for `shapely` and `pygeos`. For more info: - https://python-poetry.org/docs/configuration/#installerno-binary Background information: - python-poetry/poetry#1316
We also introduce the `no-binary` option for `shapely` and `pygeos`. For more info: - https://python-poetry.org/docs/configuration/#installerno-binary Background information: - python-poetry/poetry#1316
We also introduce the `no-binary` option for `shapely` and `pygeos`. For more info: - https://python-poetry.org/docs/configuration/#installerno-binary Background information: - python-poetry/poetry#1316
We also introduce the `no-binary` option for `shapely` and `pygeos`. For more info: - https://python-poetry.org/docs/configuration/#installerno-binary Background information: - python-poetry/poetry#1316
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. |
Question
How is a dependency added so that poetry will run something like this:
What does that look like in the
pyproject.toml
file?PS. See a work-around using poetry export in #365 (comment)
The text was updated successfully, but these errors were encountered: