diff --git a/bin/create_sys_image b/bin/create_sys_image index 9a0f2ff..a16dd8c 100755 --- a/bin/create_sys_image +++ b/bin/create_sys_image @@ -29,16 +29,18 @@ if test -f "Manifest.toml"; then mv Manifest.toml Manifest.toml.bak fi julia --project -e "include(\"./test/update_packages.jl\");" -julia -e "using Pkg; Pkg.add(\"TestEnv\")" -julia --project -e "using Pkg; using TestEnv; TestEnv.activate(); Pkg.add(\"PyCall\"); Pkg.build(\"PyCall\")" +# julia -e "using Pkg; Pkg.add(\"TestEnv\")" +# julia --project -e "using Pkg; using TestEnv; TestEnv.activate(); Pkg.add(\"PyCall\"); Pkg.build(\"PyCall\")" +echo "--> 1" julia --project -e "using Pkg; Pkg.precompile()" +echo "--> 2" julia --project -e "include(\"./test/create_sys_image.jl\");" mv kps-image_tmp.so bin/kps-image-${julia_major}.so -echo "--> 1" +echo "--> 3" julia --project -e "using Pkg; try; Pkg.precompile(); catch; println(\"Warning...\"); end" -echo "--> 2" +echo "--> 4" julia --project -J bin/kps-image-${julia_major}.so -e "using ControlPlots, NativeFileDialog" -echo "--> 3" +echo "--> 5" julia --project -J bin/kps-image-${julia_major}.so -e "try; using Plots; catch; println(\"Warning when precompiling Plots...\"); end" echo "Successfully created system image!" \ No newline at end of file diff --git a/test/create_sys_image.jl b/test/create_sys_image.jl index 4c7c645..2daf493 100644 --- a/test/create_sys_image.jl +++ b/test/create_sys_image.jl @@ -13,4 +13,4 @@ PackageCompiler.create_sysimage( sysimage_path="kps-image_tmp.so", precompile_execution_file=joinpath("test", "test_for_precompile.jl") ) -Pkg.add("Plots") \ No newline at end of file +# Pkg.add("Plots") \ No newline at end of file