Skip to content

Replace python setup.py bdist_wheel with pip wheel#53458

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

Replace python setup.py bdist_wheel with pip wheel#53458
aslonnie merged 6 commits intoray-project:masterfrom
czgdp1807:pip_wheel

Conversation

@czgdp1807
Copy link
Copy Markdown
Contributor

@czgdp1807 czgdp1807 commented May 31, 2025

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

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@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
Copy link
Copy Markdown
Collaborator

aslonnie commented Jun 2, 2025

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?

Copy link
Copy Markdown
Collaborator

@aslonnie aslonnie left a comment

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
Copy link
Copy Markdown
Collaborator

aslonnie commented Jun 2, 2025

seems that it is moving a temp directory.

@czgdp1807
Copy link
Copy Markdown
Contributor Author

czgdp1807 commented Jun 7, 2025

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 added 4 commits June 7, 2025 22:47
Signed-off-by: Gagandeep Singh <gdp.1807@gmail.com>
Signed-off-by: Gagandeep Singh <gdp.1807@gmail.com>
Signed-off-by: Gagandeep Singh <gdp.1807@gmail.com>
Signed-off-by: Gagandeep Singh <gdp.1807@gmail.com>
@aslonnie aslonnie merged commit d045b1c into ray-project:master Jun 14, 2025
5 checks passed
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 <gdp.1807@gmail.com>
Co-authored-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
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 <gdp.1807@gmail.com>
Co-authored-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
Signed-off-by: elliot-barn <elliot.barnwell@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.

2 participants