Skip to content

Conversation

@aslonnie
Copy link
Collaborator

so that it does not need / create project config files

we just need the self-contained binary

@aslonnie aslonnie requested a review from a team as a code owner November 15, 2025 20:50
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 forge.Dockerfile to install Python using uv without creating project configuration files. This is achieved by adding the --no-project flag to uv python find and removing the uv python pin command. The changes also introduce a UV_PYTHON_VERSION variable for better maintainability and improve shell command robustness by quoting variables.

My review includes a suggestion to make the symlink creation more robust by using the -f flag, which will prevent errors if the script is run in an environment where the symlinks already exist.

Comment on lines +71 to +73
ln -s "$UV_PYTHON_BIN" "/usr/local/bin/python${UV_PYTHON_VERSION}"
ln -s "$UV_PYTHON_BIN" /usr/local/bin/python3
ln -s "$UV_PYTHON_BIN" /usr/local/bin/python
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To make the script more robust and idempotent, consider using the -f (force) flag with ln. This will ensure that if the symlinks already exist, they are overwritten without causing an error. This is particularly useful if this part of the script is re-executed.

ln -sf "$UV_PYTHON_BIN" "/usr/local/bin/python${UV_PYTHON_VERSION}"
ln -sf "$UV_PYTHON_BIN" /usr/local/bin/python3
ln -sf "$UV_PYTHON_BIN" /usr/local/bin/python

so that it does not need / create project config files
we just need the self-contained binary

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
@aslonnie aslonnie force-pushed the lonnie-251115-forgenoproj branch from 9c8127c to 06f5e87 Compare November 15, 2025 20:51
@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Nov 15, 2025
@aslonnie aslonnie enabled auto-merge (squash) November 15, 2025 22:15
@aslonnie aslonnie merged commit b177b56 into master Nov 15, 2025
7 of 8 checks passed
@aslonnie aslonnie deleted the lonnie-251115-forgenoproj branch November 15, 2025 22:42
justinrmiller pushed a commit to justinrmiller/ray that referenced this pull request Nov 15, 2025
so that it does not need / create project config files

we just need the self-contained binary

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: Justin Miller <justinrmiller@gmail.com>
ryankert01 pushed a commit to ryankert01/ray that referenced this pull request Nov 16, 2025
so that it does not need / create project config files

we just need the self-contained binary

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: ryankert01 <ryan980053@gmail.com>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
so that it does not need / create project config files

we just need the self-contained binary

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: Aydin Abiar <aydin@anyscale.com>
ykdojo pushed a commit to ykdojo/ray that referenced this pull request Nov 27, 2025
so that it does not need / create project config files

we just need the self-contained binary

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: YK <1811651+ykdojo@users.noreply.github.com>
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
so that it does not need / create project config files

we just need the self-contained binary

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants