Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 6 Jun 2003 16:50:39 +0100
From: Elfyn McBratney <elfyn@is.ubertales.co.uk>
X-X-Sender: elfyn@ellixia
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: How to get Libxml2/Libxslt Python Bindings (was Re: [ANNOUNCE]
 LibXSLT (1.0.27)...)
In-Reply-To: <20030605121016.GA2420@tishler.net>
Message-ID: <Pine.CYG.4.55.0306061647130.1420@ellixia>
References: <B98E0AC310593E49BE611D63DA0152B8405DAD@mimail.cph.magnus.local>
 <004d01c32b0e$9d832520$710d86d9@ellixia> <005901c32b11$ea425540$710d86d9@ellixia>
 <00d001c32b1d$59848990$710d86d9@ellixia> <20030605121016.GA2420@tishler.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 5 Jun 2003, Jason Tishler wrote:

> Elfyn,
>
> On Thu, Jun 05, 2003 at 05:45:40AM +0100, Elfyn McBratney wrote:
> > PS- Peter, `mv {cyg,lib}xml2mod.dll' does the trick.
>
> If maintaining the "cyg" prefix is considered important, then there is
> another solution...

It's not really important to me, but if the DLL is built as cygfoobar the the
init function, IMO, should be initcygfoobar. Also, I can remove that rename'age
in my build scripts now. :-)

> If a Python shared extension module is called "xyzfoo.$SO" (where $SO is
> so, .dll, etc.), then it must export an initialization function called
> "initxyzfoo".  Therefore, cygxml2mod.dll must export "initcygxml2mod"
> not "initlibxml2mod":
> [...]
>
>     void
> #ifdef __CYGWIN__
>     initcygxml2mod(void)
> #else
>     initlibxml2mod(void)
> #endif /* __CYGWIN__ */
>     {
>         ...
>     }
>
> And similarly for libxslt.

Thanks Jason!

Elfyn

-- 
Elfyn McBratney (mailto:spambot@is.ubertales.co.uk)
Systems Administrator
ABCtales.com / Ubertales.co.uk


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

