Skip to content

Commit

Permalink
Aksetup: fix include dir property hack
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Oct 17, 2015
1 parent 70caa9a commit a293c25
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions aksetup_helper.py
Expand Up @@ -47,8 +47,11 @@ def get_numpy_incpath(self):
from os.path import join
return join(pathname, "core", "include")

def get_additional_include_dirs(self):
return [self.get_numpy_incpath()]

def get_include_dirs(self):
return self._include_dirs + [self.get_numpy_incpath()]
return self._include_dirs + self.get_additional_include_dirs()

def set_include_dirs(self, value):
self._include_dirs = value
Expand All @@ -64,12 +67,9 @@ def get_module_include_path(self, name):
from pkg_resources import Requirement, resource_filename
return resource_filename(Requirement.parse(name), "%s/include" % name)

@property
def include_dirs(self):
return self._include_dirs + [
self.get_numpy_incpath(),
self.get_module_include_path("pyublas"),
]
def get_additional_include_dirs(self):
return (super(PyUblasExtension, self).get_additional_include_dirs()
+ [self.get_module_include_path("pyublas")])


class HedgeExtension(PyUblasExtension):
Expand Down

0 comments on commit a293c25

Please sign in to comment.