X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6613F3860C2E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1612068192;
	bh=vE65pXIINmFL4ru5JMyYKSlP88agpa0ZR2THukbbK3c=;
	h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=Th4iCqKsrA4E+88dGW40V62zkPnXDKCROMJROoZr26eAx50wp7OABhTBV//Ewg5p4
	 TX7CA7BZswZPnf7Ahmot/biDV9Q6thoqUyHCGVDSH6h+GkynRp1dJbHo0rw+lCLXHP
	 B4glKGezwaCY4MMad65Bf9hpb9XXJXEwXmzj3cBk=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C6715385803C
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=vYsaDaNjEzhNf/F7o/lgbG2CtuqrmyCABTrwC4Xb/Cw=;
 b=F57hZ59l0rWZfqZjYvQdZUYNY0SczydIG9MSn8EAu/Cvn0tb404gZNglqdKVs8h9oo
 0qtNR/7nJE7/QPsT8cYzd7kjxVoMiMpUb23EhR7PlbrdGposDPhTfYwgOKuBWv5WkuwB
 LhyHXjJ0GBFeB8oltTYnzApBkkSfR6CxudubXT91gqkEvO3YHfER1Nnlz2y1ITjU6ZX7
 NbevnYgUxb33+0cLCqd+r4mOiMJenc+uKiJJVt0NFUFLZrEYoXAKHwPlNn/1razvA99o
 FgKKG0bJxTwcC0D1MukSWrgu6IAXB+EhY1bZfuMxgVo8AZO28NHj25yRWOy4hwWL/gy3
 F/Sw==
X-Gm-Message-State: AOAM530gI+klWs8DTnuYydyLG6nIwzeBI7+Xy9+5UV7fWD6HaRAK/SNY
 wiaEI93++BHGaxfTqOln1xxUYzWjH5s=
X-Google-Smtp-Source: ABdhPJx02LRjFoTWn48tL8ngvEcs3aXJhu90yVxzy1G94l2EmGbdq5vFDA2ITpQsiDKeEjYYNHYN9A==
X-Received: by 2002:a05:6402:558:: with SMTP id
 i24mr12853270edx.141.1612068187961; 
 Sat, 30 Jan 2021 20:43:07 -0800 (PST)
Subject: Re: python-cython C++ support patch
To: cygwin@cygwin.com
References: <20210129.193143.371461372727925270.trueroad@trueroad.jp>
 <7edac602-ab79-7421-f5f8-929c7fa68428@gmail.com>
 <20210130.222850.1144915727792964409.trueroad@trueroad.jp>
 <20210131.125348.529339282301413911.trueroad@trueroad.jp>
Message-ID: <fd19cda7-d0ca-9131-a3f9-1b45a6e4f8fa@gmail.com>
Date: Sun, 31 Jan 2021 05:43:06 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.7.0
MIME-Version: 1.0
In-Reply-To: <20210131.125348.529339282301413911.trueroad@trueroad.jp>
Content-Language: it
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin@cygwin.com>
Reply-To: Marco Atzeri <marco.atzeri@gmail.com>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

On 31.01.2021 04:53, Masamichi Hosoda wrote:

> python38-cython-0.29.21-3 works fine with following test code.
> 
> ```hello.pyx
> print('Hello World!')
> ```
> 
> ```setup.py
> from distutils.core import setup
> from Cython.Build import cythonize
> 
> setup(
>      ext_modules=cythonize(
>          "hello.pyx",
>          language="c++",
>      )
> )
> ```
> 
> ```test.py
> import hello
> ```
> 
> Here's the result by python38-cython-0.29.21-2 (failed).
> 
> ```
> $ python setup.py build_ext --inplace
> [...snip...]
> $ python test.py
> Traceback (most recent call last):
>    File "test.py", line 1, in <module>
>      import hello
> ImportError: dynamic module does not define module export function (PyInit_hello)
> ```
> 
> Here's the result by python38-cython-0.29.21-3 (succeeded).
> 
> ```
> $ python setup.py build_ext --inplace
> [...snip...]
> $ python test.py
> Hello World!
> ```
> 
> Thanks.

Thanks to you

I still think that the change you proposed should go upstream.

Have you tested your example on a NOT cygwin system ?

Regards
Marco


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