From 353de20ae923d4697538d0d9d608c11aca8adc04 Mon Sep 17 00:00:00 2001 From: Dan Vargas <10914883+dvargas46@users.noreply.github.com> Date: Wed, 21 Apr 2021 20:34:48 -0500 Subject: [PATCH] pkg(pyth-1.0.0): Add pyth 1.0.0 (#222) --- packages/pyth/1.0.0/build.sh | 6 ++++++ packages/pyth/1.0.0/environment | 5 +++++ packages/pyth/1.0.0/metadata.json | 5 +++++ packages/pyth/1.0.0/run | 4 ++++ packages/pyth/1.0.0/test.pyth | 1 + 5 files changed, 21 insertions(+) create mode 100755 packages/pyth/1.0.0/build.sh create mode 100644 packages/pyth/1.0.0/environment create mode 100644 packages/pyth/1.0.0/metadata.json create mode 100644 packages/pyth/1.0.0/run create mode 100644 packages/pyth/1.0.0/test.pyth diff --git a/packages/pyth/1.0.0/build.sh b/packages/pyth/1.0.0/build.sh new file mode 100755 index 0000000..b1c2968 --- /dev/null +++ b/packages/pyth/1.0.0/build.sh @@ -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 diff --git a/packages/pyth/1.0.0/environment b/packages/pyth/1.0.0/environment new file mode 100644 index 0000000..7a20607 --- /dev/null +++ b/packages/pyth/1.0.0/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Python and Pyth path +export PATH=$PWD/bin:$PATH +export PYTH_PATH=$PWD/pyth diff --git a/packages/pyth/1.0.0/metadata.json b/packages/pyth/1.0.0/metadata.json new file mode 100644 index 0000000..bcddb7a --- /dev/null +++ b/packages/pyth/1.0.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "pyth", + "version": "1.0.0", + "aliases": ["pyth"] +} diff --git a/packages/pyth/1.0.0/run b/packages/pyth/1.0.0/run new file mode 100644 index 0000000..43a6a6d --- /dev/null +++ b/packages/pyth/1.0.0/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# pyth only takes filename and stdin +python3 "$PYTH_PATH"/pyth.py "$1" diff --git a/packages/pyth/1.0.0/test.pyth b/packages/pyth/1.0.0/test.pyth new file mode 100644 index 0000000..d096585 --- /dev/null +++ b/packages/pyth/1.0.0/test.pyth @@ -0,0 +1 @@ +"OK \ No newline at end of file