From 9630dd7326b857c0cbac7583fe9923c200735fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me> Date: Fri, 17 May 2024 00:15:01 +0200 Subject: [PATCH] fix : before wheel script --- ...uildwheel_build_deps_before_build_wheel.sh | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh index 0bdab1b..4f74488 100644 --- a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh +++ b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -x set -e if [[ "$1" == "" ]]; then echo "build aidge deps in cibuildwheel container before building wheel." @@ -7,23 +6,25 @@ if [[ "$1" == "" ]]; then echo "Hint : In wheel containers, files are mounted on /host by default." echo "\nusage : ./cibuildwheel_build_deps_before_build_wheel.sh $search_path" fi +set -x if [[ $AIDGE_DEPENDENCIES == "" ]]; then # case for aidge_ core mkdir -p build # creating build if its not already there to hold the build of cpp files rm -rf build/* # build from scratch else for repo in $AIDGE_DEPENDENCIES ; do # case for other projects search_path=$1 - REPO_PATH=$(find $search_path -type d -name $repo \ - -not -path '*install*' \ - -not -path '*.git*' \ - -not -path '*miniconda*' \ - -not -path '*conda*' \ - -not -path '*.local*' \ - -not -path "*lib*" \ - -not -path "*/$repo/$repo" \ - -not -path "*/proc/*"Â \ - -print -quit) - if [[ "$REPO_PATH" == "" ]]; then + REPO_PATH=$(find $search_path ! -writable -prune -o -type d \ + -name "$repo" \ + -not -path "*/install/*" \ + -not -path "*/.git/*" \ + -not -path "*/miniconda/*" \ + -not -path "*/conda/*" \ + -not -path "*/.local/*" \ + -not -path "*/lib/*" \ + -not -path "*/$repo/$repo/*" \ + -not -path "*/proc/*" \ + -print -quit) + if [[ -z "$REPO_PATH" ]]; then echo "ERROR : dependency $repo not found in search_path \"$search_path\". ABORTING." exit -1 fi -- GitLab