Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed May 8, 2024
1 parent 4e4f8b2 commit 2af8aa2
Show file tree
Hide file tree
Showing 14 changed files with 7,357 additions and 102 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.1.1
42 changes: 22 additions & 20 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,35 @@ module(
version = "0.0.0",
)

bazel_dep(name = "rules_python", version = "0.21.0")
bazel_dep(name = "rules_python", version = "0.31.0")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "aspect_bazel_lib", version = "1.39.0")
bazel_dep(name = "pybind11_bazel", version = "2.11.1")
bazel_dep(name = "aspect_bazel_lib", version = "2.7.2")
bazel_dep(name = "pybind11_bazel", version = "2.12.0")
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1")

pip = use_extension("@rules_python//python:extensions.bzl", "pip")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
name = "rules_robotpy_utils_pip_deps",
hub_name = "rules_robotpy_utils_pip_deps",
python_version = "3.11",
requirements_darwin = "//:requirements_darwin.txt",
requirements_lock = "//:requirements_lock.txt",
requirements_windows = "//:requirements_windows.txt",
)
use_repo(pip, "rules_robotpy_utils_pip_deps")

python_configure = use_extension("@pybind11_bazel//:python_configure.bzl", "extension")
python_configure.toolchain(python_version = "3")
use_repo(python_configure, "local_config_python", "pybind11")

python = use_extension("@rules_python//python:extensions.bzl", "python")
python.toolchain(
name = "python3_10",
ignore_root_user_error = True,
python_version = "3.10",
)
use_repo(python, "python3_10_toolchains")

register_toolchains(
"@python3_10_toolchains//:all",
)
# python_configure = use_extension("@pybind11_bazel//:python_configure.bzl", "extension")
# python_configure.toolchain(python_version = "3")
# use_repo(python_configure, "local_config_python", "pybind11")
#
# python = use_extension("@rules_python//python:extensions.bzl", "python")
# python.toolchain(
# name = "python3_10",
# ignore_root_user_error = True,
# python_version = "3.10",
# )
# use_repo(python, "python3_10_toolchains")
#
# register_toolchains(
# "@python3_10_toolchains//:all",
# )
#
Loading

0 comments on commit 2af8aa2

Please sign in to comment.