gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [PATCH]: Link Python extensions with libpython


From: Bernd Zeimetz
Subject: Re: [gpsd-dev] [PATCH]: Link Python extensions with libpython
Date: Sun, 16 Nov 2014 20:49:56 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Icedove/33.0

On 09/09/2014 10:34 AM, Matt wrote: 
> This patch isn't entirely correct - it links all binaries and shared objects
> against the python runtime library, but only some of them (not all) actually
> need libpython. I don't yet see how to fix this.

The patch shouldn't be necessary at all, or something around the lines of

    vars = sysconfig.get_config_vars('CC', 'CXX', 'OPT', 'BASECFLAGS', 
'CCSHARED', 'LDSHARED', 'SO', 'INCLUDEPY', 'LDFLAGS')
    for i in range(len(vars)):
        if vars[i] is None:
            vars[i] = []
    (cc, cxx, opt, basecflags, ccshared, ldshared, so_ext, includepy, ldflags) 
= vars

is wrong - or distutils is broken on cygwin.


> 
> With this change, all binaries compile on Cygwin, but regression tests fail 
> due to:
> 
> gpsfake: socket error [ Errno 111] Connection refused.
> 
> I haven't root-caused this yet, but it appears shallow.


-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F



reply via email to

[Prev in Thread] Current Thread [Next in Thread]