From 1b8b0e581ee51212f6b814cd564653c1f467a03b Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Thu, 8 Aug 2024 12:18:28 +0200 Subject: [PATCH] removed custom fix for ctypes --- scripts/extra/custom_ctypes-1.2.eb | 29 ------ .../extra/eessi-2023.06-extra-packages.yml | 2 - scripts/extra/install_extra_packages.sh | 95 ------------------- 3 files changed, 126 deletions(-) delete mode 100644 scripts/extra/custom_ctypes-1.2.eb delete mode 100644 scripts/extra/eessi-2023.06-extra-packages.yml delete mode 100755 scripts/extra/install_extra_packages.sh diff --git a/scripts/extra/custom_ctypes-1.2.eb b/scripts/extra/custom_ctypes-1.2.eb deleted file mode 100644 index 35be6dcc41..0000000000 --- a/scripts/extra/custom_ctypes-1.2.eb +++ /dev/null @@ -1,29 +0,0 @@ -## -# This is a contribution from the NESSI project -# Homepage: https://documentation.sigma2.no -# -# Authors:: Thomas Roeblitz -# License:: GPL-2.0-only -# -## - -easyblock = 'Tarball' - -name = 'custom_ctypes' -version = '1.2' - -homepage = 'https://github.com/ComputeCanada/custom_ctypes' -description = """custum_ctypes is a small Python package to fix the discovery of libraries with Python's ctypes module. It changes the behavior of find_library to return absolute paths to shared objects rather than just the names.""" - -toolchain = SYSTEM - -source_urls = ['https://github.com/ComputeCanada/custom_ctypes/archive/refs/tags'] -sources = ['%(version)s.tar.gz'] -checksums = ['3b30ce633c6a329169f2b10ff24b8eaaeef3fa208a66cdacdb53c22f02a88d9b'] - -sanity_check_paths = { - 'files': ['README.md'], - 'dirs': ['lib'], -} - -moduleclass = 'lib' diff --git a/scripts/extra/eessi-2023.06-extra-packages.yml b/scripts/extra/eessi-2023.06-extra-packages.yml deleted file mode 100644 index 22670ec7a3..0000000000 --- a/scripts/extra/eessi-2023.06-extra-packages.yml +++ /dev/null @@ -1,2 +0,0 @@ -easyconfigs: - - custom_ctypes-1.2.eb diff --git a/scripts/extra/install_extra_packages.sh b/scripts/extra/install_extra_packages.sh deleted file mode 100755 index ccd2890864..0000000000 --- a/scripts/extra/install_extra_packages.sh +++ /dev/null @@ -1,95 +0,0 @@ -#!/usr/bin/env bash - -# This script can be used to install extra packages under ${EESSI_SOFTWARE_PATH} - -# some logging -echo ">>> Running ${BASH_SOURCE}" - -# Initialise our bash functions -TOPDIR=$(dirname $(realpath ${BASH_SOURCE})) -source "${TOPDIR}"/../utils.sh - -# Function to display help message -show_help() { - echo "Usage: $0 [OPTIONS]" - echo "Options:" - echo " --help Display this help message" - echo " -e, --easystack EASYSTACKFILE Easystack file which specifies easyconfigs to be installed." - echo " -t, --temp-dir /path/to/tmpdir Specify a location to use for temporary" - echo " storage during the installation" -} - -# Initialize variables -TEMP_DIR= -EASYSTACK_FILE= - -# Parse command-line options -while [[ $# -gt 0 ]]; do - case "$1" in - --help) - show_help - exit 0 - ;; - -e|--easystack) - if [ -n "$2" ]; then - EASYSTACK_FILE="$2" - shift 2 - else - echo "Error: Argument required for $1" - show_help - exit 1 - fi - ;; - -t|--temp-dir) - if [ -n "$2" ]; then - TEMP_DIR="$2" - shift 2 - else - echo "Error: Argument required for $1" - show_help - exit 1 - fi - ;; - *) - show_help - fatal_error "Error: Unknown option: $1" - ;; - esac -done - -if [[ -z ${EASYSTACK_FILE} ]]; then - show_help - fatal_error "Error: need to specify easystack file" -fi - -# Make sure NESSI is initialised -check_eessi_initialised - -# As an installation location just use $EESSI_SOFTWARE_PATH -export NESSI_CVMFS_INSTALL=${EESSI_SOFTWARE_PATH} - -# we need a directory we can use for temporary storage -if [[ -z "${TEMP_DIR}" ]]; then - tmpdir=$(mktemp -d) -else - mkdir -p ${TEMP_DIR} - tmpdir=$(mktemp -d --tmpdir=${TEMP_DIR} extra.XXX) - if [[ ! -d "$tmpdir" ]] ; then - fatal_error "Could not create directory ${tmpdir}" - fi -fi -echo "Created temporary directory '${tmpdir}'" -export WORKING_DIR=${tmpdir} - -# load EasyBuild -ml EasyBuild - -# load NESSI-extend/2023.06-easybuild -ml NESSI-extend/2023.06-easybuild - -eb --show-config - -eb --easystack ${EASYSTACK_FILE} --robot - -# clean up tmpdir -rm -rf "${tmpdir}"