Python-stackless

From Bashlinux
Revision as of 09:37, 17 January 2011 by Manpaz (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Python Stackless

Build

  1. The following dependencies must be installed in order to meet the requirements to build Python Stackless, or even the standard Python.
  2. Debian
 libdb4.6-dev
 libssl-dev
 libbz2-dev
 libgdbm-dev 
 libreadline5-dev 
 tk-dev
 libsqlite3-dev
 libncurses-dev
 


  1. Apply the following patch to avoid conflicts with some old Unix modules
  --- Python-2.6-orig/setup.py	2008-09-30 02:15:45.000000000 +0200
 +++ Python-2.6/setup.py	2008-11-04 17:01:04.000000000 +0100
 @@ -987,7 +987,7 @@
          # the more recent berkeleydb's db.h file first in the include path
          # when attempting to compile and it will fail.
          f = "/usr/include/db.h"
 -        if os.path.exists(f) and not db_incs:
 +        if False and os.path.exists(f) and not db_incs:
              data = open(f).read()
              m = re.search(r"#s*define\s+HASHVERSION\s+2\s*", data)
              if m is not None:
 @@ -1004,7 +1004,8 @@
              else:
                  missing.append('bsddb185')
          else:
 -            missing.append('bsddb185')
 +			pass
 +#             missing.append('bsddb185')
  
          # The standard Unix dbm module:
          if platform not in ['cygwin']:
 @@ -1324,7 +1325,8 @@
              # SunOS specific modules
              exts.append( Extension('sunaudiodev', ['sunaudiodev.c']) )
          else:
 -            missing.append('sunaudiodev')
 +			pass
 +#             missing.append('sunaudiodev')
  
          if platform == 'darwin' and ("--disable-toolbox-glue" not in
                  sysconfig.get_config_var("CONFIG_ARGS")):