pkg(pyth-1.0.0): Add pyth 1.0.0 (#222)

This commit is contained in:
Dan Vargas 2021-04-21 20:34:48 -05:00 committed by GitHub
parent 7191bc063c
commit 353de20ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 0 deletions

6
packages/pyth/1.0.0/build.sh vendored Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Pyth install
source ../../python/3.9.1/build.sh
git clone -q "https://github.com/isaacg1/pyth.git" pyth

5
packages/pyth/1.0.0/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Python and Pyth path
export PATH=$PWD/bin:$PATH
export PYTH_PATH=$PWD/pyth

5
packages/pyth/1.0.0/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "pyth",
"version": "1.0.0",
"aliases": ["pyth"]
}

4
packages/pyth/1.0.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# pyth only takes filename and stdin
python3 "$PYTH_PATH"/pyth.py "$1"

1
packages/pyth/1.0.0/test.pyth vendored Normal file
View File

@ -0,0 +1 @@
"OK