Skip to content

Make the Windows debug postfix optional - #2040

Open
darbyjohnston wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
darbyjohnston:debug-postfix-option
Open

darbyjohnston wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
darbyjohnston:debug-postfix-option

Conversation

@darbyjohnston

Copy link
Copy Markdown
Contributor

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]

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>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.47%. Comparing base (bc5fe2d) to head (0cb9ee4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2040      +/-   ##
==========================================
+ Coverage   83.25%   83.47%   +0.21%     
==========================================
  Files         180      182       +2     
  Lines       13479    13517      +38     
  Branches     1253     1254       +1     
==========================================
+ Hits        11222    11283      +61     
+ Misses       2085     2061      -24     
- Partials      172      173       +1     
Flag Coverage Δ
py-unittests 83.47% <ø> (+0.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes


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 31e3101...0cb9ee4. Read the comment docs.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants