-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04e66c8
commit b809fa6
Showing
55 changed files
with
3,836 additions
and
893 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -*- python -*- | ||
|
||
load("@drake//tools/install:install.bzl", "install") | ||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
load("@drake//tools/skylark:drake_cc.bzl", "drake_cc_library") | ||
load("@drake//tools/skylark:drake_py.bzl", "drake_py_unittest") | ||
load("@drake//tools/skylark:pybind.bzl", "pybind_py_library") | ||
|
||
package(default_visibility = [ | ||
"//bindings:__subpackages__", | ||
]) | ||
|
||
drake_cc_library( | ||
name = "numpy_dtypes_user", | ||
hdrs = [ | ||
"numpy_dtypes_user.h", | ||
"numpy_ufunc.h", | ||
], | ||
declare_installed_headers = 0, | ||
deps = [ | ||
"//bindings/pydrake/util:type_pack", | ||
"//bindings/pydrake/util:wrap_function", | ||
"@pybind11", | ||
], | ||
) | ||
|
||
install( | ||
name = "install", | ||
targets = ["numpy_dtypes_user"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
pybind_py_library( | ||
name = "numpy_dtypes_user_test_util_py", | ||
testonly = 1, | ||
cc_deps = [ | ||
":numpy_dtypes_user", | ||
"@fmt", | ||
], | ||
cc_so_name = "numpy_dtypes_user_test_util", | ||
cc_srcs = ["test/numpy_dtypes_user_test_util_py.cc"], | ||
py_imports = ["."], | ||
) | ||
|
||
drake_py_unittest( | ||
name = "numpy_dtypes_user_test", | ||
deps = [":numpy_dtypes_user_test_util_py"], | ||
) | ||
|
||
add_lint_tests() |
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,3 @@ | ||
# pybind11 extensions | ||
|
||
Provides the ability to provide uesr-defined dtypes in NumPy. |
Oops, something went wrong.