Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11_abseil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11_abseil
Commits
59e18114
Commit
59e18114
authored
Apr 20, 2021
by
Jean-Baptiste Lespiau
Committed by
Copybara-Service
Apr 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the installation.
PiperOrigin-RevId: 369445408
parent
64ff5366
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
README.md
+37
-0
No files found.
README.md
View file @
59e18114
...
@@ -24,6 +24,43 @@ including a separated header file:
...
@@ -24,6 +24,43 @@ including a separated header file:
#include "pybind11_abseil/absl_numpy_span_caster.h"
#include "pybind11_abseil/absl_numpy_span_caster.h"
```
```
## Installation
You will need to depend on
`pybind11`
,
`pybind11_bazel`
(see
[
doc
](
https://github.com/pybind/pybind11_bazel#installation
)
, and on
`pybind11_abseil`
, e.g.
```
git_repository(
name = "pybind11_bazel",
remote = "https://github.com/pybind/pybind11_bazel.git",
branch = "master",
)
http_archive(
name = "pybind11",
build_file = "@pybind11_bazel//:pybind11.BUILD",
strip_prefix = "pybind11-2.6.2",
sha256 = "8ff2fff22df038f5cd02cea8af56622bc67f5b64534f1b83b9f133b8366acff2",
urls = ["https://github.com/pybind/pybind11/archive/v2.6.2.tar.gz"],
)
load("@pybind11_bazel//:python_configure.bzl", "python_configure")
python_configure(name = "local_config_python")
git_repository(
name = "pybind11_abseil",
remote = "https://github.com/pybind/pybind11_abseil.git",
branch = "master",
)
```
Then, in your BUILD file:
```
load("@pybind11_bazel//:build_defs.bzl", "pybind_extension")
```
## absl::Duration
## absl::Duration
`absl::Duration`
objects are converted to/ from python datetime.timedelta objects.
`absl::Duration`
objects are converted to/ from python datetime.timedelta objects.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment