python2: Update to 2.7.7

This commit is contained in:
Alexpux
2014-06-04 11:03:57 +04:00
parent c0ec151f75
commit 37dbaeadf6
18 changed files with 313 additions and 311 deletions

28
python2/0070-dbm.patch Normal file
View File

@@ -0,0 +1,28 @@
diff -Naur a/setup.py b/setup.py
--- a/setup.py 2014-06-04 10:16:38.581000000 +0400
+++ b/setup.py 2014-06-04 10:16:48.081400000 +0400
@@ -1231,7 +1231,7 @@
dbm_order = ['gdbm']
# The standard Unix dbm module:
- if host_platform not in ['cygwin']:
+ if host_platform not in ['win32']:
config_args = [arg.strip("'")
for arg in sysconfig.get_config_var("CONFIG_ARGS").split()]
dbm_args = [arg for arg in config_args
@@ -1286,6 +1286,15 @@
],
libraries = gdbm_libs)
break
+ if find_file("ndbm.h", inc_dirs, []) is not None:
+ print("building dbm using gdbm")
+ dbmext = Extension(
+ 'dbm', ['dbmmodule.c'],
+ define_macros=[
+ ('HAVE_NDBM_H', None),
+ ],
+ libraries = gdbm_libs)
+ break
elif cand == "bdb":
if db_incs is not None:
print "building dbm using bdb"