diff --git a/.gitignore b/.gitignore index 5a16984..fed2775 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ -/Manifest.toml -/docs/Manifest.toml -/docs/build/ +.ipynb_checkpoints +.vscode +Manifest.toml +Manifest-v*.toml +LocalPreferences.toml diff --git a/devenv/Project.toml b/devenv/Project.toml new file mode 100644 index 0000000..0e884a0 --- /dev/null +++ b/devenv/Project.toml @@ -0,0 +1,14 @@ +[deps] +BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" +Cthulhu = "f68482b8-f384-11e8-15f7-abe071a5a75f" +HEPExampleProject = "f779019a-d216-4ac1-8c1a-8c09799cc4e6" +Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" +Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" +QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc" +Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" +RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" +SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +HEPExampleProject = {path = ".."} diff --git a/devenv/README.md b/devenv/README.md new file mode 100644 index 0000000..52f307b --- /dev/null +++ b/devenv/README.md @@ -0,0 +1,11 @@ +# Julia development environment + +This directory contains a Julia project environments `cpu` and `cuda` +that can be used when developing HEPExampleProject with Julia >= v1.11. +It contains all direct, test and doc-gen dependencies of HEPExampleProject, +plus BenchmarkTools and Cthulhu and JLD2 (for benchmarking and debugging). + +Note: This environment can't be used with Julia versions <= v1.10, as it +use a `[sources]` section in the `Project.toml` to ensure HEPExampleProject +is loaded from the local source directory, this Pkg feature was introduced +in Julia v1.11. diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..a303fff --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1,2 @@ +build/ +site/ diff --git a/juliac/make.sh b/juliac/make.sh index 9e02469..0624590 100755 --- a/juliac/make.sh +++ b/juliac/make.sh @@ -10,11 +10,9 @@ julia -e 'exit(VERSION >= v"1.12" ? 0 : 1)' || ( exit 1 ) -# Binaries generated by juliac may segfault if JULIA_CPU_TARGET is set: -unset JULIA_CPU_TARGET - -jlbindir=`julia -e 'println(dirname(Sys.BINDIR))'` - -julia --project=. -e 'import Pkg; Pkg.instantiate()' +(command -v juliac > /dev/null) && echo OK || ( + echo "ERROR: juliac not found on \$PATH. Please install the JuliaC app (see https://github.com/JuliaLang/juliaC.jl)" >&2 + exit 1 +) -julia --project=. "$jlbindir/share/julia/juliac/juliac.jl" --experimental --trim=unsafe-warn --output-exe hepexample hepexample.jl +juliac --project="." --experimental --trim=safe --output-exe hepexample hepexample.jl