Rename example20 -> example-numpy-dtypes
diff --git a/.gitignore b/.gitignore
index 4b9df18..d1676c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,4 @@
.DS_Store
/dist
/build
+/cmake/
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index b6d3804..2cc8f83 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -26,7 +26,7 @@
example-stl-binder-vector.cpp
example-eval.cpp
example-custom-exceptions.cpp
- example20.cpp
+ example-numpy-dtypes.cpp
issues.cpp
)
diff --git a/example/example20.cpp b/example/example-numpy-dtypes.cpp
similarity index 97%
rename from example/example20.cpp
rename to example/example-numpy-dtypes.cpp
index 07849a0..2e25670 100644
--- a/example/example20.cpp
+++ b/example/example-numpy-dtypes.cpp
@@ -1,5 +1,5 @@
/*
- example/example20.cpp -- Usage of structured numpy dtypes
+ example/example-numpy-dtypes.cpp -- Structured and compound NumPy dtypes
Copyright (c) 2016 Ivan Smirnov
@@ -169,7 +169,7 @@
std::cout << to_str(py::dtype_of<StringStruct>()) << std::endl;
}
-void init_ex20(py::module &m) {
+void init_ex_numpy_dtypes(py::module &m) {
PYBIND11_NUMPY_DTYPE(SimpleStruct, x, y, z);
PYBIND11_NUMPY_DTYPE(PackedStruct, x, y, z);
PYBIND11_NUMPY_DTYPE(NestedStruct, a, b);
diff --git a/example/example20.py b/example/example-numpy-dtypes.py
similarity index 100%
rename from example/example20.py
rename to example/example-numpy-dtypes.py
diff --git a/example/example20.ref b/example/example-numpy-dtypes.ref
similarity index 100%
rename from example/example20.ref
rename to example/example-numpy-dtypes.ref
diff --git a/example/example.cpp b/example/example.cpp
index 819f69f..bd6ac9b 100644
--- a/example/example.cpp
+++ b/example/example.cpp
@@ -29,7 +29,7 @@
void init_ex_stl_binder_vector(py::module &);
void init_ex_eval(py::module &);
void init_ex_custom_exceptions(py::module &);
-void init_ex20(py::module &);
+void init_ex_numpy_dtypes(py::module &);
void init_issues(py::module &);
#if defined(PYBIND11_TEST_EIGEN)
@@ -73,7 +73,7 @@
init_ex_stl_binder_vector(m);
init_ex_eval(m);
init_ex_custom_exceptions(m);
- init_ex20(m);
+ init_ex_numpy_dtypes(m);
init_issues(m);
#if defined(PYBIND11_TEST_EIGEN)