mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
function for retrieving the header file path (fixes #158)
This commit is contained in:
parent
ef7a9b9a3f
commit
1a060fd70d
@ -1 +1,11 @@
|
||||
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'
|
||||
|
Loading…
Reference in New Issue
Block a user