mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-08 21:06:27 +02:00
use latest version of python in executor
This commit is contained in:
parent
d7b82b5218
commit
9e7e53d45d
2 changed files with 2 additions and 1 deletions
|
@ -1,2 +1,2 @@
|
|||
cd /tmp/$2
|
||||
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 python3.6 code.code"
|
||||
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 python3.8 code.code"
|
||||
|
|
|
@ -67,6 +67,7 @@ tar -xf Python-3.8.2.tar
|
|||
cd Python-3.8.2
|
||||
./configure
|
||||
make
|
||||
ln -s python python3.8
|
||||
echo 'export PATH=$PATH:/opt/python3/Python-3.8.2' >> /opt/.profile
|
||||
source /opt/.profile
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue