2020-11-03 19:36:32 -08:00
|
|
|
# Building manylinux2014 wheels
|
2017-05-27 21:35:48 -07:00
|
|
|
|
2020-07-06 11:17:59 -07:00
|
|
|
**WARNING:** To cause everything to be rebuilt, this script will delete ALL changes to the
|
2017-05-27 21:35:48 -07:00
|
|
|
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.
|
|
|
|
|
2017-05-31 17:30:46 -07:00
|
|
|
Inside the root directory (i.e., one level above this python directory), run
|
2017-05-27 21:35:48 -07:00
|
|
|
|
|
|
|
```
|
2020-11-03 19:36:32 -08:00
|
|
|
docker run -e TRAVIS_COMMIT=<commit_number_to_use> --rm -w /ray -v `pwd`:/ray -ti quay.io/pypa/manylinux2014_x86_64 /ray/python/build-wheel-manylinux2014.sh
|
2017-05-27 21:35:48 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
The wheel files will be placed in the .whl directory.
|
2017-05-31 17:30:46 -07:00
|
|
|
|
|
|
|
## 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.
|