Skip to content

Commit 0f642b0

Browse files
authored
Merge pull request #23 from ebmdatalab/benbc/debian-version-update
Pull in Python 3.7 from Deadsnakes
2 parents 2605a36 + 9c4c1b8 commit 0f642b0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

ctconvert/startup_script.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,25 @@ function shutdown () {
1515

1616
trap shutdown ERR
1717

18+
echo "Installing requirements"
19+
apt-get update
20+
21+
# Install non-Python dependencies
22+
apt-get -y install git unzip
23+
24+
# Install deadsnakes (and pretende that we're on Ubuntu...)
25+
apt-get -y install software-properties-common python3-launchpadlib
26+
add-apt-repository --yes --no-update --ppa ppa:deadsnakes/ppa
27+
sed --in-place s/bookworm/jammy/ /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-bookworm.list
1828
apt-get update
19-
apt-get -y install git python3.7 python3.7-venv unzip wget
29+
30+
# Install Python
31+
apt-get -y install python3.7 python3.7-venv
2032

2133
cd /tmp
2234
git clone https://github.com/ebmdatalab/clinicaltrials-act-converter.git
2335
cd clinicaltrials-act-converter
2436

25-
echo "Installing requirements"
2637
python3.7 -m venv venv
2738
venv/bin/pip install -r requirements.txt
2839

0 commit comments

Comments
 (0)