Comments (9)
Unfortunately I suspect this won't work, at least not with any poetry plugin that wants to upgrade Homebrew's Python environment: allowing these kinds of resolution changes would allow anything that gets brew install
ed to break other Homebrew-managed Python applications.
I believe there are two resolutions possible here:
- We could package this poetry plugin as a formula with the same Python dependency as
poetry
itself, which would drop it into the same environment. Then, you could dobrew install poetry-dynamic-version
to enable it. - You could put poetry into its own environment, which is (probably) how it wants to be used (I don't know poetry super well, but this is what their docs suggest). I think
brew install pipx; pipx install poetry; pipx inject poetry "poetry-dynamic-versioning[plugin]"
would suffice for that.
from homebrew-core.
I personally would prefer a way, that is managed by brew
, so that a brew upgrade
will also update poetry
and its plugins.
The second suggestion works for now, but feels wrong, as there is a poetry
package provided by brew
which I cannot use. :)
from homebrew-core.
You can make your own tap and maintain a package there.
from homebrew-core.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
from homebrew-core.
Encountering the same issue :(
from homebrew-core.
Encountering the same issue :(
Have you tried either of the resolutions suggested above? Relying with a "me too" comment on its own doesn't help us address the underlying problem.
Keep in mind: Homebrew does not distribute Python with the expectation that arbitrary third-party packages can be loaded into Homebrewed Python's environment. If this is a capability that you need, you must use pip, pipx, or pyenv, depending on the layer of abstraction you need. For poetry, pipx with dependency injection is probably the simplest option, and seems to be recommended by poetry's maintainers.
from homebrew-core.
I do not expect you to "solve it", but I think developers like to have an idea of how many users are encountering an issue and how problematic it is for them. That alone is worth a "me too" post. You're of course free to do whatever you want with that information. But last time I checked this issue was not closed.
And yes, refraining from installing poetry with homebrew sidesteps the problem.
from homebrew-core.
I was also experiencing this issue, in the end I just uninstalled poetry via brew and installed it outside of brew. Not worth the faff. Not a solution within brew unfortunately but it unblocked me from getting work done
https://python-poetry.org/docs/#installing-with-the-official-installer
from homebrew-core.
I think this is currently non-actionable on Homebrew's side. Our recommendations to users who need Poetry plugins are:
brew install pipx && pipx install poetry
and usepipx
's environment injection abilities to load plugins into Poetry's virtual environment (described above)- Do
python -m venv env && env/bin/python -m pip install poetry
if using a directly managed virtual environment is appropriate for your use case brew install pyenv
and thenpyenv
to install a non-Homebrew version of Python without PEP 668 restrictions, and thenpip install --user poetry
directly (if that's what you want)- Use Poetry's own installer (keeping in mind that Homebrew doesn't check the contents of this installer, and doesn't guarantee that it works correctly with the Homebrewed Python)
from homebrew-core.
Related Issues (20)
- Error: The bottle for popt has an invalid build provenance attestation. HOT 4
- Crash after trying include boost/geometry.hpp HOT 3
- Linker error with LLVM 18.1.8: std::exception_ptr::__from_native_exception_pointer(void*) HOT 6
- midnight-commander: depend on GNU diff, since BSD one doesn't have required options HOT 1
- [Formula: datalad] Argcomplete Dependency (py3.11)
- Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/<name>/Library/LaunchAgents/homebrew.mxcl.mariadb.plist` exited with 5. HOT 1
- Upgrade issue with git HOT 1
- Settings schema 'io.github.lxi-tools.lxi-gui' is not installed HOT 8
- Keg-only PostgreSQL is incompatible with extensions like PostGIS HOT 6
- glibtoolize is broken after reinstalling libtool HOT 5
- Homebrew MySQL `brew upgrade` broke mysql - MacOS Sonoma 14.5 HOT 39
- Branches for autobump PR's should be deleted if the PR is closed HOT 1
- Golang 1.22.6 has been released, but I can only update to version 1.22.5 using brew HOT 1
- Formula for `bitwarden-cli` is not being updated via autobump bot. HOT 3
- `mysql-client` 9.0 does not include `mysql_native_password` plugin HOT 11
- easy-rsa does not show real version, date, and git commit hash HOT 1
- Docker-compose conflict with docker-buildx HOT 10
- Formula/s/sevenzip.rb can be simplified, not an issue, just a suggestion HOT 1
- Golang 1.23.0 has been released, but I can only update to version 1.22.6 using brew HOT 2
- Watchman socket path too long HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-core.