PY-71557 Remove dedicated C-file for building debugger binaries for Python 3.12

GitOrigin-RevId: 37620d019fde1a306d263b8b47b1dae9231218eb
This commit is contained in:
Andrey Lisin
2024-03-28 20:17:04 +00:00
committed by intellij-monorepo-bot
parent 53ca65dbf0
commit 75848fc2de
47 changed files with 890 additions and 51497 deletions
@@ -7,7 +7,7 @@ from _pydev_bundle import pydev_log
from _pydevd_bundle.pydevd_frame import PyDBFrame
# ENDIF
version = 46
version = 47
if not hasattr(sys, '_current_frames'):
File diff suppressed because it is too large Load Diff
@@ -13,7 +13,7 @@ pydev_log.debug("Using Cython speedups")
# from _pydevd_bundle.pydevd_frame import PyDBFrame
# ENDIF
version = 46
version = 47
if not hasattr(sys, '_current_frames'):
File diff suppressed because it is too large Load Diff
+1 -8
View File
@@ -121,16 +121,9 @@ def build_extension(dir_name, extension_name, target_pydevd_name, force_cython,
else:
# Always compile the .c (and not the .pyx) file (which we should keep
# up-to-date by running build_tools/build.py).
# The C file for Python 3.11 and older is incompatible with
# Python 3.12.
effective_c_file_name = "%s.c" % (
extension_name + "_312" if IS_PY312_OR_GREATER and should_add_python_3_12_suffix else extension_name
)
ext_modules = [Extension(
"%s%s.%s" % (dir_name, "_ext" if extended else "", target_pydevd_name),
[os.path.join(dir_name, effective_c_file_name)],
[os.path.join(dir_name, extension_name + ".c")],
# uncomment to generate pdbs for visual studio.
# extra_compile_args=["-Zi", "/Od"],
# extra_link_args=["-debug"],