Skip to content

Commit

Permalink
released ROOT version contraint for Conda install and added the -more…
Browse files Browse the repository at this point in the history
…classes suffix to the project version
  • Loading branch information
grasph committed Sep 29, 2024
1 parent 78a80dd commit d921038
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ROOT"
uuid = "1706fdcc-8426-44f1-a283-5be479e9517c"
version = "0.3.2"
version = "0.3.2-moreclasses"
authors = ["Philippe Gras CEA/IRFU"]

[deps]
Expand Down
10 changes: 8 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const JL_SHARE = joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia")
const JULIA = joinpath(Sys.BINDIR, "julia")
const libname="libjlROOT." * Libdl.dlext

const conda_root_version = "6.32.06"
const conda_root_version = "6.32"
const supported_root_versions = [ conda_root_version ]

used_root_version = ""
Expand All @@ -33,7 +33,13 @@ end

const scratch = joinpath(get_scratch!(pkg_uuid, "lib"), string(pkg_version), "ROOT-v" * used_root_version)

found_root_ok = root_found && (used_root_version supported_root_versions)
function iscompat(v, ref)
v_ = parse.(Int, split(v, "."))
ref_ = parse.(Int, split(ref, "."))
length(v_) length(ref_) && v_[1:length(ref_)] == ref_
end

found_root_ok = root_found && any(iscompat.(used_root_version, supported_root_versions))

if found_root_ok
@info "ROOT libraries from $root_libdir will be used."
Expand Down

0 comments on commit d921038

Please sign in to comment.