File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -337,10 +337,9 @@ def is_compatible_exe(jlinfo, _debug=lambda *_: None):
337
337
Determine if Python used by PyCall.jl is compatible with this Python.
338
338
339
339
Current Python executable is considered compatible if it is dynamically
340
- linked to libpython (usually the case in macOS and Windows) and
341
- both of them are using identical libpython. If this function returns
342
- `True`, PyJulia use the same precompilation cache of PyCall.jl used by
343
- Julia itself.
340
+ linked to libpython and both of them are using identical libpython. If
341
+ this function returns `True`, PyJulia use the same precompilation cache
342
+ of PyCall.jl used by Julia itself.
344
343
345
344
Parameters
346
345
----------
@@ -353,6 +352,11 @@ def is_compatible_exe(jlinfo, _debug=lambda *_: None):
353
352
_debug ("py_libpython =" , py_libpython )
354
353
_debug ("jl_libpython =" , jl_libpython )
355
354
return py_libpython == jl_libpython and py_libpython is not None
355
+ # `py_libpython is not None` here for checking if this Python
356
+ # executable is dynamically linked or not (`py_libpython is None`
357
+ # if it's statically linked). `jl_libpython` may be `None` if
358
+ # libpython used for PyCall is removed so we can't expect
359
+ # `jl_libpython` to be a `str` always.
356
360
357
361
358
362
_separate_cache_error_common_header = """\
You can’t perform that action at this time.
0 commit comments