[pybind11] 05/09: Use system include path

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri Dec 23 16:56:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository pybind11.

commit 473b9c87f534623580a1d2bb1d887133bf9da8cc
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Dec 23 16:31:56 2016 +0000

    Use system include path
---
 pybind11/__init__.py |  8 +-------
 setup.py             | 19 -------------------
 2 files changed, 1 insertion(+), 26 deletions(-)

diff --git a/pybind11/__init__.py b/pybind11/__init__.py
index a765692..a7d57c3 100644
--- a/pybind11/__init__.py
+++ b/pybind11/__init__.py
@@ -2,10 +2,4 @@ from ._version import version_info, __version__  # noqa: F401 imported but unuse
 
 
 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'
+    return '/usr/include'
diff --git a/setup.py b/setup.py
index e9bc3c3..30cfb02 100644
--- a/setup.py
+++ b/setup.py
@@ -15,25 +15,6 @@ setup(
     download_url='https://github.com/wjakob/pybind11/tarball/v' + __version__,
     packages=['pybind11'],
     license='BSD',
-    headers=[
-        'include/pybind11/attr.h',
-        'include/pybind11/cast.h',
-        'include/pybind11/chrono.h',
-        'include/pybind11/common.h',
-        'include/pybind11/complex.h',
-        'include/pybind11/descr.h',
-        'include/pybind11/eigen.h',
-        'include/pybind11/eval.h',
-        'include/pybind11/functional.h',
-        'include/pybind11/numpy.h',
-        'include/pybind11/operators.h',
-        'include/pybind11/options.h',
-        'include/pybind11/pybind11.h',
-        'include/pybind11/pytypes.h',
-        'include/pybind11/stl.h',
-        'include/pybind11/stl_bind.h',
-        'include/pybind11/typeid.h',
-    ],
     classifiers=[
         'Development Status :: 5 - Production/Stable',
         'Intended Audience :: Developers',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pybind11.git



More information about the debian-science-commits mailing list