-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Remove the '--include-java' option #10594
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
Remove the '--include-java' option #10594
Conversation
chaokunyang
left a comment
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
fd1eef7 to
a16580b
Compare
|
|
||
| has_java_command = False | ||
| try: | ||
| java_proc = subprocess.run( |
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.
Will this command output be printed to console?
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.
No. subprocess.PIPE means capturing the output.
Why are these changes needed?
We can detect if Java is installed automatically.
Changes:
--include-javaoption and detect Java environment automatically.We need to disable initial workers for Java, otherwise, initial Java workers will be spawned and Python users may be confused.
Related issue number
Closes #10434
Checks
scripts/format.shto lint the changes in this PR.