question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow `poetry add` to force build dependencies from source

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

Can we have an option in poetry add to build a dependency from source instead of just downloading the existing package for the platform? I am talking something equivalent to pip3 install --no-binary :all: <package> --ignore-installed.

Current work-around is to use poetry run pip3 install .... and then do poetry add --lock to update the lock file. It will be good to have a flag in add to do this easily.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
abncommented, May 14, 2022

@pmav99 while still not project specific, I suspect #5609 should help in your case. As an interim measure you could commit your poetry.toml along with your project to allow for your users to make use of this.

poetry config --local installer.no-binary shapely,pygeos
0reactions
ajatkjcommented, Jul 25, 2022
```shell
poetry config --local installer.no-binary

@abn Hi abn, trying to implement this command with grpcio as it can’t build on Mac M1 with the binary, but am getting the error Setting installer.no-binary does not exist. Have tried adding it manually to my config.toml under the Library/Application Support, but then it throws the error ‘no-binary’ was unexpected - can you please help me understand how this flag can be used?

This is added in version 1.2 here which is still in beta. You can install beta to use this feature

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commands | Documentation | Poetry - Python dependency ...
(multiple values allowed); --optional : Add as an optional dependency. ... The build command builds the source and wheels archives. poetry build.
Read more >
Poetry - force install when versions are incompatible?
Poetry will declare that the dependencies versions can't be resolved and refuse to install anything. Is there a way to force poetry to...
Read more >
Dependency Management With Python Poetry
A dependency manager like Python Poetry helps you specify, install, and resolve external packages in your projects.
Read more >
Poetry a smart way of packaging and dependency ... - LinkedIn
"poetry add" command install required packages to your project and installs them. There are two types of package dependency get manage one is ......
Read more >
Configure a Poetry environment | PyCharm Documentation
Project dependencies are recorded in the pyproject.toml file that specifies required packages, scripts, plugins, and URLs. See the pyproject reference for more ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found