You've already forked ada-py-bind
mirror of
https://github.com/AdaCore/ada-py-bind.git
synced 2026-02-12 13:05:06 -08:00
- 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
16 lines
390 B
Bash
Executable File
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"
|