Skip to content

Commit

Permalink
Add symlink to setup.py instead of hnswlib
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Yashunin authored and Dmitry Yashunin committed Dec 8, 2020
1 parent afd18d2 commit 6efa48c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion python_bindings/hnswlib

This file was deleted.

1 change: 1 addition & 0 deletions python_bindings/setup.py
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@

__version__ = '0.4.0'

# compatibility when run in python_bindings
bindings_dir = 'python_bindings'
if bindings_dir in os.path.basename(os.getcwd()):
source_files = ['./bindings.cpp']
include_dirs = ['../hnswlib/']
else:
source_files = ['./python_bindings/bindings.cpp']
include_dirs = ['./hnswlib/']

source_files = ['./python_bindings/bindings.cpp']
include_dirs = ['./hnswlib/']

libraries = []
extra_objects = []
Expand Down

0 comments on commit 6efa48c

Please sign in to comment.