On 9/7/2010 11:11 PM, Kim Hansen wrote:
> Dear Francesc
>
> 2010/9/7 Francesc Alted fal...@pytables.org <mailto:fal...@pytables.org>
>
>
>     PyTables uses HDF5 machinery for hooking LZO calls, so I had no need
>     to wrap
>     it for Python.  But, by using Cython [1], wrapping the next call
>     (the one that
>     I'm using in PyTables, see the complete sources in src/H5Zlzo.c)):
>
>     status = lzo1x_decompress_safe(*buf, nbytes, outbuf, &out_len, NULL);
>
>     and linking against the above binary libraries would be pretty simple.
>
>     [1] http://www.cython.org/
>
>     Hope this helps,
>
> Thanks for the pointer. It seems more complicated than I had thought. If
> at all possible I would like to avoid installing Cython and a
> C-compiler. I think I will pursue some other possibilities first and use
> this as a last resort if anything else fails.
> Reagrds,
> Kim
>


How about using ctypes <http://docs.python.org/library/ctypes.html> to 
wrap lzo2.dll? This should be relatively simple. The dll is part of the 
PyTables installers at 
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#pytables>.

--
Christoph

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to