diff --git a/packages/python/3.10.0/build.sh b/packages/python/3.10.0/build.sh new file mode 100755 index 0000000..38796a1 --- /dev/null +++ b/packages/python/3.10.0/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +curl "https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz" -o python.tar.gz +tar xzf python.tar.gz --strip-components=1 +rm python.tar.gz + +./configure --prefix "$PREFIX" --with-ensurepip=install +make -j$(nproc) +make install -j$(nproc) + +cd .. + +rm -rf build + diff --git a/packages/python/3.10.0/compile b/packages/python/3.10.0/compile new file mode 100644 index 0000000..e37a74c --- /dev/null +++ b/packages/python/3.10.0/compile @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +# Put instructions to compile source code, remove this file if the language does not require this stage diff --git a/packages/python/3.10.0/environment b/packages/python/3.10.0/environment new file mode 100644 index 0000000..977a5e8 --- /dev/null +++ b/packages/python/3.10.0/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH diff --git a/packages/python/3.10.0/metadata.json b/packages/python/3.10.0/metadata.json new file mode 100644 index 0000000..64baa95 --- /dev/null +++ b/packages/python/3.10.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "python", + "version": "3.10.0", + "aliases": ["py", "py3", "python3"] +} diff --git a/packages/python/3.10.0/run b/packages/python/3.10.0/run new file mode 100644 index 0000000..d141a0d --- /dev/null +++ b/packages/python/3.10.0/run @@ -0,0 +1,3 @@ +#!/bin/bash + +python3.10 "$@" diff --git a/packages/python/3.10.0/test.py b/packages/python/3.10.0/test.py new file mode 100644 index 0000000..1784bfa --- /dev/null +++ b/packages/python/3.10.0/test.py @@ -0,0 +1,7 @@ +working = True + +match working: + case True: + print("OK") + case False: + print()