-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from ssciwr/restructure
Restructure project layout to allow mixing of pure Python and compiled module
- Loading branch information
Showing
31 changed files
with
199 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
add_library(pybind11_numpy_example pybind11_numpy_example.cpp) | ||
target_include_directories( | ||
pybind11_numpy_example | ||
PUBLIC $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include/> | ||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "pybind11_numpy_example/pybind11_numpy_example.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,9 @@ description = "An example of using numpy with pybind11" | |
readme = "README.md" | ||
license = {text = "MIT"} | ||
authors=[{name="Liam Keegan", email="[email protected]"}] | ||
maintainers=[{name="Liam Keegan", email="[email protected]"}] | ||
requires-python = ">=3.7" | ||
keywords = ["pybind11", "cibuildwheel", "c++", "pypi", "numpy", "simple", "example"] | ||
classifiers=[ | ||
"Programming Language :: C++", | ||
"Programming Language :: Python :: 3 :: Only", | ||
|
@@ -29,6 +31,7 @@ classifiers=[ | |
|
||
[project.urls] | ||
Github = "https://github.com/ssciwr/pybind11-numpy-example" | ||
Documentation = "https://pybind11-numpy-example.readthedocs.io" | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest", "numpy"] | ||
|
@@ -41,5 +44,5 @@ BUILD_DOCS = "OFF" | |
|
||
[tool.cibuildwheel] | ||
test-extras = "test" | ||
test-command = "python -m pytest {project}/python/tests -v" | ||
test-command = "python -m pytest {project}/tests/python -v" | ||
test-skip = "pp* *-musllinux* *-manylinux_i686" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
#n memory (kb) | ||
1000 18896 | ||
10000 18864 | ||
100000 19560 | ||
1000000 23260 | ||
10000000 58380 | ||
50000000 214536 | ||
100000000 410024 | ||
200000000 800452 | ||
300000000 1191012 | ||
400000000 1581412 | ||
1000000000 3925392 | ||
2000000000 7831684 | ||
3000000000 11737892 | ||
4000000000 15644044 | ||
1000 20648 | ||
10000 20664 | ||
100000 20840 | ||
1000000 24520 | ||
10000000 59672 | ||
50000000 215920 | ||
100000000 411412 | ||
200000000 801848 | ||
300000000 1192548 | ||
400000000 1583112 | ||
600000000 2363992 | ||
800000000 3145808 | ||
1000000000 3926680 | ||
1200000000 4708296 | ||
2000000000 7832800 | ||
3000000000 11739192 | ||
4000000000 15645488 | ||
6000000000 23458288 | ||
8000000000 31270592 | ||
10000000000 39083108 | ||
12000000000 46895616 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
#n memory (kb) | ||
1000 18808 | ||
10000 18864 | ||
100000 18936 | ||
1000000 20912 | ||
10000000 38284 | ||
50000000 116396 | ||
100000000 214164 | ||
200000000 409508 | ||
300000000 604768 | ||
400000000 800084 | ||
1000000000 1971984 | ||
2000000000 3925016 | ||
3000000000 5878236 | ||
4000000000 7831396 | ||
5000000000 9784604 | ||
6000000000 11737484 | ||
7000000000 13690668 | ||
8000000000 15643960 | ||
1000 20656 | ||
10000 20668 | ||
100000 20844 | ||
1000000 22596 | ||
10000000 39936 | ||
50000000 118080 | ||
100000000 215964 | ||
200000000 411264 | ||
300000000 606336 | ||
400000000 801716 | ||
600000000 1192512 | ||
800000000 1583148 | ||
1000000000 1973368 | ||
1200000000 2364404 | ||
2000000000 3926908 | ||
3000000000 5880000 | ||
4000000000 7832964 | ||
6000000000 11739264 | ||
8000000000 15645624 | ||
10000000000 19551908 | ||
12000000000 23457968 | ||
14000000000 27364404 | ||
16000000000 31270648 | ||
18000000000 35176512 | ||
20000000000 39083136 | ||
24000000000 46895548 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
#n memory (kb) | ||
1000 0 | ||
10000 444 | ||
100000 4164 | ||
1000000 41356 | ||
10000000 414140 | ||
50000000 2069920 | ||
100000000 4139380 | ||
200000000 8278588 | ||
300000000 12418828 | ||
400000000 16557252 | ||
1000 192 | ||
10000 384 | ||
100000 4224 | ||
1000000 41088 | ||
10000000 410304 | ||
50000000 2050752 | ||
100000000 4101504 | ||
200000000 8203200 | ||
300000000 12304704 | ||
400000000 16405824 | ||
600000000 24609216 | ||
800000000 32811840 | ||
1000000000 41014464 | ||
1200000000 49218432 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.