Skip to content

Replace python setup.py bdist_wheel with pip wheel - #53458

Merged
aslonnie merged 6 commits into
ray-project:masterfrom
czgdp1807:pip_wheel
Jun 14, 2025
Merged

aslonnie merged 6 commits into
ray-project:masterfrom
czgdp1807:pip_wheel

Conversation

@czgdp1807

@czgdp1807 czgdp1807 commented May 31, 2025 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

This PR replaces python setup.py bdist_wheel invocations with pip wheel because calling python setup.py bdist_wheel is deprecated. See https://packaging.python.org/en/latest/discussions/setup-py-deprecated/ for more information and https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for a discussion about why this needs to be changed.

cc: @peytondmurray

Related issue number

Checks

@czgdp1807
czgdp1807 requested a review from peytondmurray May 31, 2025 15:06
@czgdp1807
czgdp1807 marked this pull request as ready for review May 31, 2025 17:26
@czgdp1807
czgdp1807 requested a review from aslonnie June 1, 2025 19:27
@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Jun 2, 2025
@aslonnie

aslonnie commented Jun 2, 2025

Copy link
Copy Markdown
Contributor
image

this will now build/download a lot of extra files inside the output directory.

can we fix this so that it still only outputs ray/ray-cpp wheels?

@aslonnie aslonnie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it works, but this now will build/download a lot of extra files inside the output directory.

can we fix this so that it still only outputs ray/ray-cpp wheels?

@aslonnie

aslonnie commented Jun 2, 2025

Copy link
Copy Markdown
Contributor

seems that it is moving a temp directory.

@czgdp1807

czgdp1807 commented Jun 7, 2025 •

Copy link
Copy Markdown
Contributor Author

I think, it will require passing --no-deps option to pip wheel command. I am trying it out locally. If it works, will push the changes here. :D.

Edit - It seems to work,

(ray-dev) PS C:\Users\czgdp1807\Anyscale\ray\python\dist> ls


    Directory: C:\Users\czgdp1807\Anyscale\ray\python\dist


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----          6/7/2025   4:25 PM       24460102 ray-3.0.0.dev0-cp39-cp39-win_amd64.whl

@czgdp1807
czgdp1807 requested a review from aslonnie June 7, 2025 18:17
@aslonnie
aslonnie merged commit d045b1c into ray-project:master Jun 14, 2025
elliot-barn pushed a commit that referenced this pull request Jun 18, 2025
This PR replaces python setup.py bdist_wheel invocations with pip wheel because calling python setup.py bdist_wheel is deprecated. See https://packaging.python.org/en/latest/discussions/setup-py-deprecated/ for more information and https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for a discussion about why this needs to be changed.

---------

Signed-off-by: Gagandeep Singh <[email protected]>
Co-authored-by: Lonnie Liu <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
This PR replaces python setup.py bdist_wheel invocations with pip wheel because calling python setup.py bdist_wheel is deprecated. See https://packaging.python.org/en/latest/discussions/setup-py-deprecated/ for more information and https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for a discussion about why this needs to be changed.

---------

Signed-off-by: Gagandeep Singh <[email protected]>
Co-authored-by: Lonnie Liu <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
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.

2 participants