Skip to content

Conversation

@aslonnie
Copy link
Collaborator

@aslonnie aslonnie commented Nov 7, 2025

pip install a directory directly with setup.py is deprecated.

pip install a directory directly with setup.py is deprecated.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
@aslonnie aslonnie requested a review from a team as a code owner November 7, 2025 18:38
@aslonnie aslonnie requested a review from a team November 7, 2025 18:38
# 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
Copy link

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 Install

The command pip wheel -v -c python/requirements_compiled.txt -w .whl -e python only builds wheel files but doesn't install Ray. The pip wheel command creates wheel files in the .whl directory 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 both pip install -v -e python and pip wheel -e python -w .whl are needed as separate steps.

Fix in Cursor Fix in Web

Copy link
Collaborator Author

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.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the development setup instructions to use a more modern pip command, which is a good improvement. However, I've found a critical issue with the proposed command: it uses pip wheel with an -e flag, which is not a valid combination, and the command will fail. I've suggested a correction to use pip install instead. Additionally, the documentation text preceding the command block is now inconsistent with the new command and needs to be updated to instruct users to run it from the project root. I've left a comment with a suggestion for this as well.

# 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The command as written is invalid because pip wheel does not support the -e (--editable) flag. This appears to mix options from pip wheel (-w) and pip install (-e) and will cause the command to fail.

To install Ray in editable mode, you should use pip install. If you also need to build wheels into a directory, that would be a separate pip wheel command. Assuming the primary goal is the editable install, here's a corrected command:

Suggested change
pip wheel -v -c python/requirements_compiled.txt -w .whl -e python
pip install -v -c python/requirements_compiled.txt -e python

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +207 to +208
# Build Ray wheels; install Ray and required dependencies in editable mode.
pip wheel -v -c python/requirements_compiled.txt -w .whl -e python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The instruction in the line preceding this code block, Enter into the ``python/`` directory..., is now inconsistent with the new command. The paths used here (e.g., python/requirements_compiled.txt and -e python) indicate that the command should be run from the project's root directory, not from within the python/ directory.

To prevent user confusion, please update the instructional text. For example:
From the Ray project root directory, run the following command to build and install Ray:

@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Nov 7, 2025
@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Nov 7, 2025
@aslonnie aslonnie marked this pull request as draft November 7, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants