try using system-wide headers

This commit is contained in:
Henning Peters 2015-12-13 12:41:46 +01:00
parent 92fabd0114
commit 63d74ae8f3

View File

@ -197,8 +197,7 @@ def setup_package():
write_version_py() write_version_py()
include_dirs = [ include_dirs = [
get_python_inc(plat_specific=True), get_python_inc(plat_specific=True)]
os.path.join(src_path, 'include')]
ext_modules = [] ext_modules = []
for mod_name in MOD_NAMES: for mod_name in MOD_NAMES:
@ -236,15 +235,15 @@ def setup_package():
shutil.rmtree(include_dir) shutil.rmtree(include_dir)
os.mkdir(include_dir) os.mkdir(include_dir)
import numpy # import numpy
shutil.copytree( # shutil.copytree(
os.path.join(numpy.get_include(), 'numpy'), # os.path.join(numpy.get_include(), 'numpy'),
os.path.join(include_dir, 'numpy')) # os.path.join(include_dir, 'numpy'))
import murmurhash # import murmurhash
shutil.copytree( # shutil.copytree(
os.path.join(os.path.dirname(murmurhash.__file__), 'headers', 'murmurhash'), # os.path.join(os.path.dirname(murmurhash.__file__), 'headers', 'murmurhash'),
os.path.join(include_dir, 'murmurhash')) # os.path.join(include_dir, 'murmurhash'))
try: try:
setup(**metadata) setup(**metadata)