diff --git a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh index 699cb50d2802df0289151470836d3fbc97e39c19..d515d9a402762b292f66520bcc6be57534184c7d 100755 --- a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh +++ b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh @@ -1,20 +1,25 @@ #!/bin/bash set -x set -e -for repo in $AIGE_DEPENDENCIES ; do - REPO_PATH=$(find /host/home/ -type d -name $repo \ - -not -path '*install*' \ - -not -path '*.git*' \ - -not -path '*miniconda*' \ - -not -path '*.local*' \ - -not -path "*lib*" \ - -not -path "*/$repo/$repo" \ - -print -quit) - - cd $REPO_PATH +if [[ $repo == "" ]]; 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 - pip install . -v -done +else + for repo in $AIGE_DEPENDENCIES ; do # case for other projects + REPO_PATH=$(find /host/home/ -type d -name $repo \ + -not -path '*install*' \ + -not -path '*.git*' \ + -not -path '*miniconda*' \ + -not -path '*.local*' \ + -not -path "*lib*" \ + -not -path "*/$repo/$repo" \ + -print -quit) + + cd $REPO_PATH + mkdir -p build # creating build if its not already there to hold the build of cpp files + rm -rf build/* # build from scratch + pip install . -v + done +fi set +x set +e diff --git a/pyproject.toml b/pyproject.toml index 17a8d888e9c6a1ab084aa551d27634135dce2819..611692e7409935aa758ff4313bd74f34f91f5975 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ [tool.cibuildwheel] build-frontend = "build" -before-build = [".gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh ${AIDGE_DEPENDENCIES}"] +before-build = ["bash .gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh ${AIDGE_DEPENDENCIES}"] [tool.cibuildwheel.environment]