python2.4 support

Keith Jackson <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <LISTSERV%[email protected]>
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')
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.