We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd18d2 commit 6efa48cCopy full SHA for 6efa48c
python_bindings/hnswlib
python_bindings/setup.py
@@ -0,0 +1 @@
1
+../setup.py
setup.py
@@ -6,9 +6,15 @@
6
7
__version__ = '0.4.0'
8
9
+# compatibility when run in python_bindings
10
+bindings_dir = 'python_bindings'
11
+if bindings_dir in os.path.basename(os.getcwd()):
12
+ source_files = ['./bindings.cpp']
13
+ include_dirs = ['../hnswlib/']
14
+else:
15
+ source_files = ['./python_bindings/bindings.cpp']
16
+ include_dirs = ['./hnswlib/']
17
-source_files = ['./python_bindings/bindings.cpp']
-include_dirs = ['./hnswlib/']
18
19
libraries = []
20
extra_objects = []
0 commit comments