Commit bae6fca3 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Added temporary JULIA_PROJECT for precompilation

parent 12876173
......@@ -155,6 +155,7 @@ cat adaptors/julia/Project.toml.template \
%post julia
set -x
export JULIA_PROJECT=$(mktemp -d julia.XXXXXX)
export JULIA_LOAD_PATH=/opt/julia:
export JULIA_DEPOT_PATH=/opt/julia:
cat<<EOF|julia
......@@ -162,16 +163,12 @@ import Pkg
Pkg.add(path="/opt/julia/local/MobergIO/")
Pkg.precompile()
EOF
rm ${JULIA_PROJECT}/Manifest.toml
rm ${JULIA_PROJECT}/Project.toml
rmdir ${JULIA_PROJECT}
%postun julia
set -x
export JULIA_LOAD_PATH=/opt/julia:
export JULIA_DEPOT_PATH=/opt/julia:
cat<<EOF|julia
import Pkg
Pkg.rm("MobergIO")
EOF
# Cleanup of precomiled, etc needed...?
%files
%defattr(-,root,root,-)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment