Files
MINGW-packages/mingw-w64-python/0077-fix-build-testinternalcapi.patch
2022-03-18 15:48:33 +01:00

29 lines
927 B
Diff

From e6ac2710186565b91ae34f9d18b00dbee5f261ea Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 17 Jun 2021 18:52:34 +0530
Subject: [PATCH 077/N] fix build testinternalcapi
---
setup.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/setup.py b/setup.py
index 0145e58..a31cef9 100644
--- a/setup.py
+++ b/setup.py
@@ -986,7 +986,11 @@ class PyBuildExt(build_ext):
depends=['testcapi_long.h']))
# Python Internal C API test module
+ macros = []
+ if MS_WINDOWS:
+ macros.append(('PY3_DLLNAME', 'L"%s"' % sysconfig.get_config_var('DLLLIBRARY')))
self.add(Extension('_testinternalcapi', ['_testinternalcapi.c'],
+ define_macros=macros,
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
# Python PEP-3118 (buffer protocol) test module
--
2.35.1