File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -euo pipefail
3
3
4
- mpiname=" ${MPINAME:- mpich} "
5
- variant=" ${VARIANT:- } "
6
- test -z " $variant " \
7
- && pkgname=" ${mpiname} " \
8
- || pkgname=" ${mpiname} _${variant} "
9
-
10
4
wheelhouse=" ${1:- wheelhouse} "
11
5
ls -d " $wheelhouse " > /dev/null
12
6
@@ -15,12 +9,18 @@ tempdir=$(mktemp -d)
15
9
workdir=$tempdir /wheel
16
10
trap ' rm -rf $tempdir' EXIT
17
11
18
- for wheelfile in " $wheelhouse / $pkgname " - * .whl; do
12
+ for wheelfile in " $wheelhouse " / * .whl; do
19
13
cd " $savedir " && rm -rf " $workdir "
20
14
unzip -vv " $wheelfile "
21
15
unzip -qq " $wheelfile " -d " $workdir "
22
16
cd " $workdir "
23
17
18
+ whlname=$( basename " $wheelfile " )
19
+ pkgname=${whlname%% -* }
20
+ mpiname=${pkgname% _* }
21
+ variant=${pkgname# " ${mpiname} " }
22
+ variant=${variant# _}
23
+
24
24
data=$( ls -d " $pkgname " -* .data/data)
25
25
if test " $( uname) " = Linux; then
26
26
# shellcheck disable=SC2016
You can’t perform that action at this time.
0 commit comments