Skip to content

Commit

Permalink
Add stim.pyi to bazel dev build (#666)
Browse files Browse the repository at this point in the history
This makes autocomplete work when testing and debugging wheels during developments.
  • Loading branch information
Strilanc authored Nov 21, 2023
1 parent eb08747 commit 39c0217
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,20 @@ cc_binary(
deps = ["@pybind11"],
)

genrule(
name = "stim_wheel_files",
srcs = ["doc/stim.pyi"],
outs = ["stim.pyi"],
cmd = "cp $(location doc/stim.pyi) $@",
)

py_wheel(
name = "stim_dev_wheel",
distribution = "stim",
requires = ["numpy"],
version = "0.0.dev0",
deps = [":stim.so"],
deps = [
":stim.so",
":stim_wheel_files",
],
)

0 comments on commit 39c0217

Please sign in to comment.