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:
- Created a year ago
- Comments:11 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.This is added in version 1.2 here which is still in beta. You can install beta to use this feature