Skip to content

Commit aef9cd9

Browse files
committed
Update ENABLE_ feature flags in setup.py
Summary: * Use ENABLE_FUNC_EVENT_MODIFY_QUALNAME on Python 3.15 * Use True for ENABLE_INTERPRETER_LOOP and ENABLE_PEP523_HOOK as they're used on all supported build modes. * Add missing flags ENABLE_PREFORK_MODEL and ENABLE_XXCLASSLOADER.
1 parent c0124b8 commit aef9cd9

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

setup.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -456,23 +456,25 @@ def set_option(var: str, default: object) -> None:
456456
mac = sys.platform == "darwin"
457457
meta_312 = meta_python and py_version == "3.12"
458458
is_314plus = py_version == "3.14" or py_version == "3.15"
459+
is_315 = py_version == "3.15"
459460
free_threading = bool(sysconfig.get_config_var("Py_GIL_DISABLED"))
460461

461-
set_option("META_PYTHON", meta_python)
462-
set_option("ENABLE_FREE_THREADING", free_threading)
463462
set_option("ENABLE_ADAPTIVE_STATIC_PYTHON", meta_312)
464463
set_option("ENABLE_DISASSEMBLER", True)
465464
set_option("ENABLE_ELF_READER", linux)
466465
set_option("ENABLE_EVAL_HOOK", meta_312)
467-
set_option("ENABLE_FUNC_EVENT_MODIFY_QUALNAME", meta_312)
466+
set_option("ENABLE_FREE_THREADING", free_threading)
467+
set_option("ENABLE_FUNC_EVENT_MODIFY_QUALNAME", meta_312 or is_315)
468468
set_option("ENABLE_GENERATOR_AWAITER", meta_312)
469-
set_option("ENABLE_INTERPRETER_LOOP", meta_312 or is_314plus)
469+
set_option("ENABLE_INTERPRETER_LOOP", True)
470470
set_option("ENABLE_LAZY_IMPORTS", meta_312)
471471
set_option("ENABLE_LIGHTWEIGHT_FRAMES", meta_312)
472472
set_option("ENABLE_PARALLEL_GC", meta_312)
473-
set_option("ENABLE_PEP523_HOOK", meta_312 or is_314plus)
473+
set_option("ENABLE_PEP523_HOOK", True)
474474
set_option("ENABLE_PERF_TRAMPOLINE", meta_312)
475+
set_option("ENABLE_PREFORK_MODEL", False)
475476
set_option("ENABLE_SYMBOLIZER", linux)
477+
set_option("ENABLE_XXCLASSLOADER", False)
476478
set_option("ENABLE_USDT", linux)
477479
set_option("ENABLE_ZLIB", linux or mac)
478480

0 commit comments

Comments
 (0)