mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-04 22:46:15 +08: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__
|
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…
x
Reference in New Issue
Block a user