Skip to content

Make the Windows debug postfix optional - #2040

Merged
darbyjohnston merged 1 commit into
AcademySoftwareFoundation:mainfrom
darbyjohnston:debug-postfix-option
Oct 17, 2026
Merged

darbyjohnston merged 1 commit into
AcademySoftwareFoundation:mainfrom
darbyjohnston:debug-postfix-option

Conversation

@darbyjohnston

Copy link
Copy Markdown
Collaborator

This PR makes the Windows debug postfix an option, so either debug or release libraries can be used.

Assisted-by: Claude:claude-opus-5 [implementation, testing]

@codecov-commenter

codecov-commenter commented Sep 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.60%. Comparing base (0c07966) to head (84043f6).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2040   +/-   ##
=======================================
  Coverage   83.60%   83.60%           
=======================================
  Files         182      182           
  Lines       13575    13575           
  Branches     1261     1261           
=======================================
  Hits        11350    11350           
  Misses       2052     2052           
  Partials      173      173           
Flag Coverage Δ
py-unittests 83.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c07966...84043f6. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The "_d" postfix on Windows debug builds is what a debug Python
interpreter looks for, but a debug build of OTIO is also loaded by a
release interpreter: pybind11 undefines _DEBUG around Python.h unless
Py_DEBUG is defined, so the modules are compiled against the release
ABI. That interpreter looks only for the name without the postfix, and
cannot import them:

    ModuleNotFoundError: No module named 'opentimelineio._opentime'

The postfix was set with a plain set(), which nothing on the command
line can override. As a cache variable it keeps "_d" by default, so a
debug interpreter works as before, and can be set empty with
-DOTIO_DEBUG_POSTFIX= for a release one.

Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
@darbyjohnston
darbyjohnston merged commit f8a2f36 into AcademySoftwareFoundation:main Oct 17, 2026
61 checks passed
@darbyjohnston darbyjohnston added the build issues building OTIO label Oct 17, 2026
@darbyjohnston darbyjohnston added this to the 0.19.0 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build issues building OTIO

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants