Skip to content

Precompilation

Alexander Belopolsky edited this page Oct 6, 2017 · 4 revisions

juliapy

Let's figure out how precompilation is handled in juliapy.

export PYCALL_LIBJULIA_PATH=$(julia -e 'print(joinpath(dirname(JULIA_HOME),"lib"))')
export PYCALL_JULIA_HOME=$(julia -e 'print(JULIA_HOME)')
export PYJULIA_IMAGE_FILE=$(julia -e "print(unsafe_string(Base.JLOptions().image_file))")
(3) a-imac:~ a$ $VIRTUAL_ENV/lib/python3.6/site-packages/julia/fake-julia/julia -q
julia> Base.julia_cmd()
`/Applications/Julia-0.6.app/Contents/Resources/julia/bin/julia -Ccore2 -J/Applications/Julia-0.6.app/Contents/Resources/julia/lib/julia/sys.dylib --compile=yes --depwarn=yes`
julia> using PyCall
INFO: Recompiling stale cache file /Users/a/.julia/lib/v0.6/PyCall.ji for module PyCall.

julia> PyCall.symbols_present
false

So apparently they are ignoring the issue.

Separate precompilation cache?

This can be done by overwriting

julia> Base.LOAD_CACHE_PATH[1]
"/Users/a/.julia/lib/v0.6"
Clone this wiki locally