-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: add ability to pass user flags to python interpreter #442
feat: add ability to pass user flags to python interpreter #442
Conversation
Also, one other change for the debug use case is that the run template should set the |
81d4469
to
9e882de
Compare
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.
optional: maybe we should document a bit more about the --compilation_mode dbg
use case you'll use this for
9e882de
to
4aa0f58
Compare
4aa0f58
to
9ba3f47
Compare
This one I would prefer to add in a separate example, as I need to create minimalistic example not applied to our monorepo first |
This change is meant to demonstrate the proposed update for the following feature request: #436
Changes are visible to end-users: yes
Users can influence behaviour of interpreter by passing additional flags via interpreter_args attribute
Test plan
Modified py_binary with new attribute
Ran bazel target
bazel run //path/to/rules_py/py_binary/target:foo
From VSCode side:
Used Run&Debug tab in VSCode to set breakpoints, connect to program and debug.
I also tried to do proposed here (#436) way with select and
-c dbg
, it works, but less minimalistic to show proposed change