From 0ff7639a38ac97fd44b59d9a4ce22f18b53884d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me> Date: Thu, 16 May 2024 18:44:19 +0200 Subject: [PATCH] feat : upd cibuildwheel w helper & search path is now an argument --- .gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh | 9 +++++++-- pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh index df6891d..ae77600 100644 --- a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh +++ b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh @@ -1,13 +1,18 @@ #!/bin/bash set -x set -e -echo $AIDGE_DEPENDENCIES +if [[ "$1" == "" ]]; then + echo "build aidge deps in cibuildwheel container before building wheel." + echo "search path defines where the dependencies will be searched." + echo "Hint : In wheel containers, files are mounted on /host by default." + echo "\nusage : ./cibuildwheel_build_deps_before_build_wheel.sh $search_path" +fi 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="/host/home/" + search_path=$1 REPO_PATH=$(find $search_path -type d -name $repo \ -not -path '*install*' \ -not -path '*.git*' \ diff --git a/pyproject.toml b/pyproject.toml index 14bde43..7aff831 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ AIDGE_INSTALL="../AIDGE_INSTALL_CIBUILDWHEEL/" [tool.cibuildwheel.linux] before-build = [ - "bash .gitlab/ci/cibuildwheel_install_opencv.sh", + "bash .gitlab/ci/cibuildwheel_install_opencv.sh /host", "bash .gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh " ] [tool.cibuildwheel.windows] -- GitLab