C/Cygwin/Python

Jason Tishler jason at tishler.net
Tue Jul 31 14:18:05 EDT 2001


Matthew,

On Tue, Jul 31, 2001 at 04:51:41PM +0000, Matthew Turk wrote:
> Essentially, I want to be able to use it on computers that don't run
> Cygwin.  Is this going to work?

Most likely -- see below.

> I certainly *don't* want to resort to
> Visual C, since I have no idea how to operate in that environment, nor
> do I own a copy.  I know that cygwin has the -Wno_cygwin or something
                                               ^^^^^^^^^^^

Actually, it is the -mno-cygwin option.

> flag that'll compile without CYGWIN.DLL, but will that be sufficient
> for compiling a python extension?

Yes, but only if your extension does not require Posix semantics (i.e.,
only the standard C runtime stuff).

IIRC, you want something like the following:

    python setup.py build_ext --compiler=cygwin

Note that I usually only build Cygwin Python extensions, so it has been
a while since I tried the above.  Hopefully, someone who regularly builds
Cygwin -mno-cygwin or Mingw extensions will chime in.

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   732.264.8798
82 Bethany Road, Suite 7             Email: jason at tishler.net
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com




More information about the Python-list mailing list