We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d52283 commit d24860fCopy full SHA for d24860f
setup.py
@@ -131,7 +131,11 @@ def bazel_build(self, ext: BazelExtension) -> None: # noqa: C901
131
pkgname = "google_benchmark"
132
pythonroot = Path("bindings") / "python" / "google_benchmark"
133
srcdir = temp_path / "bazel-bin" / pythonroot
134
- libdir = Path(self.build_lib) / pkgname
+ if not self.inplace:
135
+ libdir = Path(self.build_lib) / pkgname
136
+ else:
137
+ build_py = self.get_finalized_command("build_py")
138
+ libdir = build_py.get_package_dir(pkgname)
139
for root, dirs, files in os.walk(srcdir, topdown=True):
140
# exclude runfiles directories and children.
141
dirs[:] = [d for d in dirs if "runfiles" not in d]
0 commit comments