Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/julia/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,17 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
logger.debug("use_custom_sysimage = %r", use_custom_sysimage)
logger.debug("compiled_modules = %r", options.compiled_modules)
if not (
options.compiled_modules == "no"
or is_compatible_python
is_compatible_python
or use_custom_sysimage
):
raise UnsupportedPythonError(jlinfo)
if options.compiled_modules == "yes":
Comment thread
Moelf marked this conversation as resolved.
Outdated
raise UnsupportedPythonError(jlinfo)
else:
Comment thread
Moelf marked this conversation as resolved.
warnings.warn(
"Statically linked Python interpreter detected, setting `compiled_modules=False` automatically."
)
options.compiled_modules = "no"


self.api.init_julia(options)

Expand Down