Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libsingular_julia] various updates #6853

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions L/libsingular_julia/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ uuid = Base.UUID("a83860b7-747b-57cf-bf1f-3e79990d037f")
delete!(Pkg.Types.get_last_stdlibs(v"1.6.3"), uuid)

name = "libsingular_julia"
version = v"0.32.1"
version = v"0.33.0"

# reminder: change the above version if restricting the supported julia versions
julia_versions = [v"1.6.3", v"1.7", v"1.8", v"1.9", v"1.10"]
julia_compat = join("~" .* string.(getfield.(julia_versions, :major)) .* "." .* string.(getfield.(julia_versions, :minor)), ", ")

# Collection of sources required to build libsingular-julia
sources = [
GitSource("https://github.com/oscar-system/libsingular-julia.git", "eff1f172c070325887361c63b85b614de7e6b675"),
GitSource("https://github.com/oscar-system/Singular.jl.git", "14fdb93f83a7bc5a1ba396b85cf1a4fa9eff49d4"),
]

# Bash recipe for building across all platforms
script = raw"""
cd libsingular-julia
cd Singular.jl/deps/src
cmake . -B build \
-DJulia_PREFIX="$prefix" \
-DSingular_PREFIX="$prefix" \
Expand All @@ -34,6 +34,9 @@ cmake . -B build \

VERBOSE=ON cmake --build build --config Release --target install -- -j${nproc}

# store tree hash of the source directory
git ls-tree HEAD .. | cut -c13-52 > ${libdir}/libsingular_julia.treehash

install_license LICENSE.md
"""

Expand All @@ -55,7 +58,7 @@ dependencies = [
BuildDependency("GMP_jll"),
BuildDependency("MPFR_jll"),
Dependency("libcxxwrap_julia_jll"),
Dependency("Singular_jll", compat = "~403.202.200"),
Dependency("Singular_jll", compat = "~403.203.200"),
]

# Build the tarballs, and possibly a `build.jl` as well.
Expand Down