1 + | use List::Util qw(pairs); |
2 + | |
3 + | @pythons = ("36","37","38"); |
4 + | |
5 + | @platforms = ("linux_x86_64","manylinux2010_x86_64", "macosx_10_15_x86_64", "macosx_10_14_x86_64",, "macosx_11_0_x86_64"); |
6 + | @packages = ( |
7 + | "casadata", "2021.8.16", |
8 + | "casampi", "0.4.2", |
9 + | "casaplotms", "1.2.8", |
10 + | "casashell", "6.3.0.48", |
11 + | "casatasks", "6.3.0.48", |
12 + | "casatelemetry", "1.3.4", |
13 + | "casatestutils", "6.3.0.48", |
14 + | "casatools", "6.3.0.48", |
15 + | "casaviewer", "1.2.14", |
16 + | "almatasks","1.2.3", |
17 + | "casaplotserver","1.1.3" |
18 + | ); |
19 + | my @pairs = pairs @packages; |
20 + | foreach $python (@pythons) { |
21 + | print ("Python: $python\n"); |
22 + | foreach $platform (@platforms) { |
23 + | print ("Platform: $platform\n"); |
24 + | foreach $pair (@pairs) { |
25 + | print("Downloading " . $pair->[0] . " version " . $pair->[1] . "\n"); |
26 + | $package = $pair->[0]; |
27 + | $version = $pair->[1]; |
28 + | `pip download $package==$version --platform=$platform --python-version $python --no-deps`; |
29 + | } |
30 + | } |
31 + | } |