File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11class Peru < Formula
2+ include Language ::Python ::Shebang
23 include Language ::Python ::Virtualenv
34
45 desc "Dependency retriever for version control and archives"
56 homepage "https://github.com/buildinspace/peru"
67 url "https://files.pythonhosted.org/packages/46/93/97b31e2052b4308cbc413d85b6b6b08a3beeeac81996b070723418a0c24e/peru-1.3.5.tar.gz"
78 sha256 "2cc1a0d09c5d4fc28dda5c4bf87b4110ee2107e9ce7fb6a38f8d6f60a91af745"
89 license "MIT"
10+ head "https://github.com/buildinspace/peru.git" , branch : "master"
911
1012 bottle do
1113 sha256 cellar : :any , arm64_tahoe : "5a7e7669fb8cdf7e4bf5175f9d01be1d0a9d75aa693c6161c2b27145a8c62059"
@@ -25,12 +27,11 @@ class Peru < Formula
2527 end
2628
2729 def install
28- # Fix plugins (executed like an executable) looking for Python outside the virtualenv
29- Dir [ "peru/resources/plugins/**/*.py" ] . each do |f |
30- inreplace f , "#! /usr/bin/env python3" , "#!#{ libexec } /bin/python3.14"
31- end
30+ venv = virtualenv_install_with_resources
3231
33- virtualenv_install_with_resources
32+ # Fix executable plugins looking for Python outside the virtualenv
33+ rw_info = python_shebang_rewrite_info ( venv . root /"bin/python" )
34+ rewrite_shebang rw_info , *venv . site_packages . glob ( "peru/resources/plugins/**/*.py" )
3435 end
3536
3637 test do
You can’t perform that action at this time.
0 commit comments