File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ setup.py
12
12
13
13
NumPy is needed to run the code.
14
14
15
- The MurmurHash3 library is distributed under the MIT license. More information https://code.google. com/smhasher
15
+ The MurmurHash3 library is distributed under the MIT license. More information https://github. com/aappleby /smhasher
16
16
17
17
18
18
installation
Original file line number Diff line number Diff line change 2
2
from __future__ import print_function
3
3
4
4
from setuptools import setup , Extension
5
- import numpy as np
6
5
7
6
USE_CYTHON = False
8
7
17
16
VERSION = '0.3.0'
18
17
19
18
ext = '.pyx' if USE_CYTHON else '.cpp'
19
+ try :
20
+ import numpy as np
21
+ includes = [np .get_include ()]
22
+ except ImportError :
23
+ includes = []
24
+
20
25
extensions = [Extension ("lsh.cMinhash" ,
21
26
["lsh/cMinhash{}" .format (ext ), 'lsh/MurmurHash3.cpp' ],
22
- include_dirs = [ np . get_include ()] )]
27
+ include_dirs = includes )]
23
28
if USE_CYTHON :
24
29
from Cython .Build import cythonize
25
30
You can’t perform that action at this time.
0 commit comments