Python 2.7.3 + distribute 0.6.26

master
Adam Vandenberg 2012-04-11 19:18:46 -07:00
parent 36db28a1ce
commit 6796922da4
1 changed files with 4 additions and 22 deletions

View File

@ -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"