Skip to content

Commit

Permalink
Python3 3.2.3 + distribute 0.6.26
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Apr 12, 2012
1 parent eda2509 commit 351fe3d
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions Library/Formula/python3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,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 Python3 < Formula
url 'http://python.org/ftp/python/3.2.2/Python-3.2.2.tar.bz2'
homepage 'http://www.python.org/'
md5 '9d763097a13a59ff53428c9e4d098a05'
url 'http://python.org/ftp/python/3.2.3/Python-3.2.3.tar.bz2'
md5 'cea34079aeb2e21e7b60ee82a0ac286b'

depends_on 'pkg-config' => :build

Expand All @@ -38,12 +38,6 @@ def options
# Skip binaries so modules will load; skip lib because it is mostly Python files
skip_clean ['bin', 'lib']

def patches
# fix for recognizing gdbm 1.9.x databases
# patch is already upstream: http://hg.python.org/cpython/rev/7a41855b6196
DATA
end

# The Cellar location of site-packages
# This location is different for Framework builds
def site_packages
Expand Down Expand Up @@ -177,15 +171,3 @@ def scripts_folder
HOMEBREW_PREFIX+"share/python3"
end
end

__END__
diff --git a/Lib/dbm/__init__.py b/Lib/dbm/__init__.py
--- a/Lib/dbm/__init__.py
+++ b/Lib/dbm/__init__.py
@@ -166,7 +166,7 @@ def whichdb(filename):
return ""

# Check for GNU dbm
- if magic == 0x13579ace:
+ if magic in (0x13579ace, 0x13579acd, 0x13579acf):
return "dbm.gnu"

0 comments on commit 351fe3d

Please sign in to comment.