summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-10-22 13:36:28 (GMT)
committerGitHub <noreply@github.com>2021-10-22 13:36:28 (GMT)
commit03e9f5dc751b8c441a85f428abc3f432ffe46345 (patch)
tree3ea47646a3402f2ad8bdda2366bd9a214899ff44 /PCbuild
parent86dfb55d2e091cf633dbd7aabcd49d96fb1f9d81 (diff)
downloadcpython-03e9f5dc751b8c441a85f428abc3f432ffe46345.zip
cpython-03e9f5dc751b8c441a85f428abc3f432ffe46345.tar.gz
cpython-03e9f5dc751b8c441a85f428abc3f432ffe46345.tar.bz2
bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157)
setup.py no longer defines Py_BUILD_CORE_MODULE. Instead every module defines the macro before #include "Python.h" unless Py_BUILD_CORE_BUILTIN is already defined. Py_BUILD_CORE_BUILTIN is defined for every module that is built by Modules/Setup. The PR also simplifies Modules/Setup. Makefile and makesetup already define Py_BUILD_CORE_BUILTIN and include Modules/internal for us. Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/pyproject.props1
1 files changed, 0 insertions, 1 deletions
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index d492b71..bbcabb5 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -25,7 +25,6 @@
<_DebugPreprocessorDefinition Condition="$(Configuration) == 'Debug'">_DEBUG;</_DebugPreprocessorDefinition>
<_PlatformPreprocessorDefinition>_WIN32;</_PlatformPreprocessorDefinition>
<_PlatformPreprocessorDefinition Condition="$(Platform) == 'x64'">_WIN64;_M_X64;</_PlatformPreprocessorDefinition>
- <_PydPreprocessorDefinition Condition="$(TargetExt) == '.pyd'">Py_BUILD_CORE_MODULE;</_PydPreprocessorDefinition>
<_Py3NamePreprocessorDefinition>PY3_DLLNAME=L"$(Py3DllName)";</_Py3NamePreprocessorDefinition>
</PropertyGroup>
<ItemDefinitionGroup>