aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDavid Christenson2014-10-08 12:23:40 -0600
committerTim D. Smith2014-10-08 13:41:36 -0700
commitfc8849ab1293460814ae4e82a43b89dc7cf689c3 (patch)
tree295ea86e308ab9e81a1364afc5d0a038d5d0ccb9 /Library/Formula
parentf41464c153bbd52b21b4a24257ffd41525b28689 (diff)
downloadhomebrew-fc8849ab1293460814ae4e82a43b89dc7cf689c3.tar.bz2
python3 3.4.2
Update to latest stable release, change single quotes to double.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/python3.rb57
1 files changed, 28 insertions, 29 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index f4f7c950a..137a40fc1 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -1,10 +1,9 @@
-require 'formula'
+require "formula"
class Python3 < Formula
- homepage 'https://www.python.org/'
- url 'https://python.org/ftp/python/3.4.1/Python-3.4.1.tgz'
- sha1 'e8c1bd575a6ccc2a75f79d9d094a6a29d3802f5d'
- revision 1
+ homepage "https://www.python.org/"
+ url "https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tar.xz"
+ sha1 "0727d8a8498733baabe6f51632b9bab0cbaa9ada"
bottle do
revision 1
@@ -13,27 +12,27 @@ class Python3 < Formula
sha1 "ff356ba3edb96acde53fe5ce296ed1bbd856cf62" => :lion
end
- VER='3.4' # The <major>.<minor> is used so often.
+ VER="3.4" # The <major>.<minor> is used so often.
- head 'http://hg.python.org/cpython', :using => :hg, :branch => VER
+ head "http://hg.python.org/cpython", :using => :hg, :branch => VER
option :universal
- option 'quicktest', 'Run `make quicktest` after the build'
- option 'with-brewed-tk', "Use Homebrew's Tk (has optional Cocoa and threads support)"
-
- depends_on 'pkg-config' => :build
- depends_on 'readline' => :recommended
- depends_on 'sqlite' => :recommended
- depends_on 'gdbm' => :recommended
- depends_on 'openssl'
- depends_on 'xz' => :recommended # for the lzma module added in 3.3
- depends_on 'homebrew/dupes/tcl-tk' if build.with? 'brewed-tk'
+ option "quicktest", "Run `make quicktest` after the build"
+ option "with-brewed-tk", "Use Homebrew's Tk (has optional Cocoa and threads support)"
+
+ depends_on "pkg-config" => :build
+ depends_on "readline" => :recommended
+ depends_on "sqlite" => :recommended
+ depends_on "gdbm" => :recommended
+ depends_on "openssl"
+ depends_on "xz" => :recommended # for the lzma module added in 3.3
+ depends_on "homebrew/dupes/tcl-tk" if build.with? "brewed-tk"
depends_on :x11 if build.with? "brewed-tk" and Tab.for_name("tcl-tk").with? "x11"
skip_clean "bin/pip3", "bin/pip-#{VER}"
skip_clean "bin/easy_install3", "bin/easy_install-#{VER}"
- patch :DATA if build.with? 'brewed-tk'
+ patch :DATA if build.with? "brewed-tk"
def site_packages_cellar
prefix/"Frameworks/Python.framework/Versions/#{VER}/lib/python#{VER}/site-packages"
@@ -66,8 +65,8 @@ class Python3 < Formula
def install
# Unset these so that installing pip and setuptools puts them where we want
# and not into some other Python the user has installed.
- ENV['PYTHONHOME'] = nil
- ENV['PYTHONPATH'] = nil
+ ENV["PYTHONHOME"] = nil
+ ENV["PYTHONPATH"] = nil
args = %W[
--prefix=#{prefix}
@@ -77,7 +76,7 @@ class Python3 < Formula
--enable-framework=#{frameworks}
]
- args << '--without-gcc' if ENV.compiler == :clang
+ args << "--without-gcc" if ENV.compiler == :clang
if superenv?
distutils_fix_superenv(args)
@@ -91,7 +90,7 @@ class Python3 < Formula
end
# Allow sqlite3 module to load extensions: http://docs.python.org/library/sqlite3.html#f1
- inreplace("setup.py", 'sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1"))', 'pass') if build.with? 'sqlite'
+ inreplace("setup.py", 'sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1"))', 'pass') if build.with? "sqlite"
# Allow python modules to use ctypes.find_library to find homebrew's stuff
# even if homebrew is not a /usr/local/lib. Try this with:
@@ -101,10 +100,10 @@ class Python3 < Formula
f.gsub! 'DEFAULT_FRAMEWORK_FALLBACK = [', "DEFAULT_FRAMEWORK_FALLBACK = [ '#{HOMEBREW_PREFIX}/Frameworks',"
end
- if build.with? 'brewed-tk'
+ if build.with? "brewed-tk"
tcl_tk = Formula["tcl-tk"].opt_prefix
- ENV.append 'CPPFLAGS', "-I#{tcl_tk}/include"
- ENV.append 'LDFLAGS', "-L#{tcl_tk}/lib"
+ ENV.append "CPPFLAGS", "-I#{tcl_tk}/include"
+ ENV.append "LDFLAGS", "-L#{tcl_tk}/lib"
end
system "./configure", *args
@@ -180,7 +179,7 @@ class Python3 < Formula
cflags += " -isysroot #{MacOS.sdk_path}"
ldflags += " -isysroot #{MacOS.sdk_path}"
args << "CPPFLAGS=-I#{MacOS.sdk_path}/usr/include" # find zlib
- if build.without? 'brewed-tk'
+ if build.without? "brewed-tk"
cflags += " -I#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers"
end
end
@@ -200,7 +199,7 @@ class Python3 < Formula
# the needed includes with "-I" here to avoid this err:
# building dbm using ndbm
# error: /usr/include/zlib.h: No such file or directory
- ENV.append 'CPPFLAGS', "-I#{MacOS.sdk_path}/usr/include" unless MacOS::CLT.installed?
+ ENV.append "CPPFLAGS", "-I#{MacOS.sdk_path}/usr/include" unless MacOS::CLT.installed?
# Don't use optimizations other than "-Os" here, because Python's distutils
# remembers (hint: `python3-config --cflags`) and reuses them for C
@@ -213,8 +212,8 @@ class Python3 < Formula
ENV.enable_warnings
if ENV.compiler == :clang
# http://docs.python.org/devguide/setup.html#id8 suggests to disable some Warnings.
- ENV.append_to_cflags '-Wno-unused-value'
- ENV.append_to_cflags '-Wno-empty-body'
+ ENV.append_to_cflags "-Wno-unused-value"
+ ENV.append_to_cflags "-Wno-empty-body"
end
end