Skip to content

BLD: Remove redundant manylinux1 related flag in .bazelrc - #53549

Merged
aslonnie merged 2 commits into
ray-project:masterfrom
czgdp1807:manylinux_2014
Jun 10, 2025
Merged

aslonnie merged 2 commits into
ray-project:masterfrom
czgdp1807:manylinux_2014

Conversation

@czgdp1807

@czgdp1807 czgdp1807 commented Jun 4, 2025 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Related issue number

Closes #53548

Checks

@czgdp1807

Copy link
Copy Markdown
Contributor Author

@aslonnie The tests seem to pass. Does the diff contain intended changes?

@czgdp1807
czgdp1807 marked this pull request as ready for review June 4, 2025 15:34
@czgdp1807
czgdp1807 requested a review from aslonnie June 5, 2025 12:12
@aslonnie

aslonnie commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

@aslonnie The tests seem to pass. Does the diff contain intended changes?

hi, so, on the CI, we use manylinux1 related images as build environments to build the wheels.

this doc describes how one can build it manually currently:
https://github.com/ray-project/ray/blob/master/python/README-building-wheels.md

actually ray wheels are already 2014.. my bad memory..

what is the next newer version in line?

@aslonnie
aslonnie requested review from edoakes and jjyao June 5, 2025 20:36

@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.

looping in core team to have a look.

the macro GPR_MANYLINUX1 controls some part of grpc compiling to be manylinux1 compatible or not. we have stopped building for manylinux1 for quite some time.

Comment thread .bazelrc Outdated

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.

seems that this -DGPR_MANYLINUX* macro flag can be just removed..

@czgdp1807

Copy link
Copy Markdown
Contributor Author

actually ray wheels are already 2014.. my bad memory..

Yes. That's why I asked whether the only change my PR is truly intended? Anyways so I think I would change, build:linux --per_file_copt="-\\.(asm|S)$,external/com_github_grpc_grpc/.*@-DGPR_MANYLINUX1" to build:linux --per_file_copt="-\\.(asm|S)$,external/com_github_grpc_grpc/.*@". Would that be correct?

@aslonnie

aslonnie commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

based on the syntax of the --per_file_copt:
https://bazel.build/reference/command-line-reference#flag--per_file_copt

the entire line can be removed.

parts before @ is the file filter. if there is nothing after @, the option flag does nothing and is redundant.

@czgdp1807

Copy link
Copy Markdown
Contributor Author

what is the next newer version in line?

AFAIK, the latest version is manylinux_2_34. See, https://github.com/pypa/manylinux.

@czgdp1807 czgdp1807 changed the title BLD: Shift to manylinux2014 from manylinux1 BLD: Remove redundant manylinux1 related flag in .bazelrc Jun 7, 2025
@aslonnie
aslonnie self-requested a review June 8, 2025 15:36
@rgommers

rgommers commented Jun 9, 2025

Copy link
Copy Markdown

what is the next newer version in line?

AFAIK, the latest version is manylinux_2_34. See, https://github.com/pypa/manylinux.

The next version to use is manylinux_2_28. NumPy 2.3.0 (released yesterday) just moved from manylinux2014 to manylinux_2_28. It's also the new default in cibuildwheel 3.0.0, which will be released soon. You probably shouldn't use anything more recent than that for quite a while.

@czgdp1807

czgdp1807 commented Jun 9, 2025 •

Copy link
Copy Markdown
Contributor Author

Yes. I would suggest to stay with manylinux2014 like if we are able to use latest version of dependencies on manylinux2014. If manylinux_2_28 is needed for this reason, then I can do the migration.

By the way, NumPy migrating to manylinux_2_28 is a good assurance that we can do the migration here as well. Just my personal opinion.

cc: @peytondmurray @mattip Would be great if you can chime in on this. :-).

@mattip

mattip commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

As ray may still want to run on amazon linux 2, which only supports manylinux2024 but not manylinux_2_28, perhaps it is too early still to drop support for manylinux2014.

@peytondmurray

Copy link
Copy Markdown
Contributor

Let's stick with manylinux2014 for now. Later on we can upgrade to manylinux_2_28 if that makes sense to do so.

@aslonnie aslonnie added alpha go add ONLY when ready to merge, run all tests and removed alpha labels Jun 10, 2025
@aslonnie
aslonnie merged commit ec1f2a4 into ray-project:master Jun 10, 2025
elliot-barn pushed a commit that referenced this pull request Jun 18, 2025
the option is only used for `manylinux1`. ray is not using manylinux1 to build things any more.

---------

Signed-off-by: Gagandeep Singh <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
the option is only used for `manylinux1`. ray is not using manylinux1 to build things any more.

---------

Signed-off-by: Gagandeep Singh <[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.

Migrating from manylinux1 to manylinux2014

5 participants