From 5ddf2b52d03e896609a661a665bdf3eef7c0411b Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sat, 14 Dec 2024 22:44:01 -0500 Subject: [PATCH] prowler: use `virtualenv_install_with_resources` --- Formula/p/prowler.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Formula/p/prowler.rb b/Formula/p/prowler.rb index f6f0a24f0a974..a5516e4e9730e 100644 --- a/Formula/p/prowler.rb +++ b/Formula/p/prowler.rb @@ -24,7 +24,7 @@ class Prowler < Formula depends_on "cryptography" depends_on "libyaml" depends_on "numpy" - depends_on "python@3.12" + depends_on "python@3.12" # https://github.com/prowler-cloud/prowler/blob/master/pyproject.toml#L68 on_linux do depends_on "patchelf" => :build @@ -731,15 +731,9 @@ class Prowler < Formula end def install - ENV["PIP_USE_PEP517"] = "1" - # Multiple resources require `setuptools`, so it must be installed first - skipped = %w[plotly setuptools] - venv = virtualenv_create(libexec, "python3.12") - venv.pip_install resource("setuptools") - venv.pip_install resources.reject { |r| skipped.include? r.name } + venv = virtualenv_install_with_resources without: "plotly", start_with: "setuptools" venv.pip_install resource("plotly"), build_isolation: false - venv.pip_install_and_link buildpath end test do