Skip to content

Commit

Permalink
Merge pull request #201263 from Homebrew/sgr-venv
Browse files Browse the repository at this point in the history
sgr: use `virtualenv_install_with_resources`
  • Loading branch information
BrewTestBot authored Dec 15, 2024
2 parents e5b94d3 + 1cf59c2 commit aa9a837
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Formula/s/sgr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,7 @@ def install
# TODO: remove with newer `pglast` (4.4+)
ENV.append_path "PYTHONPATH", Formula["cython"].opt_libexec/Language::Python.site_packages("python3.13")

venv = virtualenv_create(libexec, "python3.13")
venv.pip_install resource("setuptools")
venv.pip_install resources.reject { |r| r.name == "setuptools" }
venv.pip_install_and_link buildpath
virtualenv_install_with_resources start_with: "setuptools"

generate_completions_from_executable(bin/"sgr", shells: [:fish, :zsh], shell_parameter_format: :click)
end
Expand Down

0 comments on commit aa9a837

Please sign in to comment.