Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66149ed

Browse files
authored
BLD,BUG: Remove Python.h includes immediately preceeding pybind11/pybind11.h includes
pybind11 seems decent about including Python.h before any system headers, once you chase three layers of includes in to see that.
1 parent bdfc4ce commit 66149ed

File tree

6 files changed

+1
-8
lines changed

6 files changed

+1
-8
lines changed

src/_image_wrapper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <Python.h>
21
#include <pybind11/pybind11.h>
32
#include <pybind11/numpy.h>
43

src/_path.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#ifndef MPL_PATH_H
44
#define MPL_PATH_H
55

6-
#include <Python.h>
76
#include <limits>
87
#include <math.h>
98
#include <vector>

src/_qhull_wrapper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* triangulation, construct an instance of the matplotlib.tri.Triangulation
66
* class without specifying a triangles array.
77
*/
8-
#include <Python.h>
98
#include <pybind11/pybind11.h>
109
#include <pybind11/numpy.h>
1110

src/_ttconv.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
66
Python wrapper for TrueType conversion library in ../ttconv.
77
*/
8-
#include <Python.h>
9-
#include "mplutils.h"
10-
118
#include <pybind11/pybind11.h>
9+
#include "mplutils.h"
1210
#include "pprdrv.h"
1311
#include <vector>
1412

src/py_converters_11.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
// pybind11 equivalent of py_converters.h
55

6-
#include <Python.h>
76
#include <pybind11/pybind11.h>
87
#include <pybind11/numpy.h>
98

src/tri/_tri.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
#ifndef MPL_TRI_H
6464
#define MPL_TRI_H
6565

66-
#include <Python.h>
6766
#include <pybind11/pybind11.h>
6867
#include <pybind11/numpy.h>
6968

0 commit comments

Comments
 (0)