@@ -73,7 +73,8 @@ What to read next:
7373
7474## [ Managing Julia dependencies] (@id julia-deps)
7575
76- JuliaCall manages its Julia dependencies using [ JuliaPkg] ( https://github.com/JuliaPy/PyJuliaPkg ) .
76+ By default JuliaCall manages its Julia dependencies using
77+ [ JuliaPkg] ( https://github.com/JuliaPy/PyJuliaPkg ) .
7778
7879It will automatically download a suitable version of Julia if required.
7980
@@ -100,6 +101,15 @@ Alternatively you can use `add`, `rm`, etc. from JuliaPkg to edit this file.
100101
101102See [ JuliaPkg] ( https://github.com/JuliaPy/PyJuliaPkg ) for more details.
102103
104+ ### Using existing environments
105+
106+ It's possible to override the defaults and disable JuliaPkg entirely by setting
107+ the ` PYTHON_JULIACALL_EXEPATH ` and ` PYTHON_JULIACALL_PROJECT ` options. This is
108+ particularly useful when using shared environments on HPC systems that may be
109+ readonly. If ` PYTHON_JULIACALL_PROJECT ` is specified the project * must* already
110+ have PythonCall.jl already installed. If only one of these options is specified
111+ then JuliaPkg will still be loaded to get a default value for the other one.
112+
103113## [ Configuration] (@id julia-config)
104114
105115Some features of the Julia process, such as the optimization level or number of threads, may
@@ -125,6 +135,8 @@ be configured in two ways:
125135| ` -X juliacall-warn-overwrite=<yes\|no> ` | ` PYTHON_JULIACALL_WARN_OVERWRITE=<yes\|no> ` | Enable or disable method overwrite warnings. |
126136| ` -X juliacall-autoload-ipython-extension=<yes\|no> ` | ` PYTHON_JULIACALL_AUTOLOAD_IPYTHON_EXTENSION=<yes\|no> ` | Enable or disable IPython extension autoloading. |
127137| ` -X juliacall-heap-size-hint=<N> ` | ` PYTHON_JULIACALL_HEAP_SIZE_HINT=<N> ` | Hint for initial heap size in bytes. |
138+ | ` -X juliacall-exepath=<file> ` | ` PYTHON_JULIACALL_EXEPATH=<file> ` | Path to Julia binary to use (overrides JuliaPkg). |
139+ | ` -X juliacall-project=<dir> ` | ` PYTHON_JULIACALL_PROJECT=<dir> ` | Path to the Julia project to use (overrides JuliaPkg). |
128140
129141## [ Multi-threading] (@id py-multi-threading)
130142
0 commit comments