diff --git a/Formula/cxxtest.rb b/Formula/cxxtest.rb index 3cbb3519d6..0a547e0e1b 100644 --- a/Formula/cxxtest.rb +++ b/Formula/cxxtest.rb @@ -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/*"]