Skip to content

Commit

Permalink
build in manylinux
Browse files Browse the repository at this point in the history
  • Loading branch information
larrylian committed Mar 5, 2024
1 parent 3b31e97 commit a9ac4c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,19 @@ jobs:

- name: Install bazel
run: |
apt-get update
apt-get install -yq wget gcc g++ python3.7 zlib1g-dev zip libuv1.dev
apt-get install -yq pip
wget "https://github.com/bazelbuild/bazel/releases/download/5.1.0/bazel_5.1.0-linux-x86_64.deb" -O bazel_5.1.0-linux-x86_64.deb
dpkg -i bazel_5.1.0-linux-x86_64.deb
# - name: Install dependencies
# run: |
# python3 -m pip install virtualenv
# python3 -m virtualenv -p python3 py3
# . py3/bin/activate
# which python
# pip install pytest torch
# pip install ray==1.11.0
yum -y install wget
yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel
wget "https://github.com/bazelbuild/bazel/releases/download/5.1.0/bazel-5.1.0-installer-linux-x86_64.sh" -O bazel-5.1.0-installer-linux-x86_64.sh
chmod +x bazel-5.1.0-installer-linux-x86_64.sh
./bazel-5.1.0-installer-linux-x86_64.sh --user
export PATH=$PATH:~/.bazel/bin
- name: Build wheels
run: |
bash build_wheels.sh
- name: Archive rayfed-wheel
- name: Archive pygloo-wheel
uses: actions/upload-artifact@v1
with:
name: rayfed_python39_wheel_on_ubuntu
name: pygloo_python39_wheel_on_manylinux
path: dist/
2 changes: 1 addition & 1 deletion pygloo/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cmake_external(
env_vars = {"CFLAGS": "-fPIC"},
lib_source = "@libuv//:all",

out_lib_dir = "lib",
out_lib_dir = "lib64",
# We are selecting the resulting static library to be passed in C/C++ provider
# as the result of the build;
static_libraries = ["libuv_a.a"],
Expand Down

0 comments on commit a9ac4c5

Please sign in to comment.