Skip to content

Commit 483ecc8

Browse files
authored
{Packaging} Remove without_pip in homebrew formula (#30201)
1 parent fc7573e commit 483ecc8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/release/homebrew/docker/formula_generate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def update_formula() -> str:
134134

135135
# update python version
136136
text = re.sub('depends_on "python@.*"', f'depends_on "python@{PYTHON_VERSION}"', text, 1)
137-
text = re.sub(r'virtualenv_create\(libexec, "python.*"', f'virtualenv_create(libexec, "python{PYTHON_VERSION}"', text, 1) # pylint: disable=line-too-long
137+
venv_str = f'venv = virtualenv_create(libexec, "python{PYTHON_VERSION}", system_site_packages: false)'
138+
text = re.sub(r'venv = virtualenv_create.*', venv_str, text, 1)
138139

139140
# update url and sha256 of azure-cli
140141
text = re.sub('url ".*"', 'url "{}"'.format(HOMEBREW_UPSTREAM_URL), text, 1)

0 commit comments

Comments
 (0)