Skip to content

Commit ebbfcb2

Browse files
authored
Add versioning environment variables for mfc.sh
Set environment variables for versioning in mfc.sh.
1 parent b87268d commit ebbfcb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Formula/mfc.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ def install
7878
# Now build MFC with pre-configured venv
7979
# Set VIRTUAL_ENV so mfc.sh uses existing venv instead of creating new one
8080
ENV["VIRTUAL_ENV"] = venv
81-
81+
82+
# Also set pretend-version env vars for mfc.sh in case it tries to reinstall toolchain
83+
ENV["SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MFC"] = version.to_s
84+
ENV["SETUPTOOLS_SCM_PRETEND_VERSION_FOR_mfc"] = version.to_s
85+
ENV["SETUPTOOLS_SCM_PRETEND_VERSION"] = version.to_s
86+
8287
# Build MFC using pre-configured venv
8388
# Must run from buildpath (MFC root directory) where toolchain/ exists
8489
Dir.chdir(buildpath) do

0 commit comments

Comments
 (0)