Skip to content

Commit

Permalink
removed references to brew lockfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiden2244 committed Mar 4, 2025
1 parent a6da02a commit 14ac2d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
4 changes: 0 additions & 4 deletions setup/mac/binary_distribution/install_prereqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ if [[ "${with_update}" -eq 1 ]]; then
brew update || (sleep 30; brew update)
fi

# Do not genereate a brew lockfile. This behavior was previously implemented
# with the now deprecated '--no-lock' flag. This env variable allows
# for the behavior to be consistent without using the flag.
export HOMEBREW_BUNDLE_NO_LOCK=1
brew bundle --file="${BASH_SOURCE%/*}/Brewfile"

if ! command -v pip3.12 &>/dev/null; then
Expand Down
4 changes: 0 additions & 4 deletions setup/mac/source_distribution/install_prereqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,4 @@ if ! command -v brew &>/dev/null; then
exit 4
fi

# Do not genereate a brew lockfile. This behavior was previously implemented
# with the now deprecated '--no-lock' flag. This env variable allows
# for the behavior to be consistent without using the flag.
export HOMEBREW_BUNDLE_NO_LOCK=1
brew bundle --file="${BASH_SOURCE%/*}/Brewfile"
7 changes: 2 additions & 5 deletions tools/wheel/wheel_builder/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@ def _provision(python_targets):
Prepares wheel build environment.
"""
packages_path = os.path.join(resource_root, 'image', 'packages-macos')

env=['HOMEBREW_BUNDLE_NO_LOCK'] = '1'

command = ['brew','bundle',f'--file={packages_path}',]
subprocess.check_call(command, env=env)
command = ['brew', 'bundle', f'--file={packages_path}',]
subprocess.check_call(command)

for t in python_targets:
subprocess.check_call(['brew', 'install', f'python@{t.version}'])
Expand Down

0 comments on commit 14ac2d4

Please sign in to comment.