File: make_images.sh

package info (click to toggle)
casacore 3.8.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,908 kB
  • sloc: cpp: 471,569; fortran: 16,372; ansic: 7,416; yacc: 4,714; lex: 2,346; sh: 1,865; python: 629; perl: 531; sed: 499; csh: 201; makefile: 32
file content (24 lines) | stat: -rwxr-xr-x 668 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
#
# Script to make python wheels for several versions

set -eu

SCRIPT_DIR=$(cd $(dirname $0) && pwd)
ROOT_DIR=$(git rev-parse --show-toplevel)

REPOSITORY=quay.io/casacore/casacore
GIT_TAG=$(git describe --tags --dirty)

py_major=3
for py_minor in $(seq 8 13); do
    echo -e "\n\n******** Building wheel for python ${py_major}.${py_minor} ********\n"
    py_version=${py_major}${py_minor}
    docker build \
        --build-arg PYMAJOR=${py_major} \
        --build-arg PYMINOR=${py_minor} \
        --build-arg THREADS=16 \
        --file ${SCRIPT_DIR}/py_wheel.docker \
        --tag ${REPOSITORY}:py${py_version}_${GIT_TAG} \
        ${ROOT_DIR}
done