Problem building/using M2Crypto extension module

Ng Pheng Siong ngps at netmemetic.com
Thu Oct 2 21:20:17 EDT 2003


According to Carl Waldbieser <waldbie at attglobal.net>:
> There is a __m2crypto.pyd in my \Python23\Lib\site-packages\M2Crypto
> directory.  

cd there, import the DLL into the interpreter toplevel:

  $ ls -l __m2crypto.so
  -rwxr-xr-x  1 ngps  ngps  458146 Sep 28 20:59 __m2crypto.so*

  $ python
  Python 2.3 (#3, Sep 15 2003, 15:22:12) 
  [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import __m2crypto
  >>> 

Does it work? 

> Is there some way I can inspect the output files at each step of the build
> so as to detect an error in my process?  Also, I do not recall using pydef,
> and I am not sure what it is.  I beilieve that I used a tool called pexport
> to make the .def file for python.

Sorry, typo, I meant pyexport.

I've just put up 0.12 snapshot #1. There is a SWIG/Makefile.mw, which is
for use with mingw. Take a look and adjust paths (e.g., OpenSSL
include/library files, swig.exe) where necessary. Try it with "make -f
Makefile.mw". 


-- 
Ng Pheng Siong <ngps at netmemetic.com> 

http://firewall.rulemaker.net  -+- Manage Your Firewall Rulebase Changes
http://sandbox.rulemaker.net/ngps -+- Open Source Python Crypto & SSL




More information about the Python-list mailing list