Skip to content

python: Assert that libdir is a Path in all branches #1992

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

Merged
merged 2 commits into from
Aug 12, 2025

Conversation

nicholasjng
Copy link
Contributor

The inplace=True branch previously relied on some non-trivial interactions between str and pathlib.Path objects, which produces unexpected values in cases of s / p, where s is a string and p is an absolute path.

To fix, just create a pathlib.Path of the return value of build_py.get_package_dir().

The `inplace=True` branch previously relied on some non-trivial interactions
between `str` and `pathlib.Path` objects, which produces unexpected values in
cases of `s / p`, where `s` is a string and `p` is an absolute path.

To fix, just create a `pathlib.Path` of the return value of `build_py.get_package_dir()`.
@dmah42 dmah42 merged commit 6747309 into google:main Aug 12, 2025
84 checks passed
BuildMonkey pushed a commit to BuildMonkey/benchmark that referenced this pull request Aug 13, 2025
The `inplace=True` branch previously relied on some non-trivial interactions
between `str` and `pathlib.Path` objects, which produces unexpected values in
cases of `s / p`, where `s` is a string and `p` is an absolute path.

To fix, just create a `pathlib.Path` of the return value of `build_py.get_package_dir()`.

Co-authored-by: dominic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants