-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add python zip file to a output group #9453
Conversation
After this change, users can get the python zip file of a certain target without using --build_python_zip_file by bazel build //foo:bar --output_groups=python_zip_file or filegroup( name = "bar_zip", srcs = ["//foo:bar"], output_group = "python_zip_file", )
This feels like a very promising alternative to subpar executables inside Docker containers. 👍 |
/cc @brandjon |
Ping @brandjon ! |
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.
This all looks good. Thanks for breaking it into three commits for easier reviewing. Recording my comment wording nits below but I'll apply them in the merge.
src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java
Show resolved
Hide resolved
Thanks for the review and importing! |
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.
Other changes in internal merge:
- make
createStubFile
static - add log line to test
- move test from
.../shell/integration/
to.../shell/bazel/
src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java
Show resolved
Hide resolved
All new images should be built with bazel, so we don't anticipate needing the loop any more. Also add a filegroup so that we don't need a separate bazel invocation with `--build_python_zip`; see bazelbuild/bazel#9453. Change-Id: I7e2203ac4efbfada7fa69565f6b0f27bf6979f25
After this change, users can get the python zip file of a certain
target without using
--build_python_zip
bybazel build //foo:bar --output_groups=python_zip_file
or
Fixes #3530