mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 07:02:11 +00:00
bad1740213
A flake8 configuration is included in setup.cfg and the checks are executed automatically on Travis: * Ensures a consistent PEP8 code style * Does basic linting to prevent possible bugs
12 lines
336 B
Python
12 lines
336 B
Python
from ._version import version_info, __version__ # noqa: F401 imported but unused
|
|
|
|
|
|
def get_include(*args, **kwargs):
|
|
import os
|
|
try:
|
|
from pip import locations
|
|
return os.path.dirname(
|
|
locations.distutils_scheme('pybind11', *args, **kwargs)['headers'])
|
|
except ImportError:
|
|
return 'include'
|