GeezerVison is showing github.com — BLD: use numpy get_include · wangtingpython/zipline@9a253d5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: setup.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
24 | 24 | join, |
25 | 25 | ) |
26 | 26 | from distutils.version import StrictVersion |
27 | | -from pkg_resources import resource_filename |
28 | 27 | from setuptools import ( |
29 | 28 | Extension, |
30 | 29 | find_packages, |
@@ -55,6 +54,7 @@ def __getitem__(self, key): |
55 | 54 | return super(LazyBuildExtCommandClass, self).__getitem__(key) |
56 | 55 |
|
57 | 56 | from Cython.Distutils import build_ext as cython_build_ext |
| 57 | + import numpy |
58 | 58 |
|
59 | 59 | # Cython_build_ext isn't a new-style class in Py2. |
60 | 60 | class build_ext(cython_build_ext, object): |
@@ -70,7 +70,7 @@ def build_extensions(self): |
70 | 70 | may be run before numpy has been installed, in which case |
71 | 71 | importing numpy and calling `numpy.get_include()` will fail. |
72 | 72 | """ |
73 | | - numpy_incl = resource_filename('numpy', 'core/include') |
| 73 | + numpy_incl = numpy.get_include() |
74 | 74 | for ext in self.extensions: |
75 | 75 | ext.include_dirs.append(numpy_incl) |
76 | 76 |
|
|