-
Notifications
You must be signed in to change notification settings - Fork 550
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
tweak(whl_library): capture arbitrary files as data #1730
base: main
Are you sure you want to change the base?
tweak(whl_library): capture arbitrary files as data #1730
Conversation
Thanks for the PR @arrdem, could you please fix the tests and add a CHANGELOG item so that we can merge it? This looks like a really useful feature. |
Wilco. Work's a bit crazy atm just wanted to get this patch in the upstream pipe before I forgot about it since it was trivial. |
There we go. Ready @aignas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-read this again and LGTM
Could you add a Changelog note so that I can merge? |
python/pip_install/private/generate_whl_library_build_bazel.bzl
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, could you please add a line in the Changed section in the Changelod.md file please? It is not automatically generated from the commit messages, so each contributions needs to have an entry there. Thanks for the PR!
This fixes wheels like ruff which want to emplace bin/ and other dirs used as library data.
Co-authored-by: Ignas Anikevicius <[email protected]>
8e4ebc0
to
deab84d
Compare
Hrm. Reading through https://peps.python.org/pep-0491/#file-contents, I'm wondering if this actually makes sense. It feels like while it may well make sense to have a On the same note whether the data should be a dependency of the library seems arguable. |
Looking at https://peps.python.org/pep-0491/#install-paths I am wondering if the right way to fix this would be to add the extra filegroup targets for each item listed in the UNIX install scheme. That said, we may want to include all of those filegroups into the That said having the filegroups exposed would make the |
Missclick. That makes sense to me. The main other thing I want to do is to teach the wheel installer to identify scripts/binaries already in the |
Thanks! Is it so that you could later use the py_console_script_binary to use those scripts? |
I was thinking about this recently, and I'm wondering if the neatest way of solving this is to mirror what was done for The main motivator for accessing See:
Maybe we should consider the following:
There are some caveats that old school |
This fixes wheels like ruff which want to emplace
bin/
and other dirs used as library data.