Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Update aksetup_helper to find include paths for development-mode pack…
…ages.
  • Loading branch information
inducer committed May 6, 2009
1 parent 5ee453a commit 9b9da79
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions aksetup_helper.py
Expand Up @@ -50,8 +50,15 @@ class PyUblasExtension(NumpyExtension):
def get_module_include_path(self, name):
from imp import find_module
file, pathname, descr = find_module(name)
from os.path import join
return join(pathname, "..", "include")
from os.path import join, exists
installed_path = join(pathname, "..", "include")
development_path = join(pathname, "..", "src", "cpp")
if exists(installed_path):
return installed_path
elif exists(development_path):
return development_path
else:
raise RuntimeError("could not find C include path for module '%s'" % name)

@property
def include_dirs(self):
Expand Down

0 comments on commit 9b9da79

Please sign in to comment.