[liblouis-liblouisxml] Re: Installing Python Bindings on Windows

  • From: "Jake Kyle" <jake@xxxxxxxxxxxxxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Thu, 11 May 2017 11:59:37 +0100

Many thanks Christian. I've got them installed and working.

I opted for your hackish approach. In addition in the __init__py.in file I replaced:
"###LIBLOUIS_SONAME###"
with
"liblouis"
and removed the "in" extension.

Then ran the altered setup.py as
setup.py install

and it installed and the bindings work!

Jake

-----Original Message----- From: Christian Egli
Sent: Tuesday, May 9, 2017 2:06 PM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: Installing Python Bindings on Windows

Hi Jake

On 05/09/2017 10:51 AM, Jake Kyle wrote:

OK so now using MinGW I can run the configure script and that seems to
work fine.

Cool!

Then I run make and I get this output:

Making all in louis
make[1]: Entering directory `/c/liblouis-3.1.0/python/louis'
source ../../liblouis/liblouis.la ; \
       sed "s/###LIBLOUIS_SONAME###/$dlname/" \
               < ./__init__.py.in \
               > __init__.py
/bin/sh: ../../liblouis/liblouis.la: No such file or directory
make[1]: *** [all] Error 1
make[1]: Leaving directory `/c/liblouis-3.1.0/python/louis'
make: *** [all-recursive] Error 1

Sorry about that. Just recently Chris Brannon provided a fix for that.
Either use liblouis from master
(https://github.com/liblouis/liblouis/archive/master.zip), use his patch
(https://github.com/liblouis/liblouis/pull/325) or very hackishly remove
"import louis" from python/setup.py and change the version in that same
file to "3.1.0".

Hope that helps
Christian

--
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland


-----
Tag der offenen Tuer "Eine Reise durch die Schweiz"
Die SBS laedt Sie herzlich ein: 24. Juni 2017 von 9 bis 16 Uhr.
Mehr Informationen erhalten Sie unter www.sbs.ch/offenetuer
For a description of the software, to download it and links to
project pages go to http://liblouis.org
For a description of the software, to download it and links to
project pages go to http://liblouis.org

Other related posts: