function for retrieving the header file path (fixes #158)

This commit is contained in:
Wenzel Jakob 2016-04-13 18:46:05 +02:00
parent ef7a9b9a3f
commit 1a060fd70d

View File

@ -1 +1,11 @@
from ._version import version_info, __version__ from ._version import version_info, __version__
def get_include():
import os
try:
from pip import locations
return os.path.dirname(
locations.distutils_scheme('pybind11')['headers'])
except ImportError:
return 'include'