cxxtest: move to Python 3
This commit is contained in:
parent
85bf73b268
commit
7f83dfaa79
1 changed files with 5 additions and 5 deletions
|
@ -16,17 +16,17 @@ class Cxxtest < Formula
|
|||
sha256 "de1e98e94198507c65ecb17ae240b995ae8f03dadeafbde27bb704df2e10737c" => :mountain_lion
|
||||
end
|
||||
|
||||
depends_on "python@2"
|
||||
depends_on "python"
|
||||
|
||||
def install
|
||||
ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
|
||||
ENV.prepend_create_path "PYTHONPATH", lib+"python2.7/site-packages"
|
||||
xy = Language::Python.major_minor_version "python3"
|
||||
ENV.prepend_create_path "PYTHONPATH", lib/"python#{xy}/site-packages"
|
||||
|
||||
cd "./python" do
|
||||
system "python", *Language::Python.setup_install_args(prefix)
|
||||
system "python3", *Language::Python.setup_install_args(prefix)
|
||||
end
|
||||
|
||||
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
|
||||
include.install "cxxtest"
|
||||
doc.install Dir["doc/*"]
|
||||
|
|
Loading…
Reference in a new issue