python3: parallelize quicktest

This commit is contained in:
Tim D. Smith 2016-10-03 22:54:03 -07:00
parent 6c2880dc6f
commit 5eb9f5922b

View file

@ -192,13 +192,15 @@ class Python3 < Formula
system "./configure", *args
system "make"
if build.with?("quicktest")
system "make", "quicktest", "TESTPYTHONOPTS=-s", "TESTOPTS=-j#{ENV.make_jobs} -w"
end
ENV.deparallelize # Installs must be serialized
# Tell Python not to install into /Applications (default for framework builds)
system "make", "install", "PYTHONAPPSDIR=#{prefix}"
# Demos and Tools
system "make", "frameworkinstallextras", "PYTHONAPPSDIR=#{pkgshare}"
system "make", "quicktest" if build.with? "quicktest"
ENV.deparallelize do
# Tell Python not to install into /Applications (default for framework builds)
system "make", "install", "PYTHONAPPSDIR=#{prefix}"
system "make", "frameworkinstallextras", "PYTHONAPPSDIR=#{pkgshare}"
end
# Any .app get a " 3" attached, so it does not conflict with python 2.x.
Dir.glob("#{prefix}/*.app") { |app| mv app, app.sub(/\.app$/, " 3.app") }