[PYTHON-CRYPTO] python2.4 support
Keith Jackson
krjackson at LBL.GOV
Thu Dec 2 22:33:58 CET 2004
I had a simple problem with building m2crypto with python2.4. The swig support in distutils has
been upgraded, and that causes errors when building. The good news is, the new swig support
works fine. I'm adding a patch that fixes setup.py to support python2.4.
--keith
---------------- patch -----------------------
*** setup.py Thu Dec 2 14:19:06 2004
--- setup.py.orig Thu Dec 2 14:18:04 2004
***************
*** 8,14 ****
_RCS_id = '$Id: setup.py,v 1.13 2004/03/28 11:30:01 ngps Exp $'
! import os, shutil, sys
from distutils.core import setup, Extension
from distutils.command import build_ext
--- 8,14 ----
_RCS_id = '$Id: setup.py,v 1.13 2004/03/28 11:30:01 ngps Exp $'
! import os, shutil
from distutils.core import setup, Extension
from distutils.command import build_ext
***************
*** 60,67 ****
return new_sources
! if sys.version_info < (2,4):
! build_ext.build_ext.swig_sources = swig_sources
my_inc = os.path.join(os.getcwd(), 'SWIG')
--- 60,66 ----
return new_sources
! build_ext.build_ext.swig_sources = swig_sources
my_inc = os.path.join(os.getcwd(), 'SWIG')
More information about the python-crypto
mailing list