Skip to content

Commit

Permalink
{Packaging} Install pip in Homebrew virtual env (#27186)
Browse files Browse the repository at this point in the history
  • Loading branch information
bebound authored Aug 24, 2023
1 parent 92dff9a commit f9c3532
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/release/homebrew/docker/formula_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ def update_formula() -> str:
upstream_sha = compute_sha256(HOMEBREW_UPSTREAM_URL)
text = re.sub('sha256 ".*"', 'sha256 "{}"'.format(upstream_sha), text, 1)
text = re.sub('.*revision.*\n', '', text, 1) # remove revision for previous version if exists

# include pip when creating venv, see https://github.com/Homebrew/brew/pull/15792
# this can be removed after Homebrew merges our PR
text = re.sub('system_site_packages: false', 'system_site_packages: false, without_pip: false', text, 1)

pack = None
packs_to_remove = set()
lines = text.split('\n')
Expand Down

0 comments on commit f9c3532

Please sign in to comment.