File: runme

package info (click to toggle)
python-numpy 1%3A1.12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,732 kB
  • ctags: 19,262
  • sloc: ansic: 146,995; python: 98,088; cpp: 1,112; makefile: 425; f90: 307; sh: 173; fortran: 169; perl: 58
file content (18 lines) | stat: -rwxr-xr-x 451 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

f2py2e='python ../../f2py2e.py'
PYINC=`$f2py2e -pyinc`
$f2py2e foobar-smart.pyf --short-latex --overwrite-makefile -makefile foo.f bar.f
gmake -f Makefile-foobar
#gcc -O3 -I$PYINC -I$PYINC/Numeric -shared -o foobarmodule.so foobarmodule.c foo.f bar.f
python -c '
import foobar
print foobar.__doc__
print foobar.bar(2,3)
from Numeric import *
a=array(3)
print a,foobar.foo(a),a
print foobar.foo.__doc__
print foobar.bar.__doc__
print "ok"
'