Skip to content

Commit

Permalink
Remove Pkg from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sumiya11 committed Oct 13, 2024
1 parent 8fac1af commit 0a401a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ AbstractAlgebra = "c3fe647b-3220-5bb0-a1ea-a7954cac585d"
FLINT_jll = "e134572f-a0d5-539d-bddf-3cad8db41a82"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
RandomExtensions = "fb686558-2515-59ef-acaa-46db3789a887"
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Expand All @@ -17,7 +16,6 @@ AbstractAlgebra = "0.43.4"
FLINT_jll = "^300.100.100"
Libdl = "1.6"
LinearAlgebra = "1.6"
Pkg = "1.6"
Random = "1.6"
RandomExtensions = "0.4.2"
SHA = "~1.6, ~1.7, 0.7"
Expand Down
14 changes: 1 addition & 13 deletions src/Nemo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import Random: rand!

using RandomExtensions: RandomExtensions, make, Make2, Make3

import Pkg

import SHA

# N.B: do not import div, divrem from Base
Expand Down Expand Up @@ -383,17 +381,7 @@ end
#
################################################################################

const deps = Pkg.dependencies()
if !haskey(deps, Base.UUID("2edaba10-b0f1-5616-af89-8c11ac63239a"))
version() = "building"
else
ver = deps[Base.UUID("2edaba10-b0f1-5616-af89-8c11ac63239a")]
if occursin("/dev/", ver.source)
version() = VersionNumber("$(ver.version)-dev")
else
version() = VersionNumber("$(ver.version)")
end
end
version() = Base.get_pkgversion_from_path(pkgdir)

Check warning on line 384 in src/Nemo.jl

View check run for this annotation

Codecov / codecov/patch

src/Nemo.jl#L384

Added line #L384 was not covered by tests

function versioninfo()
print("Nemo version $(version())\n")
Expand Down

0 comments on commit 0a401a3

Please sign in to comment.