bazel-contrib / bazel-contrib/rules_python

docs: update py_wheel to show prefix stripping

Open
#3,218 0 comments 0 reactions 0 assignees View on GitHub
packaging type: documentation
Dominant language
Starlark
Stars
688
Forks
721
Avg merge
14h 49m
Merged PRs (30d)
81

Description

While talking to a user, they didn't realize py_wheel had a prefix-stripping ability.

With src-based layouts being common, I think it makes sense to update the example to show how to transform it into the desired wheel output. (This same problem would occur for a repo with multiple sub-projects, too).

Prompt:

```
Act as an expert in Sphinx, MyST, rules_python, Starlark, Bazel.

Update the py_wheel how to guide to show how to transform files using a src-layout.

Use the py_wheel.strip_path_prefixes arg to do this.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.