-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
Speed up Homebrew installation by shipping a Bottle #102
Comments
I think the answer is Bottles: https://docs.brew.sh/Bottles |
I ran this on my Mac laptop: brew uninstall llm
brew install --build-bottle llm Then after that finished (it took ages): cd /tmp
mkdir bottles
cd bottles
brew bottle llm Here's the output from that command:
And it created a 5.9MB file:
When I extracted that I got a
Which included this file:
Suggesting that the binary used by Pydantic is bundled that way. |
I uploaded that bottle file here: https://static.simonwillison.net/static/2023/llm--0.5.arm64_ventura.bottle.1.tar.gz |
Wow installing that is a lot faster: time brew install llm--0.5.arm64_ventura.bottle.1.tar.gz
|
I don't yet know how to modify the https://github.com/simonw/homebrew-llm/blob/main/Formula/llm.rb file such that running I also don't know how to use GitHub Actions to automate the process of compiling and publishing that bottle. I'm worried that might be blocked by the fact that GitHub Actions macOS runners are only Intel, not Apple Silicon. |
No need to do this any more - I got it accepted into Homebrew core: |
Originally posted by @simonw in #101 (comment)
The text was updated successfully, but these errors were encountered: