Add python3 package
This commit is contained in:
27
python3/3.3-dbm.patch
Normal file
27
python3/3.3-dbm.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
--- Python-3.3.2-orig/setup.py 2013-05-15 20:33:00.000000000 +0400
|
||||
+++ Python-3.3.2/setup.py 2013-08-01 23:45:32.806640600 +0400
|
||||
@@ -1137,7 +1137,7 @@
|
||||
dbm_setup_debug = False # verbose debug prints from this script?
|
||||
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
|
||||
@@ -1192,6 +1192,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:
|
||||
if dbm_setup_debug: print("building dbm using bdb")
|
||||
Reference in New Issue
Block a user