Skip to content

Commit bca176c

Browse files
committed
update cmake version to latest
add kitware repository to apt repo
1 parent b1870bb commit bca176c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_aarch64_wheel.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ def update_apt_repo(host: RemoteHost) -> None:
188188
host.run_cmd("sudo systemctl stop unattended-upgrades.service || true")
189189
host.run_cmd("while systemctl is-active --quiet apt-daily.service; do sleep 1; done")
190190
host.run_cmd("while systemctl is-active --quiet unattended-upgrades.service; do sleep 1; done")
191+
host.run_cmd("wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null")
192+
host.run_cmd("sudo add-apt-repository 'deb https://apt.kitware.com/ubuntu/ focal main'")
191193
host.run_cmd("sudo apt-get update")
192194
time.sleep(3)
193195
host.run_cmd("sudo apt-get update")
@@ -406,9 +408,10 @@ def configure_system(host: RemoteHost, *,
406408
print('Configuring the system')
407409
if not host.using_docker():
408410
update_apt_repo(host)
409-
host.run_cmd("sudo apt-get install -y ninja-build g++ git cmake gfortran unzip")
411+
host.run_cmd("sudo apt-get install -y ninja-build g++ git cmake gfortran unzip pkg-config")
410412
else:
411413
host.run_cmd("yum install -y sudo")
414+
host.run_cmd("yum install -y pkgconfig")
412415
host.run_cmd("conda install -y ninja")
413416

414417
if not use_conda:

0 commit comments

Comments
 (0)