delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.3.2 sourceware.org C364E3858009 |
Authentication-Results: | sourceware.org; |
dmarc=none (p=none dis=none) header.from=trueroad.jp | |
Authentication-Results: | sourceware.org; |
spf=none smtp.mailfrom=trueroad AT trueroad DOT jp | |
Date: | Fri, 29 Jan 2021 19:31:43 +0900 (JST) |
Message-Id: | <20210129.193143.371461372727925270.trueroad@trueroad.jp> |
To: | cygwin AT cygwin DOT com |
Subject: | python-cython C++ support patch |
From: | Masamichi Hosoda <trueroad AT trueroad DOT jp> |
X-Mailer: | Mew version 6.8 on Emacs 27.1 |
Mime-Version: | 1.0 |
X-VirusScan: | Outbound; mvir-ac12; Fri, 29 Jan 2021 19:31:49 +0900 |
X-Spam-Status: | No, score=-1.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, |
KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, | |
TXREP autolearn=no 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 AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Cc: | trueroad AT trueroad DOT jp |
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
Hi, I've found that modules built by python-cython with C++ could not be loaded. If I understand correctly, the following patch fixes it. Would you like to apply this patch to the package? ``` --- a/Cython-0.29.21/Cython/Utility/ModuleSetupCode.c +++ b/Cython-0.29.21/Cython/Utility/ModuleSetupCode.c @@ -709,7 +709,11 @@ /////////////// PyModInitFuncType.proto /////////////// #ifndef CYTHON_NO_PYINIT_EXPORT +#ifdef __cplusplus +#define __Pyx_PyMODINIT_FUNC extern "C" PyObject * +#else #define __Pyx_PyMODINIT_FUNC PyObject * +#endif #elif PY_MAJOR_VERSION < 3 // Py2: define this to void manually because PyMODINIT_FUNC adds __declspec(dllexport) to it's definition. ``` Thanks. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |