Repository navigation
obs-scripting: Python host code behind obs-scripting-python-host.h (#882) - #2012
Merged
Merged
Conversation
zackees
force-pushed
the
facade/882-python-import
branch
from
October 23, 2026 23:53
d256063 to
abc921c
Compare
zackees
force-pushed
the
facade/882-python-runtime
branch
from
October 23, 2026 23:54
8e1b4b8 to
74e1c66
Compare
zackees
enabled auto-merge
October 24, 2026 00:42
zackees
force-pushed
the
facade/882-python-runtime
branch
from
October 24, 2026 00:42
74e1c66 to
a8ed98f
Compare
Member
Author
|
Coordinator: #1993 landed. I retargeted this PR to master and rebased only its own two commits onto master ( |
obs-scripting-python-host.h with stub Windows/macOS/POSIX hosts in per-OS
unity groups; test_obs_scripting_python_host_{windows,macos,posix} fail
against the stubs.
) Whether Python loads at start, PYTHONHOME, the macOS no-bytecode setting and the sys.path directories move into obs-scripting-python-host-{windows, macos,posix}. The Windows __func__ define and the unused <dlfcn.h> go (MSVC has had __func__ since 2015), and the MSVC pragmas around the SWIG runtime become /wd options. Baseline: the last three obs-scripting entries (8) to 0.
zackees
force-pushed
the
facade/882-python-runtime
branch
from
October 24, 2026 00:43
a8ed98f to
30f6cae
Compare
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #882 (slice 3 of 3: Python runtime). Stacked on #1993; retargets to master once that merges. With #1987 and #1993, this takes every
shared/obs-scriptingentry offci/platform-ifdef-baseline.json.obs-scripting-python-host.h, implemented inobs-scripting-python-host-{windows,macos,posix}.c.h(own unity groups and PCHs):obs_python_host_load_at_start(): POSIX true; Windows/macOS wait for the user's install folder (was theobs-scripting.c.hconditional).obs_python_host_home(): the install folder (Windows), or itsPython.framework/Versions/M.m(macOS).obs_python_host_no_bytecode(): macOS true.obs_python_host_module_dirs(): macOS PlugIns, then Resources (absolute, when present); others:../SCRIPT_DIRfrom the executable, then absoluteSCRIPT_DIR.Also: the Windows
#define __func__ __FUNCTION__goes (MSVC has had__func__since 2015), and so does the unused<dlfcn.h>include. The MSVC pragmas around the SWIG runtime become/wd4100 /wd4204on the Python groups.cmake/crosscompiles the Windows and macOS hosts. Behavior is unchanged, except thatPYTHONHOMEis now converted with the buffer's real size on every host.RED (first commit):
test_obs_scripting_python_host_{windows,macos,posix}(Tier 2, plain C on Linux) fail against stub hosts.GREEN: local Tier 2 passes 402/402, including all three.
./lintpasses (ifdef ratchet included),ci/test_cross_sources.pypasses, andcmake/cross/docker.sh win-x64 mac-arm64exits 0.Tiers 1/3/4 do not apply (C build-structure refactor).