Skip to content
Snippets Groups Projects
Commit a16f3eb9 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix: redirect find stderr output to /dev/null

parent 59029b58
No related branches found
No related tags found
2 merge requests!93Release v0.3.0,!64Feat/release pip
Pipeline #45989 waiting for manual action
#!/bin/bash
set -x
set -e
if [[ "$1" == "" ]]; then
echo "build aidge deps in cibuildwheel container before building wheel."
......@@ -7,14 +6,15 @@ 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 ! -readable -prune -o \
-type d -name $repo \
REPO_PATH=$(find $search_path ! -writable -prune -o \
-type d -name $repo \
-not -path '*install*' \
-not -path '*.git*' \
-not -path '*miniconda*' \
......@@ -22,7 +22,9 @@ else
-not -path '*.local*' \
-not -path "*lib*" \
-not -path "*/$repo/$repo" \
-print -quit)
-not -path "*proc" \
-print -quit \
2> /dev/null)
if [[ "$REPO_PATH" == "" ]]; then
echo "ERROR : dependency $repo not found in search_path \"$search_path\". ABORTING."
exit -1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment