Additionally, fix it to compile against openssl-0.9.7i, the current pkgsrc version; due to its way of checking compatibility, py-m2crypto is extremely picky about constness. If this works with other versions too, just add them to the pattern. Changes since 0.12/0.11 ------------------------- - Patches from Artur Frysiak. Thanks Artur. = Allow using a passphrase callback in class SMIME. = Added method get0_signers to class PKCS7, which retrieves signers' certificates from a PKCS7 blob. = Added methods as_pem and save_pem to class X509. = Added file version.py. = Allow SSL.Context.load_verify_locations to accept both 'cafile' and 'capath'. - Fixed BIO.read() not reading until EOF. Thanks to Egil Muller for suggestion. - Honour 'mode' parameter in SSL.Connection.makefile. Thanks again to Egil Muller. - Roger Binns contributed epydoc-generated docs for M2Crypto. Thanks Roger. - Peter Teniz contributed patches to create X.509 requests and certificates. Thanks Peter. - Updated Medusa to 0.54. - Make various OpenSSL bignum functions (written long ago) available to Python.
61 lines
1.8 KiB
Text
61 lines
1.8 KiB
Text
$NetBSD: patch-aa,v 1.1 2006/01/14 23:07:26 wiz Exp $
|
|
|
|
--- setup.py.orig 2004-03-28 11:06:59.000000000 +0000
|
|
+++ setup.py
|
|
@@ -12,56 +12,6 @@ import os, shutil
|
|
from distutils.core import setup, Extension
|
|
from distutils.command import build_ext
|
|
|
|
-# This copy of swig_sources is from Python 2.2.
|
|
-
|
|
-def swig_sources (self, sources):
|
|
-
|
|
- """Walk the list of source files in 'sources', looking for SWIG
|
|
- interface (.i) files. Run SWIG on all that are found, and
|
|
- return a modified 'sources' list with SWIG source files replaced
|
|
- by the generated C (or C++) files.
|
|
- """
|
|
-
|
|
- new_sources = []
|
|
- swig_sources = []
|
|
- swig_targets = {}
|
|
-
|
|
- # XXX this drops generated C/C++ files into the source tree, which
|
|
- # is fine for developers who want to distribute the generated
|
|
- # source -- but there should be an option to put SWIG output in
|
|
- # the temp dir.
|
|
-
|
|
- if self.swig_cpp:
|
|
- target_ext = '.cpp'
|
|
- else:
|
|
- target_ext = '.c'
|
|
-
|
|
- for source in sources:
|
|
- (base, ext) = os.path.splitext(source)
|
|
- if ext == ".i": # SWIG interface file
|
|
- new_sources.append(base + target_ext)
|
|
- swig_sources.append(source)
|
|
- swig_targets[source] = new_sources[-1]
|
|
- else:
|
|
- new_sources.append(source)
|
|
-
|
|
- if not swig_sources:
|
|
- return new_sources
|
|
-
|
|
- swig = self.find_swig()
|
|
- swig_cmd = [swig, "-python", "-ISWIG"]
|
|
- if self.swig_cpp:
|
|
- swig_cmd.append("-c++")
|
|
-
|
|
- for source in swig_sources:
|
|
- target = swig_targets[source]
|
|
- self.announce("swigging %s to %s" % (source, target))
|
|
- self.spawn(swig_cmd + ["-o", target, source])
|
|
-
|
|
- return new_sources
|
|
-
|
|
-build_ext.build_ext.swig_sources = swig_sources
|
|
-
|
|
my_inc = os.path.join(os.getcwd(), 'SWIG')
|
|
|
|
if os.name == 'nt':
|