Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Copyright (c) 2025-2025, The OpenROAD Authors

load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
load("@openroad_rules_python//python:defs.bzl", "py_library")
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_python//python:defs.bzl", "py_library")
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
load("//bazel:notification.bzl", "notification_rule")
load("//bazel:python_wrap_cc.bzl", "PYTHON_EXTENSION_LINKOPTS", "PYTHON_STABLE_API_DEFINE", "python_wrap_cc")
Expand Down Expand Up @@ -318,7 +318,7 @@ cc_binary(
"//src/tap",
"//src/utl",
"@boost.stacktrace",
"@openroad_rules_python//python/cc:current_py_cc_headers",
"@rules_python//python/cc:current_py_cc_headers",
],
)

Expand Down
12 changes: 3 additions & 9 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ bazel_dep(name = "rules_cc", version = "0.1.2")
bazel_dep(name = "rules_flex", version = "0.3.1")
bazel_dep(name = "rules_bison", version = "0.3.1")
bazel_dep(name = "rules_jvm_external", version = "6.4")
bazel_dep(name = "rules_python", version = "1.8.5")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "rules_scala")
git_override(
Expand Down Expand Up @@ -120,21 +121,14 @@ register_toolchains(
"@rules_verilator//verilator:verilator_toolchain",
)

bazel_dep(
name = "rules_python",
version = "1.2.0",
# reduce namespace collisions by prefixing with openroad
repo_name = "openroad_rules_python",
)

python = use_extension("@openroad_rules_python//python/extensions:python.bzl", "python")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
ignore_root_user_error = True,
python_version = "3.13",
)
use_repo(python, "python_3_13")

pip = use_extension("@openroad_rules_python//python/extensions:pip.bzl", "pip")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "openroad-pip",
python_version = "3.13",
Expand Down
242 changes: 239 additions & 3 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bazel/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@openroad_rules_python//python:pip.bzl", "compile_pip_requirements")
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")

package(features = ["layering_check"])

Expand Down
2 changes: 1 addition & 1 deletion etc/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@openroad_rules_python//python:defs.bzl", "py_binary")
load("@rules_python//python:defs.bzl", "py_binary")

package(features = ["layering_check"])

Expand Down
4 changes: 2 additions & 2 deletions openroad/BUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
load("@openroad_rules_python//python:defs.bzl", "py_library")
load("@rules_python//python:defs.bzl", "py_library")

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2025-2025, The OpenROAD Authors
load("@openroad_rules_python//python:packaging.bzl", "py_package", "py_wheel")
load("@rules_python//python:packaging.bzl", "py_package", "py_wheel")

package(features = ["layering_check"])

Expand Down
4 changes: 2 additions & 2 deletions src/gpl/BUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2025, The OpenROAD Authors

load("@openroad_rules_python//python:defs.bzl", "py_library")
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_python//python:defs.bzl", "py_library")
load("//bazel:python_wrap_cc.bzl", "PYTHON_EXTENSION_LINKOPTS", "PYTHON_STABLE_API_DEFINE", "python_wrap_cc")
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
Expand Down Expand Up @@ -103,7 +103,7 @@ cc_binary(
"//src/odb",
"//src/utl",
"@boost.stacktrace",
"@openroad_rules_python//python/cc:current_py_cc_headers",
"@rules_python//python/cc:current_py_cc_headers",
],
)

Expand Down
2 changes: 1 addition & 1 deletion src/gpl/test/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@openroad_rules_python//python:defs.bzl", "py_library", "py_test")
load("@rules_cc//cc:cc_test.bzl", "cc_test")
load("@rules_python//python:defs.bzl", "py_library", "py_test")
load("//test:regression.bzl", "regression_test")

package(features = ["layering_check"])
Expand Down
4 changes: 2 additions & 2 deletions src/odb/BUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2025-2025, Precision Innovations Inc.

load("@openroad_rules_python//python:defs.bzl", "py_library")
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_python//python:defs.bzl", "py_library")
load("//bazel:python_wrap_cc.bzl", "PYTHON_EXTENSION_LINKOPTS", "PYTHON_STABLE_API_DEFINE", "python_wrap_cc")
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
Expand Down Expand Up @@ -109,7 +109,7 @@ cc_binary(
linkshared = True,
deps = [
":odb", # Depends on the core odb C++ library
"@openroad_rules_python//python/cc:current_py_cc_headers",
"@rules_python//python/cc:current_py_cc_headers",
],
)

Expand Down
2 changes: 1 addition & 1 deletion src/odb/test/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@openroad_rules_python//python:defs.bzl", "py_library", "py_test")
load("@rules_python//python:defs.bzl", "py_library", "py_test")

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2022-2025, The OpenROAD Authors
Expand Down
6 changes: 3 additions & 3 deletions src/utl/BUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2025, The OpenROAD Authors

load("@openroad_rules_python//python:defs.bzl", "py_library")
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_python//python:defs.bzl", "py_library")
load("//bazel:python_wrap_cc.bzl", "PYTHON_EXTENSION_LINKOPTS", "PYTHON_STABLE_API_DEFINE", "python_wrap_cc")
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
Expand Down Expand Up @@ -110,7 +110,7 @@ cc_binary(
deps = [
"//src/utl",
"@boost.stacktrace",
"@openroad_rules_python//python/cc:current_py_cc_headers",
"@rules_python//python/cc:current_py_cc_headers",
],
)

Expand Down Expand Up @@ -152,7 +152,7 @@ cc_library(
"@boost.iterator",
"@boost.random",
"@boost.stacktrace",
"@openroad_rules_python//python/cc:current_py_cc_headers",
"@rules_python//python/cc:current_py_cc_headers",
"@spdlog",
"@tcl_lang//:tcl",
],
Expand Down