Skip to content

Commit 749032a

Browse files
committed
Fix a minor version of Python to make development easier
I believe this is the Python 3.x version that was installed by default on Debian 10, so it's the one most likely to work for us.
1 parent cf02e6a commit 749032a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ctconvert/startup_script.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ function shutdown () {
1616
trap shutdown ERR
1717

1818
apt-get update
19-
apt-get -y install git python3-pip python3-venv unzip wget
19+
apt-get -y install git python3.7 python3.7-venv unzip wget
2020

2121
cd /tmp
2222
git clone https://github.com/ebmdatalab/clinicaltrials-act-converter.git
2323
cd clinicaltrials-act-converter
2424

2525
echo "Installing requirements"
26-
python3 -m venv venv
27-
venv/bin/pip3 install -r requirements.txt
26+
python3.7 -m venv venv
27+
venv/bin/pip install -r requirements.txt
2828

2929
echo "Running command"
30-
venv/bin/python3 ctconvert/convert_data.py
30+
venv/bin/python ctconvert/convert_data.py
3131

3232
echo "Running webhook $CALLBACK"
3333
curl "$CALLBACK"

0 commit comments

Comments
 (0)