Skip to content

fix: add explicit setuptools package discovery for Homebrew install#5

Open
RobertBolender wants to merge 2 commits intoDUBSOpenHub:mainfrom
RobertBolender:fix/homebrew-package-discovery
Open

fix: add explicit setuptools package discovery for Homebrew install#5
RobertBolender wants to merge 2 commits intoDUBSOpenHub:mainfrom
RobertBolender:fix/homebrew-package-discovery

Conversation

@RobertBolender
Copy link
Copy Markdown

@RobertBolender RobertBolender commented Apr 23, 2026

Problem

brew install agent-pulse fails with:

error: Multiple top-level packages discovered in a flat-layout: ['site', 'assets', 'Formula', 'experimental']
Getting requirements to build wheel: finished with status 'error'

Setuptools' automatic package discovery finds non-Python directories in the repo root and refuses to build.

Fix

Add an explicit [tool.setuptools] section to pyproject.toml declaring agent_pulse as the sole module:

[tool.setuptools]
py-modules = ["agent_pulse"]
packages = []

This tells setuptools exactly what to include, skipping auto-discovery entirely.

Testing

  • Reproduced the original brew install failure locally
  • Applied the fix, confirmed brew install succeeds (🍺)
  • brew test agent-pulse passes (--help and --export assertions)
  • pip install . in a fresh venv also succeeds

Setuptools' automatic package discovery finds non-Python directories
(site/, assets/, Formula/, experimental/) in the repo root and refuses
to build, causing 'Getting requirements to build wheel' errors during
`brew install agent-pulse`.

Explicitly declare agent_pulse as the sole py-module so setuptools
skips auto-discovery.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@RobertBolender RobertBolender marked this pull request as draft April 23, 2026 17:05
CSS_PATH fails when installed as a py_module since the .tcss file
isn't copied to site-packages. Read the CSS inline via Path(__file__)
with a graceful fallback when the file is absent.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@RobertBolender RobertBolender marked this pull request as ready for review April 23, 2026 17:26
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.

Failed to build when getting requirements to build wheel

1 participant