Skip to content

Commit

Permalink
Merge pull request #20 from js1010/task/fix-setup
Browse files Browse the repository at this point in the history
update setup.py
  • Loading branch information
js1010 committed Feb 10, 2021
2 parents 068e5aa + bae10f7 commit d0c2ef1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import subprocess
from setuptools import setup, Extension

import pybind11
import numpy as np
from cuda_setup import CUDA, BUILDEXT

Expand All @@ -33,7 +34,7 @@

MAJOR = 0
MINOR = 0
MICRO = 6
MICRO = 7
RELEASE = True
STAGE = {True: '', False: 'b'}.get(RELEASE)
VERSION = f'{MAJOR}.{MINOR}.{MICRO}{STAGE}'
Expand All @@ -50,7 +51,6 @@
status=STATUS.get(RELEASE))
CLIB_DIR = os.path.join(sysconfig.get_path('purelib'), 'cuhnsw')
LIBRARY_DIRS = [CLIB_DIR]
PYBIND_INCLUDE = "3rd/pybind11/include"

with open("requirements.txt", "r") as fin:
INSTALL_REQUIRES = [line.strip() for line in fin]
Expand Down Expand Up @@ -85,8 +85,8 @@ def __init__(self, name):
extra_objects=[],
include_dirs=[ \
"cpp/include/", np.get_include(),
PYBIND_INCLUDE, CUDA['include'],
"3rd/json11", "3rd/spdlog/include"])
pybind11.get_include(), pybind11.get_include(True),
CUDA['include'], "3rd/json11", "3rd/spdlog/include"])
]


Expand Down

0 comments on commit d0c2ef1

Please sign in to comment.