Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update aksetup. Include README.rst in manifest.

  • Loading branch information...
commit 727b9a5e3c0ebe3e0789977b0e65fe73542e1331 1 parent c3f8a9d
@inducer authored
Showing with 3 additions and 11 deletions.
  1. +1 −0  MANIFEST.in
  2. +2 −11 aksetup_helper.py
View
1  MANIFEST.in
@@ -16,6 +16,7 @@ include configure.py
include Makefile.in
include aksetup_helper.py
include README_SETUP.txt
+include README.rst
recursive-include bpl-subset/bpl_subset/boost *.h *.hpp *.cpp *.html *.inl *.ipp *.pl *.txt
recursive-include bpl-subset/bpl_subset/libs *.h *.hpp *.cpp *.html *.inl *.ipp *.pl *.txt
View
13 aksetup_helper.py
@@ -85,17 +85,8 @@ def del_include_dirs(self):
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, 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)
+ from pkg_resources import Requirement, resource_filename
+ return resource_filename(Requirement.parse(name), "%s/include" % name)
@property
def include_dirs(self):
Please sign in to comment.
Something went wrong with that request. Please try again.