forked from kyamagu/faiss-wheels
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/faiss/python/loader.py b/faiss/python/loader.py | ||
--- a/faiss/python/loader.py | ||
+++ b/faiss/python/loader.py | ||
@@ -3,7 +3,7 @@ | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
-from distutils.version import LooseVersion | ||
+from packaging.version import Version | ||
import platform | ||
import subprocess | ||
import logging | ||
@@ -25,7 +25,7 @@ | ||
{"NEON", "ASIMD", ...} | ||
""" | ||
import numpy | ||
- if LooseVersion(numpy.__version__) >= "1.19": | ||
+ if Version(numpy.__version__) >= "1.19": | ||
# use private API as next-best thing until numpy/numpy#18058 is solved | ||
from numpy.core._multiarray_umath import __cpu_features__ | ||
# __cpu_features__ is a dictionary with CPU features |