# Au debut il n'y a que 
# prova.cc
# prova.h
#
#
#Ces deux fichier forment une libraries que nous voulons exporter dans python
#
#Il faut creer prova.i.
#prova.i est deja pret. Il est notre example.
#
#---- D'abort on donne la commande pour utiliser notre distribution qui a deja swig ..
#
source /scisoft/ESRF_sw/linux_i386/set_environment

#----------- On wrappe tout
#
swig -c++ -python interpola.i

#----- maintenant il ne reste plu qu'a compiler avec setup.py
#  PRIMA BISOGNA SPOSTARE MANUALMENTE
#  ALCUNE RIGHE DI INIZIALIZZAZIONE DEI RISULTATI CHE 
# VENGONO MESSE DA SWIG ALL INIZIO DELLE ROUTINES

python setup.py build_ext -DSWIG_COBJECT_TYPES

#
#------------------------------------------------------------
#
#maintenant setup.py a cree -provamodule.so dans build....
#
#Le fichier prova.py a ete cree par swig.
#On utilise la librarie comme ca
#
#python
#>>import prova
#
#
#Ou alors on peut executer
python test.py
#

