Skip to content
Snippets Groups Projects
Commit 0ff7639a authored by Grégoire Kubler's avatar Grégoire Kubler Committed by Maxence Naud
Browse files

feat : upd cibuildwheel w helper & search path is now an argument

parent 776b8ce9
No related branches found
No related tags found
1 merge request!18v0.1.3
#!/bin/bash #!/bin/bash
set -x set -x
set -e 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 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 mkdir -p build # creating build if its not already there to hold the build of cpp files
rm -rf build/* # build from scratch rm -rf build/* # build from scratch
else else
for repo in $AIDGE_DEPENDENCIES ; do # case for other projects 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 \ REPO_PATH=$(find $search_path -type d -name $repo \
-not -path '*install*' \ -not -path '*install*' \
-not -path '*.git*' \ -not -path '*.git*' \
......
...@@ -51,7 +51,7 @@ AIDGE_INSTALL="../AIDGE_INSTALL_CIBUILDWHEEL/" ...@@ -51,7 +51,7 @@ AIDGE_INSTALL="../AIDGE_INSTALL_CIBUILDWHEEL/"
[tool.cibuildwheel.linux] [tool.cibuildwheel.linux]
before-build = [ 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 " "bash .gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh "
] ]
[tool.cibuildwheel.windows] [tool.cibuildwheel.windows]
......
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