Make spot.py a python package instead of a module

* python/spot.py, python/spot_impl.i: Rename as...
* python/spot/__init__.py, python/spot/impl.i: ... these.
* python/Makefile.am, tests/run.in: Adjust for new paths.
* tests/python/automata-io.ipynb, tests/python/automata.ipynb,
tests/python/decompose.ipynb, tests/python/piperead.ipynb,
tests/python/testingaut.ipynb: Adjust messages to refer to spot.impl
instead of spot_impl.
This commit is contained in:
Alexandre Duret-Lutz 2016-01-24 16:45:10 +01:00
parent 727d4cc678
commit 215fcb799a
9 changed files with 83 additions and 74 deletions

View file

@ -24,15 +24,20 @@
# Darwin needs some help in figuring out where non-installed libtool
# libraries are (on this platform libtool encodes the expected final
# path of dependent libraries in each library).
modpath='@abs_top_builddir@/python/.libs'
modpath=$modpath:'@top_builddir@/spot/.libs':'@top_builddir@/buddy/spot/.libs'
modpath='@abs_top_builddir@/python/.libs:@abs_top_builddir@/python/spot/.libs'
modpath=$modpath:'@top_builddir@/spot/.libs:@top_builddir@/buddy/spot/.libs'
# We need access to both the *.py files, and the *.so. We used to
# rely on a module called ltihooks.py to teach the import function how
# to load a Libtool library, but it started to cause issues with
# Python 2.6.
pypath='@abs_top_builddir@/python':'@abs_top_builddir@/python/.libs'
pypath=$pypath:'@abs_top_srcdir@/python':'@abs_top_srcdir@/python/.libs'
pypath=
for i in python python/spot; do
for j in '@abs_top_builddir@' '@abs_top_srcdir@'; do
pypath=$j/$i:$j/$i/.libs:$pypath
done
done
pypath=${pypath%:}
PATH="@abs_top_builddir@/bin:$PATH"
export PATH