Skip to content

Conversation

bboynton97
Copy link
Contributor

This PR introduces a github action that generates a homebrew formula to make installing agentstack possible via brew.

ellie and others added 2 commits November 9, 2024 21:10
I had some issues with my local python env, so built a homebrew formula.

In general, homebrew allows installation of packages from GitHub with
the following format

```
brew install <username>/<repo>
```

However, this requires that we have a repo named
github.com/agentops-ai/homebrew-agentstack.

If we want to keep it all in the same repo, users can run the following
instead

```
brew tap agentops-ai/agentstack https://github.com/agentops-ai/agentstack
brew install agentops-ai/agentstack/agentstack
```

In order for this to work, we need to ensure that every dep from the
lockfile is codified in the formula, and that the url + shasum are kept
up to date for each release.

In the formula, you'll see "url" and "shasum". Those will need updating
per release. You'll also need to change the list of resources if
anything changes with your deps.

This is pretty annoying, but luckily there's some tooling!

I used "poet" to generate a bunch of this, though it needed some manual
tweaking - https://github.com/tdsmith/homebrew-pypi-poet

Also, note this line in the install function

```
ENV.append_to_cflags '-Wno-incompatible-function-pointer-types' if DevelopmentTools.clang_build_version >= 1500

```

There's currently an issue with the later versions of Xcode, while
building the YAML package used here

Upstream ref: https://sourceforge.net/p/ruamel-yaml-clib/tickets/32/
@bboynton97 bboynton97 merged commit 2a50fa4 into main Nov 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants