Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check only the major version number of GMP in __init__()
Only the major version number of GMP determines the compile time path (in type `RangeGeneratorBigInt`), so no need to check that the full version number correpdonds at run time. Cf. JuliaLang/METADATA.jl#1840.
- Loading branch information
b5f94b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is somewhat surprising that when this check actually triggered and called
error()
everything works just fine (until the actual API incompatibility causes a crash).I think we should either change this to a warning, or make exeptions from
__init__()
somehow cause the module load to fail.cc: @vtjnash