comparison python/pydc/README.txt @ 4:4c5019f00f5b

- python binding cleanup
author cslag
date Tue, 22 Mar 2016 00:55:15 +0100
parents 0cfcc391201f
children bf5625bb6f05
comparison
equal deleted inserted replaced
3:f5d4d5c2f750 4:4c5019f00f5b
1 dyncall python bindings 1 dyncall python bindings
2 (C) 2007 Daniel Adler. 2 (C) 2007 Daniel Adler.
3 2007 04. December 3 2007 04. December
4 4
5 INSTALLATION
6 ------------
7
8 1) make sure dyncall is built and libraries/headers are in include paths or
9 CFLAGS points to them, etc.
10
11 2) python setup.py install
12
13
5 API 14 API
15 ---
6 16
7 libhandle = load(libpath) 17 libhandle = load(libpath)
8 funcptr = find(libhandle, symbolname ) 18 funcptr = find(libhandle, symbolname )
9 call( funcptr,signature, ... ) 19 call( funcptr,signature, ... )
10 20
30 'p' ptr -> PyCObject encapsulating a void* 40 'p' ptr -> PyCObject encapsulating a void*
31 'f' float -> PyFloat (upcast to double) 41 'f' float -> PyFloat (upcast to double)
32 'd' double -> PyFloat 42 'd' double -> PyFloat
33 43
34 BUGS 44 BUGS
45 ----
35 46
36 * build on osx/ppc - link error i386 something... [MacPython 2.4] 47 * build on osx/ppc - link error i386 something... [MacPython 2.4]
37 48
38 solution: 49 solution:
39 installation of latest pytho for os x (MacPython 2.5) 50 installation of latest python for os x (MacPython 2.5)
40 51
41 build log: 52 build log:
42 53
43 python setup.py install 54 python setup.py install
44 running install 55 running install