delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/01/16:27:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 1 Sep 2000 16:26:40 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: Cygwin <cygwin AT sources DOT redhat DOT com>
Subject: Cygwin Python Extensions (again)
Message-ID: <20000901162640.M1104@DP>
Mime-Version: 1.0
User-Agent: Mutt/1.2.4i
Organization: Dot Hill Systems Corp.

Since there seems to be some recent Python related posts, I'll take another
crack at posting the following:

On Mon, Aug 07, 2000 at 04:36:07PM -0400, Jason Tishler wrote:
> Has anyone been successful building extensions and/or patching a Cygwin
> version of Python to deal with DLLs instead of shared objects?  Is this
> another head banger activity?

May be if I provide some more information, I'll get some takers this time...

I have gleaned the following from very crude hacking that I have squeezed
in during five minute intervals over the last month:

    1. Cygwin Python configures to load extensions from .so and not .dll
       files (I guess because configure found Cygwin's dl* routines).

    2. I tried building Demo/extend/xxmodule.c (ie, the supplied extension
       sample) as a .so.  When I import it, Python complained that it is
       not a valid module (most likely I didn't build the .so correctly).

    3. I tried the really nasty hack of replacing Python/importdl.o with
       one that attempts to load extensions as DLLs (ie, I played with
       -D options until importdl.c compiled for native Win32 and then
       relinked -- yuck!) -- this attempt crashes the interpreter during
       an import of a prebuilt, known good, Win32 Python extension module.

Since I'm not that knowledgeable of .so files or the internals of Python
extensions and only somewhat knowledgeable of Windows DLLs, I'm looking
for some guidance.  Does anyone know if Cygwin Python extensions are
possible?  If so, should I attempt to build them as .so or .dll files?

Thanks,
Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019