Hongchao Deng 080bb134d5 [test] fix test_pip_with_env_vars for python 3.12 support (#46591) 3 months ago
..
ray 080bb134d5 [test] fix test_pip_with_env_vars for python 3.12 support (#46591) 3 months ago
requirements d250007fee [Data] Add `snowflake-python-connector` to test requirements (#46544) 3 months ago
MANIFEST.in fa1c6510f7 [hotfix] Revert "Exclude Bazel build files from Ray wheels (#25679)" (#25950) 2 years ago
README-building-wheels.md 2432b629e8 [wheel] use latest manylinux build image (#46415) 3 months ago
asv.conf.json 9b8218aabd [docs] Move all /latest links to /master (#11897) 4 years ago
build-wheel-macos.sh 40aacf5f05 [ray] python 3.12 for macos (#45696) 4 months ago
build-wheel-manylinux2014.sh 19ca3c4378 [wheel] remove py38 in build wheel script (#45840) 4 months ago
build-wheel-windows.sh de3c92ef59 [dashboard] revert back to pushd and popd for win build (#46532) 3 months ago
requirements.txt 75161ab72f [deps] remove duplicated lines in requirements.txt (#45615) 4 months ago
requirements_compiled.txt d250007fee [Data] Add `snowflake-python-connector` to test requirements (#46544) 3 months ago
setup.py 27d3d81d47 [dashboard] remove symbolic link (#46461) 3 months ago

README-building-wheels.md

Building manylinux2014 wheels

WARNING: To cause everything to be rebuilt, this script will delete ALL changes to the repository, including both changes to tracked files, and ANY untracked files.

It will also cause all files inside the repository to be owned by root, and produce .whl files owned by root.

Inside the root directory (i.e., one level above this python directory), run

docker run -ti --rm \
    -e BUILDKITE_COMMIT="$(git rev-parse HEAD)" \
    -e BUILD_ONE_PYTHON_ONLY=py39 \
    -w /ray -v "$(pwd)":/ray \
    quay.io/pypa/manylinux2014_x86_64:2024-07-02-9ac04ee \
    /ray/python/build-wheel-manylinux2014.sh

The Python 3.9 wheel files will be placed in the .whl directory.

One can change the value of BUILDKITE_COMMIT to generate wheels with different built-in commit string (the code is not changed) and BUILD_ONE_PYTHON_ONLY to build wheels of different Python versions.

For arm64 / aarch64 architecture, use the quay.io/pypa/manylinux2014_aarch64 image:

docker run -ti --rm \
    -e BUILDKITE_COMMIT="$(git rev-parse HEAD)" \
    -e BUILD_ONE_PYTHON_ONLY=py39 \
    -w /ray -v "$(pwd)":/ray \
    quay.io/pypa/manylinux2014_aarch64:2024-07-02-9ac04ee \
    /ray/python/build-wheel-manylinux2014.sh

Building MacOS wheels

To build wheels for MacOS, run the following inside the root directory (i.e., one level above this python directory).

./python/build-wheel-macos.sh

The script uses sudo multiple times, so you may need to type in a password.