Skip to content

Commit

Permalink
Merge pull request #201231 from Homebrew/prowler-venv-dsl
Browse files Browse the repository at this point in the history
prowler: use `virtualenv_install_with_resources`
  • Loading branch information
BrewTestBot authored Dec 15, 2024
2 parents 81edb8e + 5ddf2b5 commit 049d886
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Formula/p/prowler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Prowler < Formula
depends_on "cryptography"
depends_on "libyaml"
depends_on "numpy"
depends_on "[email protected]"
depends_on "[email protected]" # https://github.com/prowler-cloud/prowler/blob/master/pyproject.toml#L68

on_linux do
depends_on "patchelf" => :build
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 049d886

Please sign in to comment.