Skip to content

Commit 290c9dc

Browse files
committed
1 parent cb8839e commit 290c9dc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/unix_unit_tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,12 +442,13 @@ jobs:
442442
python_exe = sys.executable
443443
is_macos = platform.system() == 'Darwin'
444444
445-
# macOS: Set DYLD_LIBRARY_PATH directly in run.m (not via env var)
446-
# This avoids breaking MATLAB's launcher while still fixing OpenSSL for Python
445+
# macOS: Use DYLD_FALLBACK_LIBRARY_PATH instead of DYLD_LIBRARY_PATH
446+
# FALLBACK is checked after default locations, so MATLAB's libs load first
447+
# but conda's libs are available as fallback for symbols MATLAB doesn't have
447448
dyld_line = ''
448449
if is_macos:
449450
conda_lib_path = os.path.join(os.path.dirname(os.path.dirname(python_exe)), 'lib')
450-
dyld_line = f\"setenv('DYLD_LIBRARY_PATH', '{conda_lib_path}');\"
451+
dyld_line = f\"setenv('DYLD_FALLBACK_LIBRARY_PATH', '{conda_lib_path}');\"
451452
452453
content = f'''pyenv(Version='{python_exe}', ExecutionMode='OutOfProcess')
453454
{dyld_line}

0 commit comments

Comments
 (0)