Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Bazel recursive stubgen example #54

Open
wants to merge 6 commits into
base: bazel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'bazel' into bazel-recursive-stubgen
  • Loading branch information
nicholasjng authored Dec 10, 2024
commit 0da8033e2542cb1581ea0a0ba06ebc98c9378788
24 changes: 3 additions & 21 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
module(
name = "nanobind_example",
version = "0.1.0",
)

bazel_dep(name = "nanobind_bazel", version = "")
local_path_override(
module_name = "nanobind_bazel",
path = "../nanobind-bazel",
)

bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
commit = "204aa593e002cbd177d30f11f54cff3559110bb9",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
)
module(name = "nanobind_example", version = "0.1.0")

bazel_dep(name = "nanobind_bazel", version = "2.2.0")
bazel_dep(name = "rules_python", version = "1.0.0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
Expand All @@ -28,7 +13,4 @@ python.toolchain(
python_version = "3.12",
)

use_repo(
python,
python = "python_versions",
)
use_repo(python, python = "python_versions")
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class BuildBazelExtension(build_ext.build_ext):
def run(self):
for ext in self.extensions:
self.bazel_build(ext)

# explicitly call `bazel shutdown` for graceful exit
self.spawn(["bazel", "shutdown"])

Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.