mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
pybind11.get_include(): added *args and **kwargs pass-through parameters
This commit is contained in:
parent
7ca2755880
commit
5a2924275c
@ -1,11 +1,11 @@
|
|||||||
from ._version import version_info, __version__
|
from ._version import version_info, __version__
|
||||||
|
|
||||||
|
|
||||||
def get_include():
|
def get_include(*args, **kwargs):
|
||||||
import os
|
import os
|
||||||
try:
|
try:
|
||||||
from pip import locations
|
from pip import locations
|
||||||
return os.path.dirname(
|
return os.path.dirname(
|
||||||
locations.distutils_scheme('pybind11')['headers'])
|
locations.distutils_scheme('pybind11', *args, **kwargs)['headers'])
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return 'include'
|
return 'include'
|
||||||
|
Loading…
Reference in New Issue
Block a user