File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -862,6 +862,10 @@ PYBIND11_MODULE(compiled, m) {
862
862
m.attr (" USES_SIMSIMD" ) = py::int_ (USEARCH_USE_SIMSIMD);
863
863
m.attr (" USES_FP16LIB" ) = py::int_ (USEARCH_USE_FP16LIB);
864
864
865
+ m.attr (" VERSION_MAJOR" ) = py::int_ (USEARCH_VERSION_MAJOR);
866
+ m.attr (" VERSION_MINOR" ) = py::int_ (USEARCH_VERSION_MINOR);
867
+ m.attr (" VERSION_PATCH" ) = py::int_ (USEARCH_VERSION_PATCH);
868
+
865
869
py::enum_<metric_punned_signature_t >(m, " MetricSignature" )
866
870
.value (" ArrayArray" , metric_punned_signature_t ::array_array_k)
867
871
.value (" ArrayArraySize" , metric_punned_signature_t ::array_array_size_k);
Original file line number Diff line number Diff line change
1
+ from usearch .compiled import (
2
+ VERSION_MAJOR ,
3
+ VERSION_MINOR ,
4
+ VERSION_PATCH ,
5
+ )
6
+
7
+ __version__ = f"{ VERSION_MAJOR } .{ VERSION_MINOR } .{ VERSION_PATCH } "
You can’t perform that action at this time.
0 commit comments