aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 8b43709d2..edd30fdbe 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -42,11 +42,7 @@ class Python3 < Formula
depends_on 'gdbm' => :optional
depends_on :x11 # tk.h includes X11/Xlib.h and X11/X.h
- def options
- [
- ["--quicktest", "Run `make quicktest` after build. Takes some minutes."]
- ]
- end
+ option 'quicktest', 'Run `make quicktest` after the build'
# Skip binaries so modules will load; skip lib because it is mostly Python files
skip_clean ['bin', 'lib']
@@ -94,7 +90,7 @@ class Python3 < Formula
ENV.deparallelize # Installs must be serialized
# Tell Python not to install into /Applications (default for framework builds)
system "make", "install", "PYTHONAPPSDIR=#{prefix}"
- system "make", "quicktest" if ARGV.include? "--quicktest"
+ system "make", "quicktest" if build.include? "quicktest"
# Any .app get a " 3" attached, so it does not conflict with python 2.x.
Dir.glob(prefix/"*.app").each do |app|