From eda250939cc6ce33a9b12b2fedf3ae9f86196295 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 11 Apr 2012 19:18:46 -0700 Subject: Python 2.7.3 + distribute 0.6.26 --- Library/Formula/python.rb | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'Library/Formula/python.rb') diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index f0d170599..30d6f3d99 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -9,14 +9,14 @@ def as_framework? end class Distribute < Formula - url 'http://pypi.python.org/packages/source/d/distribute/distribute-0.6.25.tar.gz' - md5 'a690874b9964d958a3200485eb827b1d' + url 'http://pypi.python.org/packages/source/d/distribute/distribute-0.6.26.tar.gz' + md5 '841f4262a70107f85260362f5def8206' end class Python < Formula homepage 'http://www.python.org/' - url 'http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2' - md5 'ba7b2f11ffdbf195ee0d111b9455a5bd' + url 'http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2' + md5 'c57477edd6d18bd9eeca2f21add73919' depends_on 'readline' => :optional # Prefer over OS X's libedit depends_on 'sqlite' => :optional # Prefer over OS X's older version @@ -30,12 +30,6 @@ class Python < Formula ] end - def patches - # Fix for recognizing gdbm 1.9.x databases; already upstream: - # http://hg.python.org/cpython/rev/14cafb8d1480 - DATA - end - # Skip binaries so modules will load; skip lib because it is mostly Python files skip_clean ['bin', 'lib'] @@ -182,15 +176,3 @@ class Python < Formula system "#{bin}/python -c 'from decimal import Decimal; print Decimal(4) / Decimal(2)'" end end - -__END__ -diff --git a/Lib/whichdb.py b/Lib/whichdb.py ---- a/Lib/whichdb.py -+++ b/Lib/whichdb.py -@@ -91,7 +91,7 @@ def whichdb(filename): - return "" - - # Check for GNU dbm -- if magic == 0x13579ace: -+ if magic in (0x13579ace, 0x13579acd, 0x13579acf): - return "gdbm" -- cgit v1.2.3