Skip to content

Commit c58cb20

Browse files
thofmabenlorenz
andauthored
Fix precompilation warnings downstream (#466)
* Fix precompilation warnings downstream * Revert "Fix precompilation warnings downstream" restore initialization during precompilation for downstream packages This reverts commit 985c968. * avoid downloads timer hang during precompilation by setting a default downloader with shorter grace time * bump version * adjust downloads.jl compat * set downloader only when available (julia >= 1.10) --------- Co-authored-by: Benjamin Lorenz <lorenz@math.tu-berlin.de>
1 parent b9f8d1c commit c58cb20

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name = "Polymake"
22
uuid = "d720cf60-89b5-51f5-aff5-213f193123e7"
33
repo = "https://github.com/oscar-system/Polymake.jl.git"
4-
version = "0.11.9"
4+
version = "0.11.10"
55

66
[deps]
77
BinaryWrappers = "f01c122e-0ea1-4f85-ad8f-907073ad7a9f"
88
CxxWrap = "1f15a43c-97ca-5a2a-ae31-89f07a497df4"
9+
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
910
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1011
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
1112
Mongoc = "4fe8b98c-fc19-5c23-8ec2-168ff83495f2"
@@ -25,10 +26,11 @@ polymake_oscarnumber_jll = "10f31823-b687-53e6-9f29-edb9d4da9f9f"
2526
[compat]
2627
BinaryWrappers = "~0.1.0"
2728
CxxWrap = "~0.14"
29+
Downloads = "^1.4"
2830
JSON = "^0.20, ^0.21"
2931
Libdl = "^1.6"
3032
Mongoc = "~0.6.0, ~0.7.0, ~0.8.0, ~0.9.0"
31-
MozillaCACerts_jll = "2020 - 2023"
33+
MozillaCACerts_jll = "2020 - 2024"
3234
Ninja_jll = "^1.11.1"
3335
Perl_jll = "^5.34.0"
3436
Pkg = "^1.6"

src/Polymake.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import Base: ==, <, <=, *, -, +, //, ^, div, rem, one, zero,
2020
union, union!
2121

2222
import Pkg
23+
import Downloads
2324
import JSON
2425

2526
using SparseArrays
@@ -181,8 +182,16 @@ function __init__()
181182
# to avoid conflicts between symlinks and directories we switch to a new depstree folder name
182183
polymake_deps_tree = @get_scratch!("$(scratch_key)_depstree_v2")
183184

185+
@static if isdefined(Downloads, :default_downloader!)
186+
# work around long Downloads.jl timer
187+
Downloads.default_downloader!(Downloads.Downloader(grace=0.01))
188+
end
184189
# we run this on every init to make sure all artifacts still exist
185190
prepare_deps_tree(polymake_deps_tree)
191+
@static if isdefined(Downloads, :default_downloader!)
192+
# restore default
193+
Downloads.default_downloader!()
194+
end
186195

187196
polymake_user_dir = @get_scratch!("$(scratch_key)_userdir")
188197

0 commit comments

Comments
 (0)