comparison cc.def @ 1:19b134ea79c8

cctest version from 2022-06-29
author Henry S Thompson <ht@inf.ed.ac.uk>
date Thu, 15 Aug 2024 12:44:11 +0100
parents f5509fb303f6
children 400a79fbe694
comparison
equal deleted inserted replaced
0:f5509fb303f6 1:19b134ea79c8
1 Bootstrap: docker 1 Bootstrap: docker
2 From: debian:bullseye 2 From: debian:bullseye
3 3
4 %post 4 %post
5 sed 's/PS1/PSone/' -i .singularity.d/env/99-base.sh
6
5 sed '2s/main/main contrib non-free/' -i /etc/apt/sources.list 7 sed '2s/main/main contrib non-free/' -i /etc/apt/sources.list
6 apt-get -y update 8 apt-get -y update
7 apt-get -y install locales 9 apt-get -y install locales
8 sed '/en_GB.UTF/s/# //;/en_US.UTF/s/# //' -i /etc/locale.gen 10 sed '/en_GB.UTF/s/# //;/en_US.UTF/s/# //' -i /etc/locale.gen
9 locale-gen 11 locale-gen
10 apt-get -y install apt-utils python3 python3-pip isal less git ack procps psmisc 12 apt-get -y install apt-utils python3 python3-pip isal less git ack procps psmisc
11 apt-get -y install man-db gdb gcc 13 apt-get -y install man-db gdb emacs xemacs21 sqlite3
14 apt-get -y install moreutils
15 # do this after the above in order to
16 # hide the moreutils version of parallel as moreutils.parallel
17 apt-get -y install parallel
12 18
13 pip3 install six isal regex chardet stopit urllib3 cryptography 19 pip3 install six isal regex chardet stopit urllib3 cryptography
14 20
21 cd /usr/local/src
22 git clone https://github.com/htInEdin/pdfminer.six.git
23 git clone https://github.com/htInEdin/pdfx.git
24 cd pdfminer.six
25 git checkout preferLoggingToWarning
26 cd ../pdfx
27 git checkout tidy_up_link_extraction
28 cd /usr/local/lib/python3.9/dist-packages/
29 ln -s /usr/local/src/pdfx/pdfx .
30 ln -s /usr/local/src/pdfminer.six/pdfminer .
31
15 sed '8i\ 32 sed '8i\
16 if [ "$WSHARED" ]\ 33 if [ "$WSHARED" ]\
17 then\ 34 then\
18 PATH="$WSHARED/bin:$PATH"\ 35 PATH="$WSHARED/bin:$PATH"\
19 fi\ 36 fi\
28 export LESSOPEN="| /usr/bin/lesspipe %s"; 45 export LESSOPEN="| /usr/bin/lesspipe %s";
29 export LESSCLOSE="/usr/bin/lesspipe %s %s"; 46 export LESSCLOSE="/usr/bin/lesspipe %s %s";
30 export PS1='\[\033[1m\]sing\[\033[0m\]<\!>: ' 47 export PS1='\[\033[1m\]sing\[\033[0m\]<\!>: '
31 48
32 %runscript 49 %runscript
33 #!/bin/bash 50 v#!/bin/bash
34 if [ -f $WSHARED/.bash_extras ] 51 if [ -f $WSHARED/.bash_extras ]
35 then 52 then
36 . $WSHARED/.bash_extras 53 . $WSHARED/.bash_extras
37 fi 54 fi
38 55