Replies: 1 comment 1 reply
-
|
You should not mix Poetry (and its plugins) with the environment your project is installed into. Poetry will happily update the versions to satisfy your project's needs, which will include breaking itself. If you need to add additional packages to Poetry's environment, As for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to install poetry-grpc-plugin on my M1 Mac. Dealing with the grpcio dependency on the M1 Mac is fraught with drama. Basically you have to use third-party-distributed pre-compiled binaries right now.
For my regular project dependencies, Poetry lets me do this crazy dance like this:
... However ... if I install the grpc plugin, even using a virtualenv that has already been initialized by poetry (
poetry install --with dev), it looks like it decides to grab its own version of grpcio and then of course fails to build on my mac (for various compile errors that are the topic of numerous grpcio bugs out there).I'm doing:
As hinted above, I've tried this both from my global poetry install as well as a poetry that has been installed into my local virtualenv. (I've configured poetry to use in-directory venvs for this.)
Is there an easy way to install this plugin but force it to use my already-installed dependencies? The 1.50.0 version that I've installed locally meets the plugin's requirements from
pyproject.toml; however, it does not meet the pinned versions inpoetry.lock.(Is poetry.lock even used when installing a plugin in this manner?)
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions