File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 3
3
# Exit on error
4
4
set -e
5
5
6
+ PARI_URL=" http://pari.math.u-bordeaux.fr/pub/pari/$URLDIR "
7
+
6
8
# Figure out PARI version and download location
7
9
# Note that we support giving a list of URLs
8
10
if [ " $PARI_VERSION " = snapshot ]; then
9
- PARI_VERSION=$( wget -qO- " http://pari.math.u-bordeaux.fr/pub/pari/snapshots" | sed -n ' s/.*href="\(pari-.*-g.*\)[.]tar[.]gz".*/\1/p' )
10
- URL=" http://pari.math.u-bordeaux.fr/pub/pari/snapshots"
11
- else
12
- URL=" http://pari.math.u-bordeaux.fr/pub/pari/unix http://pari.math.u-bordeaux.fr/pub/pari/unstable"
11
+ PARI_VERSION=$( wget -qO- " $PARI_URL " | sed -n ' s/.*href="\(pari-.*-g.*\)[.]tar[.]gz".*/\1/p' )
13
12
fi
14
13
15
14
# Download PARI sources
16
- for url in $URL ; do
17
- if wget --no-verbose " $url /$PARI_VERSION .tar.gz" ; then
18
- # Success
19
- break
20
- fi
21
- done
15
+ wget --no-verbose " $PARI_URL /$PARI_VERSION .tar.gz"
22
16
23
17
# Install
24
18
tar xzf " $PARI_VERSION .tar.gz"
Original file line number Diff line number Diff line change @@ -12,8 +12,12 @@ python:
12
12
- " 3.6"
13
13
env :
14
14
- PARI_VERSION=pari-2.8.1.beta
15
+ URLDIR=unstable
15
16
- PARI_VERSION=pari-2.9.3
17
+ URLDIR=unix
16
18
- PARI_VERSION=snapshot
19
+ URLDIR=snapshots
20
+
17
21
before_install :
18
22
- export PATH="/usr/lib/ccache:$PATH"
19
23
- ccache -M 256M && ccache -s
You can’t perform that action at this time.
0 commit comments