Skip to content

Commit e8ea06e

Browse files
sbryngelsonclaude
authored andcommitted
homebrew: fix toolchain install without git metadata
1 parent fceeef5 commit e8ea06e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packaging/homebrew/mfc.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ def install
4040
# Match the version constraint from toolchain/pyproject.toml
4141
system venv/"bin/pip", "install", "--only-binary=:all:", "cantera>=3.1.0"
4242

43+
# MFC's toolchain uses VCS-derived versioning (via Hatch/hatch-vcs) and Homebrew builds from
44+
# GitHub release tarballs without a .git directory. Provide a fallback/pretend version so
45+
# metadata generation succeeds during pip install.
46+
ENV["SETUPTOOLS_SCM_PRETEND_VERSION"] = version.to_s
47+
ENV["SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MFC"] = version.to_s
48+
ENV["SETUPTOOLS_SCM_PRETEND_VERSION_FOR_mfc"] = version.to_s
49+
4350
# Install MFC Python package and dependencies into venv
4451
# Use editable install (-e) to avoid RECORD file issues when venv is symlinked at runtime
4552
# Dependencies will use pre-built wheels from PyPI

0 commit comments

Comments
 (0)