Repository navigation
obs-scripting: Python import host code behind obs-scripting-python-import-host.h (#882) - #1993
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
October 23, 2026 22:55
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 23, 2026
Member
Author
|
Coordinator: this conflicts with master in |
zackees
enabled auto-merge
October 23, 2026 23:41
obs-scripting-python-import-host.h with stub Windows/macOS hosts in per-OS
unity groups; test_obs_scripting_python_import_host_{windows,macos} fail
against the stubs.
…port-host.h (#882) The Windows/macOS library names move into obs-scripting-python-import-host-{windows,macos}; access(F_OK) becomes os_file_exists, so <windows.h>, <io.h> and PATH_MAX go. RUNTIME_LINK and Py_NO_ENABLE_SHARED come from CMake, Python.h from each host's hosts/<os>/obs-scripting-python-include.h (Windows hides _DEBUG there), and the MSVC pragmas become /wd options. Baseline: two obs-scripting entries (8) to 0.
zackees
force-pushed
the
facade/882-python-import
branch
from
October 23, 2026 23:53
d256063 to
abc921c
Compare
This was referenced Oct 24, 2026
Closed
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 2 of 3: Python import). Independent of #1987 (slice 1); the two touch neighboring lines in
ci/platform-ifdef-baseline.jsonandcmake/cross/CMakeLists.txtonly.python312.dll) and macOS (Python.framework/Versions/3.12/lib/libpython3.12.dylib) library names move behindobs_python_host_lib_name()inobs-scripting-python-import-host-{windows,macos}.c.h, each in its own unity group and PCH.import_python()asks the host for each version from 3.12 down to 3.6. Same order and same result as the oldVERSION_PATTERN/FILE_PATTERN/dstr_replaceloop.access(path, F_OK)becomesos_file_exists(), so<windows.h>,<io.h>,F_OK,accessandPATH_MAXleave the PCH. On Windows this also accepts non-ASCII install paths (UTF-8 to wide), which_access(ANSI) didn't.RUNTIME_LINKandPy_NO_ENABLE_SHAREDcome fromcmake/python.cmake.Python.hcomes through each host'shosts/<os>/obs-scripting-python-include.h, selected by CMake include path the way coreaudio-encoder does it. The Windows one keeps the_DEBUGhiding./wdoptions on the Python groups.obs-scripting-python-import.pch.h(4) andobs-scripting-python-import.h(4) go to 0.cmake/crosscompiles the Windows and macOS host groups.RED (first commit):
test_obs_scripting_python_import_host_{windows,macos}(Tier 2; plain C, so they run on Linux) fail against stub hosts.GREEN: the hosts implement the names.
./lintpasses (ifdef ratchet included). Local Tier 2: both new tests pass; 398/399 overall. The one failure,test_deinterlace_2x_field_order(83 s), is a timing-sensitive libobs test this PR does not touch (its last fix allows a late hold); it was a load flake on the shared machine.cmake/cross/docker.sh win-x64 mac-arm64exits 0.Tiers 1/3/4 do not apply (C build-structure refactor).