diff --git a/data/modules/tools/python/3.10.json b/data/modules/tools/python/3.10.json new file mode 100644 index 0000000000000000000000000000000000000000..c6689d1b5f0e52bf68abeb5c0d38b97fc0a49abc --- /dev/null +++ b/data/modules/tools/python/3.10.json @@ -0,0 +1,31 @@ +{ + "general": { + "url": "https://www.python.org/", + "authors": [ + "Christian Dreher <c.dreher@kit.edu>", + "Christoph Pohl <pohl@kit.edu>" + ] + }, + + "update": { + "archive": { + "url": "https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xz", + "extract": {} + } + }, + "prepare": { + "run": { + "script": "$MODULE_DEFINITION_RESOURCE_DIR/build.sh" + } + }, + "install": { + "env": { + "PYTHON_3_10": "$MODULE_PATH/install/bin/python3.10" + }, + "executables": { + "python-3.10": { + "exec": "$MODULE_PATH/install/bin/python3.10" + } + } + } +} diff --git a/data/modules/tools/python/3.10/build.sh b/data/modules/tools/python/3.10/build.sh new file mode 100755 index 0000000000000000000000000000000000000000..ecc33433911d569e0f8856d203fc56acf542cc6b --- /dev/null +++ b/data/modules/tools/python/3.10/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +source_dir="$MODULE_PATH/Python-3.10.0" +install_dir="$MODULE_PATH/install" + +cd "$source_dir" + +_axii_run_once ./configure Makefile --enable-optimizations --prefix="$install_dir" +_axii_run_once make python +_axii_run_once make "$install_dir" install