resty: rewrite shebang with `use_python_from_path`
Closes Homebrew/homebrew-core#119096 Closes #119740. Signed-off-by: Patrick Linnane <patrick@linnane.io> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
3ce3aa4b50
commit
0572ca5d67
|
@ -19,10 +19,7 @@ class Resty < Formula
|
|||
end
|
||||
|
||||
uses_from_macos "perl"
|
||||
|
||||
on_linux do
|
||||
depends_on "python@3.10"
|
||||
end
|
||||
uses_from_macos "python"
|
||||
|
||||
conflicts_with "nss", because: "both install `pp` binaries"
|
||||
|
||||
|
@ -46,7 +43,9 @@ class Resty < Formula
|
|||
bin.env_script_all_files(libexec/"bin", PERL5LIB: ENV["PERL5LIB"])
|
||||
|
||||
bin.install "pypp"
|
||||
rewrite_shebang detected_python_shebang, bin/"pypp" if OS.linux?
|
||||
if !OS.mac? || MacOS.version >= :monterey
|
||||
rewrite_shebang detected_python_shebang(use_python_from_path: true), bin/"pypp"
|
||||
end
|
||||
end
|
||||
|
||||
def caveats
|
||||
|
|
Loading…
Reference in New Issue