Files
ada-py-bind/test.sh
Raphaël AMIARD 57f74f02be Fix properties binding.
- Allow Byref and Byval binding, to properly bind composite types inside
composite types.

- Remove explicit Init_Fns vector, relying on generic package
  elaboration instead.

- Expand example
2019-05-22 11:47:45 +02:00

16 lines
390 B
Bash
Executable File

#!/bin/bash
echo "Building libraries"
gprclean -r -P test/test.gpr -XLIBRARY_TYPE=relocatable
gprbuild -p -P test/test.gpr -XLIBRARY_TYPE=relocatable
echo "Basename of the library should be the module name"
cp test/lib/libtest.so test/lib/test.so
echo
echo
echo "Run python example"
echo
export PYTHONPATH=$PWD/test/lib
ipython -i -c "import test; print test; p = test.Shape(); print p"