Skip to content

[Feature] Homebrew installation support #25

Description

@tillig

Problem
On Mac, pip install doesn't work because Python avoids modification of the global set of packages. It specifically recommends using brew install to manage the package via Homebrew.

Proposed solution
Add a local deploy/homebrew/auto-memory.rb file. It would look something like this:

class AutoMemory < Formula
  include Language::Python::Virtualenv

  desc "Session memory recall for AI coding agents"
  homepage "https://github.com/dezgit2025/auto-memory"
  url "https://github.com/dezgit2025/auto-memory.git",
      tag:      "v0.2.0",
      revision: "" # fill after tagging
  license "MIT"

  depends_on "python@3"

  def install
    virtualenv_create(libexec, "python3")
    system libexec/"bin/pip", "install", *std_pip_args(prefix: libexec), "."
    bin.install_symlink libexec/"bin/session-recall"
  end

  test do
    assert_match "usage", shell_output("#{bin}/session-recall --help", 2)
  end
end

Update install instructions to be brew tap dezgit2025/auto-memory && brew install auto-memory for Mac.

Alternatives considered

  • Instructions could be updated to use pipx instead of pip.
  • Submit an official Homebrew formula to their repo instead of local hosting.

Additional context

It would be good to get the latest updates released to PyPI - none of the pip install or pipx install works right now on any of the latest code (#18).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions