Hi.<br><br>I have been working with python + SWORD for quite a while, but under windows.<br>However, I have also tried to build with MSYS (which I have done with a little tweaking).<br><br><span></span>What I think you need to do (presuming you are under linux), is go to bindings/swig/oldmake, and pull out
<a href="http://makefile.am">makefile.am</a>. Put this in bindings/swig and rename it as makefile <br><br>As there is no configure script for this, you will need to do manual substitution of some terms. <br>First, if you want only python, remove the tcl and perl sections. Next, substitute the correct things for the following
<br>$(PYTHON) (possibly python)<br>$(SWORD_INCLUDES) (wherever sword includes are ie -I/usr/local/share/sword/include) <span><br>$(LIB_SWORD) (ie -lsword) <br></span><span>$(top_srcdir) (bindings/swig)<br>$(SWIG) (Wherever the swig executable is
e.g. swig -I/usr/local/share/swig)<br>$(VERSION) (1.5.9?)<br><br>then type "make python_make" <br>This should build the extension. I'm not sure whether you need to install it (if you do, just type cd python && python
setup.py install</span><br><br clear="all">If you would like any examples of how to use SWORD under python, just email me<br><br>Hope this helps.<br><br>God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------
<br>Of making many books there is no end, and much study is a weariness of the flesh.<br>Ecclesiastes 12:12 (ESV)
<br><br><div><span class="gmail_quote">On 1/24/07, <b class="gmail_sendername">Pierre Amadio</b> <<a href="mailto:pierre.amadio@libertysurf.fr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pierre.amadio@libertysurf.fr
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello.<br><br>I am afraid i do not understand how to use the python bindings the<br>README in the source talk about.<br><br>I have compiled sword with --with-python option and was expecting some<br>python module to be autmatically build.
<br><br>The bindings/swig directory does not seem to have been changed, nor<br>anything compiled in it.<br><br>I would appreciate any hints that could led me to access sword with<br>python.<br><br>Thanks.<br><br>Pierre Amadio
<br><br>_______________________________________________<br>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sword-devel@crosswire.org
</a><br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page<br></blockquote></div><br>