File: README

package info (click to toggle)
libhmsbeagle 4.0.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,436 kB
  • sloc: xml: 133,356; cpp: 36,477; ansic: 5,842; java: 2,400; python: 643; sh: 338; makefile: 50
file content (28 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
This is a proof-of-concept of wrapping libhmsbeagle using SWIG to generate Python wrappers. This has been tested only on Linux; building the module can be done either by the shell script

bash ./build.sh

or by using python setuptools

python setup.py build_ext --inplace

You can then run a test, which is basically a 1:1 translation of hellobeagle:

python test.py

This prints out
-84.8523582328
Woof!

If you get a strange message like this:
Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    beagle_module = Extension("_beagle",sources=['beagle_wrap.c'],**pkgconfig('hmsbeagle-1'))
TypeError: __init__() keywords must be strings

it's probably because pkgconfig can't find hmsbeagle.

Simon Frost
Cambridge 2/2/12
sdf22 at cam dot ac dot uk