Skip to content

Commit

Permalink
Merge pull request #227 from hannes14/version
Browse files Browse the repository at this point in the history
fix version number in banner
  • Loading branch information
fieker committed Apr 28, 2020
2 parents bc5ea27 + 82e8dcc commit a351c01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions deps/src/singular.cpp
Expand Up @@ -72,6 +72,9 @@ JLCXX_MODULE define_julia_module(jlcxx::Module & Singular)
Singular.method("versionString", []() {
return const_cast<const char *>(versionString());
});
Singular.method("version", []() {
return SINGULAR_VERSION;
});

singular_define_coeffs(Singular);
singular_define_rings(Singular);
Expand Down
3 changes: 2 additions & 1 deletion src/Singular.jl
Expand Up @@ -110,11 +110,12 @@ function __init__()
show_banner = isinteractive() &&
!any(x->x.name in ["Oscar"], keys(Base.package_locks))

singular_version_nr=Singular.libSingular.version()
if show_banner
println("""Singular.jl, based on
SINGULAR /
A Computer Algebra System for Polynomial Computations /
0< $VERSION
0< $singular_version_nr
by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann \\
FB Mathematik der Universitaet, D-67653 Kaiserslautern \\
""")
Expand Down

0 comments on commit a351c01

Please sign in to comment.