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 f6feca1 commit 6864decCopy full SHA for 6864dec
python/private/py_wheel.bzl
@@ -217,7 +217,15 @@ _other_attrs = {
217
),
218
"strip_path_prefixes": attr.string_list(
219
default = [],
220
- doc = "path prefixes to strip from files added to the generated package",
+ doc = """\
221
+Path prefixes to strip from files added to the generated package.
222
+Prefixes are checked **in order** and only the **first match** will be used.
223
+
224
+For example:
225
++ `["foo", "foo/bar/baz"]` will strip `"foo/bar/baz/file.py"` to `"bar/baz/file.py"`
226
++ `["foo/bar/baz", "foo"]` will strip `"foo/bar/baz/file.py"` to `"file.py"` and
227
+ `"foo/file2.py"` to `"file2.py"`
228
+""",
229
230
"summary": attr.string(
231
doc = "A one-line summary of what the distribution does",
0 commit comments