Compare commits

..

3 Commits

Author SHA1 Message Date
Thomas Hobson 6e748c614c
Merge branch 'master' of https://github.com/engineer-man/piston 2021-04-29 13:57:46 +12:00
Thomas Hobson 5221cdc7f4
make /tmp executable 2021-04-29 13:57:29 +12:00
Shivansh-007 75957407ca
pkg(yeethon3.10): Adds Yeethon 3.10 (#239)
* pkg(yeethon3.10): Adds Yeethon 3.10

* pkg(yeethon3.10): Change test file name to `test.yeethon.py`
2021-04-29 13:55:43 +12:00
6 changed files with 38 additions and 1 deletions

View File

@ -11,4 +11,4 @@ services:
- ./data/piston:/piston
tmpfs:
- /piston/jobs:exec
- /tmp
- /tmp:exec

22
packages/yeethon/3.10.0/build.sh vendored Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
git clone https://github.com/Yeethon/cyeethon
cd cyeethon
# Building and installing yeethon
./configure --prefix "$PREFIX" --with-ensurepip=install
make -j$(nproc)
make install -j$(nproc)
# Cleaning up
cd ../../ && rm -rf build
# This is alpha version of python, hence most of the libraries are not compatible with python3.10.0
# As a result, they will not be compatible with yeethon3.10 too
# bin/pip3 install numpy scipy pandas pycrypto whoosh bcrypt passlib

4
packages/yeethon/3.10.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

5
packages/yeethon/3.10.0/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "yeethon",
"version": "3.10.0",
"aliases": ["yeethon3"]
}

3
packages/yeethon/3.10.0/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
python3.10 "$@"

View File

@ -0,0 +1,3 @@
li = ["N", "o", "t", "o", "k"]
yeet li[:3]
print(''.join(x.title() for x in li))