|
1 | 1 | #!/usr/bin/env bash |
2 | 2 | cd /github/workspace/ |
3 | 3 |
|
4 | | -# Use archive mirror for CentOS 7 until we are ready to migrate to CentOS 8 |
5 | | -sed -i -e 's/mirrorlist/#mirrorlist/g' \ |
6 | | - -e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' \ |
7 | | - /etc/yum.repos.d/CentOS-* |
8 | | - |
9 | 4 | # Install dependencies |
10 | | -yum install -y wget git centos-release-scl ca-certificates |
11 | | - |
12 | | -# Need to install packages that depend on centos-release-scl on a different line. |
13 | | -# This will use gcc==10, which is the same as what manylinux2014 uses. |
14 | | -yum install -y devtoolset-10 |
| 5 | +# Use gcc-14 for manylinux_2_28 |
| 6 | +yum install -y wget git gcc-toolset-14 |
15 | 7 |
|
16 | 8 | # Enable this toolset |
17 | | -source /opt/rh/devtoolset-10/enable |
| 9 | +source /opt/rh/gcc-toolset-14/enable |
18 | 10 |
|
19 | 11 | # Download and install miniconda |
20 | 12 | wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh |
21 | 13 | chmod a+x Miniconda3-latest-Linux-x86_64.sh |
22 | 14 | ./Miniconda3-latest-Linux-x86_64.sh -b |
23 | 15 |
|
| 16 | +# Activate conda |
| 17 | +source $HOME/miniconda3/bin/activate |
| 18 | + |
24 | 19 | # The base needs to have the same python version (3.11, right now) |
25 | | -${HOME}/miniconda3/bin/conda install python=3.11 -y |
| 20 | +conda install --override-channels -c conda-forge python=3.11 -y |
26 | 21 |
|
27 | 22 | # Set up the hexrd channel |
28 | | -${HOME}/miniconda3/bin/conda create --override-channels -c conda-forge -y -n hexrd python=3.11 |
29 | | -${HOME}/miniconda3/bin/activate hexrd |
30 | | -${HOME}/miniconda3/bin/conda activate hexrd |
| 23 | +conda create --override-channels -c conda-forge -y -n hexrd python=3.11 |
| 24 | +conda activate hexrd |
31 | 25 |
|
32 | 26 | # Install the libmamba solver (it is much faster) |
33 | | -${HOME}/miniconda3/bin/conda install -n base -c conda-forge conda-libmamba-solver |
34 | | -${HOME}/miniconda3/bin/conda config --set solver libmamba |
35 | | -${HOME}/miniconda3/bin/conda config --set conda_build.pkg_format 1 # force tar.bz2 files |
| 27 | +conda install -n base -c conda-forge conda-libmamba-solver |
| 28 | +conda config --set solver libmamba |
| 29 | +conda config --set conda_build.pkg_format 1 # force tar.bz2 files |
36 | 30 |
|
37 | 31 |
|
38 | 32 | # Remove anaconda telemetry (it is causing errors for us) |
39 | | -${HOME}/miniconda3/bin/conda remove -n base conda-anaconda-telemetry |
| 33 | +conda remove -n base conda-anaconda-telemetry |
40 | 34 |
|
41 | 35 | # Install conda build and create output directory |
42 | | -${HOME}/miniconda3/bin/conda install --override-channels -c conda-forge conda-build -y |
| 36 | +conda install --override-channels -c conda-forge conda-build -y |
43 | 37 | mkdir output |
44 | 38 |
|
45 | 39 | # Build the package |
46 | | -${HOME}/miniconda3/bin/conda build --override-channels -c conda-forge --output-folder output/ conda.recipe/ |
| 40 | +conda build --override-channels -c conda-forge --output-folder output/ conda.recipe/ |
0 commit comments