diff options
author | Brad King <brad.king@kitware.com> | 2023-11-17 16:35:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-17 16:35:41 (GMT) |
commit | cdd741ebf997ffdbf7408e6e8ec5701c2389ffda (patch) | |
tree | a1b2e9697462965368777b1f433ba6a0f61b7458 /.gitlab/ci/docker/fedora39/install_deps.sh | |
parent | 6f8532fbfac3912fcb0e8729d549f2bfb045c64e (diff) | |
parent | 9283b206593197d56662b4696691fd274729a100 (diff) | |
download | CMake-cdd741ebf997ffdbf7408e6e8ec5701c2389ffda.zip CMake-cdd741ebf997ffdbf7408e6e8ec5701c2389ffda.tar.gz CMake-cdd741ebf997ffdbf7408e6e8ec5701c2389ffda.tar.bz2 |
Merge branch 'backport-ci-fedora-39' into ci-fedora-39
Diffstat (limited to '.gitlab/ci/docker/fedora39/install_deps.sh')
-rwxr-xr-x | .gitlab/ci/docker/fedora39/install_deps.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.gitlab/ci/docker/fedora39/install_deps.sh b/.gitlab/ci/docker/fedora39/install_deps.sh new file mode 100755 index 0000000..70e2293 --- /dev/null +++ b/.gitlab/ci/docker/fedora39/install_deps.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +dnf install \ + --setopt=install_weak_deps=False \ + --setopt=fastestmirror=True \ + --setopt=max_parallel_downloads=10 \ + -y \ + $(grep '^[^#]\+$' /root/deps_packages.lst) + +# Fedora no longer packages python2 numpy. +curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o - | python2 +pip2.7 install --disable-pip-version-check --no-input --no-compile --cache-dir /var/cache/pip numpy + +# Remove demos and Python2 tests +for p in Demo test; do + rm -rf /usr/lib64/python2.7/${p} +done + +# Remove tests for numpy +for v in 2.7 3.12; do + find /usr/lib64/python${v}/site-packages/numpy -type d -a -name tests -exec rm -rf {} + +done + +# Remove some other packages tests +find /usr/lib64/python3.12/site-packages/breezy -type d -a -name tests -exec rm -rf {} + + +# Perforce +curl -L https://www.perforce.com/downloads/perforce/r21.2/bin.linux26x86_64/helix-core-server.tgz -o - \ + | tar -C /usr/local/bin -xvzf - -- p4 p4d |