Skip to content

Commit d08ba2d

Browse files
author
peng.li24
committed
refactor: merge pycpp/_py.h into numpy/, delete pycpp/ umbrella
- Move init_py.h, elementwise_py.h, reduce_py.h, manipulation_py.h, io_py.h, linalg_py.h from pycpp/ → numpy/ - Delete pycpp/pycpp.h (umbrella with non-numpy name) - Delete empty pycpp/ directory - CMakeLists.txt: remove pycpp install block, _py.h files auto-installed with numpy/ directory wildcard - tests/module.cpp: replace #include "pycpp.h" with individual _py.h includes Now all headers live under a single numpy/ tree: #include <numpycpp/numpy/numpy.h> # C++ core #include <numpycpp/numpy/init_py.h> # pybind11 wrappers
1 parent 7c44cb4 commit d08ba2d

9 files changed

Lines changed: 6 additions & 28 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ endif()
4444
install(DIRECTORY numpy
4545
DESTINATION include/numpycpp
4646
FILES_MATCHING PATTERN "*.h"
47-
)
48-
install(DIRECTORY pycpp
49-
DESTINATION include/numpycpp
50-
FILES_MATCHING PATTERN "*.h"
5147
PATTERN ".pytest_cache" EXCLUDE
5248
)
5349

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pycpp/pycpp.h

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/module.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
#include <pybind11/pybind11.h>
66
#include <pybind11/stl.h>
7-
#include "pycpp.h"
7+
#include "numpy/init_py.h"
8+
#include "numpy/elementwise_py.h"
9+
#include "numpy/reduce_py.h"
10+
#include "numpy/manipulation_py.h"
11+
#include "numpy/io_py.h"
12+
#include "numpy/linalg_py.h"
813

914
namespace py = pybind11;
1015

0 commit comments

Comments
 (0)