public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eliot Moss <moss@cs.umass.edu>
To: Marco Atzeri <marco.atzeri@gmail.com>, cygwin@cygwin.com
Subject: Re: Python C Extension Module loading issue on Cygwin
Date: Mon, 27 Nov 2023 12:57:07 -0500	[thread overview]
Message-ID: <61890855-1393-9adc-2cf1-348732a25995@cs.umass.edu> (raw)
In-Reply-To: <29a20f4b-aea5-4823-8d07-59d3d49e1a19@gmail.com>

On 11/27/2023 12:49 PM, Marco Atzeri via Cygwin wrote:
> On 22.09.2023 08:39, Mesibo Technical via Cygwin wrote:
>> This issue is about Python on Cygwin not using the recommended module extension.
> [cut]
>> Any idea why Cygwin is using the .dll extension instead of the .pyd
>> extension as recommended by Python's official documentation?
>> Additionally, is there a way to know during runtime the specific
>> extension used by a particular version of Python, without having to
>> make assumptions based on the system type?
> 
> Cygwin is Unix on Windows, so the dll extension is equivalent
> to the so extension on Linux/Unix.
> I am almost sure that we are not modifying the source code for this specific issue. But I could be wrong

Allow me to add that Cygwin is not a virtual machine in the sense of
WSL (Windows Subsystem for Linux), VirtualBox, etc.  Rather, it consists
of a dll library that does a pretty good job mapping POSIX library
functions to Windows ones, and large collections of programs and libraries
that have been ported to the Cygwin environment, including X windows.

In any case, this means that it follows Windows linking conventions and
object formats.

HTH understand why tings are as they are.

Regards - Eliot Moss

      reply	other threads:[~2023-11-27 17:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-22  6:39 Mesibo Technical
2023-09-29  6:13 ` jojelino
2023-11-27 17:49 ` Marco Atzeri
2023-11-27 17:57   ` Eliot Moss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61890855-1393-9adc-2cf1-348732a25995@cs.umass.edu \
    --to=moss@cs.umass.edu \
    --cc=cygwin@cygwin.com \
    --cc=marco.atzeri@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).