From 18743a33690a3849d2b12263e62027950b86bf0c Mon Sep 17 00:00:00 2001 From: Aetheridon Date: Wed, 18 Oct 2023 19:43:32 +0100 Subject: [PATCH] Added files for Python 3.11.0 --- packages/python/3.11.0/build.sh | 21 +++++++++++++++++++++ packages/python/3.11.0/environment | 1 + packages/python/3.11.0/metadata.json | 5 +++++ packages/python/3.11.0/run | 3 +++ packages/python/3.11.0/test.py | 7 +++++++ 5 files changed, 37 insertions(+) create mode 100644 packages/python/3.11.0/build.sh create mode 100644 packages/python/3.11.0/environment create mode 100644 packages/python/3.11.0/metadata.json create mode 100644 packages/python/3.11.0/run create mode 100644 packages/python/3.11.0/test.py diff --git a/packages/python/3.11.0/build.sh b/packages/python/3.11.0/build.sh new file mode 100644 index 0000000..8db680c --- /dev/null +++ b/packages/python/3.11.0/build.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +curl "https://www.python.org/ftp/python/3.11.0/Python-3.11.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 + +bin/pip3 install numpy scipy pandas pycryptodome whoosh bcrypt passlib sympy xxhash base58 cryptography PyNaCl diff --git a/packages/python/3.11.0/environment b/packages/python/3.11.0/environment new file mode 100644 index 0000000..977a5e8 --- /dev/null +++ b/packages/python/3.11.0/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH diff --git a/packages/python/3.11.0/metadata.json b/packages/python/3.11.0/metadata.json new file mode 100644 index 0000000..c169a60 --- /dev/null +++ b/packages/python/3.11.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "python", + "version": "3.11.0", + "aliases": ["py", "py3", "python3", "python3.11"] +} diff --git a/packages/python/3.11.0/run b/packages/python/3.11.0/run new file mode 100644 index 0000000..cf38089 --- /dev/null +++ b/packages/python/3.11.0/run @@ -0,0 +1,3 @@ +#!/bin/bash + +python3.11 "$@" diff --git a/packages/python/3.11.0/test.py b/packages/python/3.11.0/test.py new file mode 100644 index 0000000..1784bfa --- /dev/null +++ b/packages/python/3.11.0/test.py @@ -0,0 +1,7 @@ +working = True + +match working: + case True: + print("OK") + case False: + print()