mirror of
https://github.com/The-OpenROAD-Project/OpenROAD.git
synced 2026-06-02 01:08:34 +08:00
Give the Python bindings target a clean external name. This is the public API for scripting OpenROAD from downstream projects via Python. Signed-off-by: Claude Code <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
45 lines
937 B
Python
45 lines
937 B
Python
load("@rules_python//python:defs.bzl", "py_library")
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) 2025-2025, The OpenROAD Authors
|
|
load("@rules_python//python:packaging.bzl", "py_package", "py_wheel")
|
|
|
|
package(features = ["layering_check"])
|
|
|
|
py_library(
|
|
name = "openroadpy",
|
|
srcs = [
|
|
"__init__.py",
|
|
"odb.py",
|
|
"utl.py",
|
|
],
|
|
imports = [".."],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//:openroad_py",
|
|
"//src/odb:odb_py",
|
|
"//src/utl:utl_py",
|
|
],
|
|
)
|
|
|
|
py_package(
|
|
name = "openroad_pkg",
|
|
deps = [
|
|
":openroadpy",
|
|
],
|
|
)
|
|
|
|
py_wheel(
|
|
name = "openroad_wheel",
|
|
abi = "abi3",
|
|
distribution = "openroad",
|
|
homepage = "https://github.com/The-OpenROAD-Project/OpenROAD",
|
|
platform = "linux_x86_64",
|
|
python_requires = ">=3.10",
|
|
python_tag = "cp310",
|
|
version = "0.0.1",
|
|
deps = [
|
|
":openroad_pkg",
|
|
],
|
|
)
|