-
Notifications
You must be signed in to change notification settings - Fork 6.9k
[doc] wheel: update steps for building and installing #58457
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -204,15 +204,8 @@ Enter into the ``python/`` directory inside of the Ray project directory and ins | |||||
|
|
||||||
| .. code-block:: bash | ||||||
|
|
||||||
| # Install Ray. | ||||||
| cd python/ | ||||||
| # Install required dependencies. | ||||||
| pip install -r requirements.txt | ||||||
| # You may need to set the following two env vars if you have a macOS ARM64(M1) platform. | ||||||
| # See https://github.com/grpc/grpc/issues/25082 for more details. | ||||||
| # export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 | ||||||
| # export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 | ||||||
| pip install -e . --verbose # Add --user if you see a permission denied error. | ||||||
| # Build Ray wheels; install Ray and required dependencies in editable mode. | ||||||
| pip wheel -v -c python/requirements_compiled.txt -w .whl -e python | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The command as written is invalid because To install Ray in editable mode, you should use
Suggested change
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://pip.pypa.io/en/stable/cli/pip_wheel/#cmdoption-e wake up, gemini!
Comment on lines
+207
to
+208
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The instruction in the line preceding this code block, To prevent user confusion, please update the instructional text. For example: |
||||||
|
|
||||||
| The ``-e`` means "editable", so changes you make to files in the Ray | ||||||
| directory will take effect without reinstalling the package. | ||||||
|
|
||||||
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.
Bug:
pip wheel: Build, Not InstallThe command
pip wheel -v -c python/requirements_compiled.txt -w .whl -e pythononly builds wheel files but doesn't install Ray. Thepip wheelcommand creates wheel files in the.whldirectory without installing them, so Ray won't be available for development. The comment claims it "install[s] Ray and required dependencies in editable mode" and the explanation states changes will "take effect without reinstalling" which is incorrect since nothing gets installed. The CI scripts show bothpip install -v -e pythonandpip wheel -e python -w .whlare needed as separate steps.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 is more correct..
more work to do.