From f8e16dfc3877e29806dad5ba947eaa471cd18c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me> Date: Mon, 6 May 2024 13:31:28 +0200 Subject: [PATCH] chore : added debug prints --- .../ci/cibuildwheel_build_deps_before_build_wheel.ps1 | 5 +++++ pyproject.toml | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.ps1 b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.ps1 index 8c5611ad3..c76366668 100644 --- a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.ps1 +++ b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.ps1 @@ -7,7 +7,9 @@ if ($deps.Length -eq 0) { New-Item -ItemType Directory -Force -Path ".\build" | Out-Null Remove-Item -Path ".\build\*" -Recurse -Force } else { + Write-Host "Retrieving dependencies necessary to build current package" foreach ($repo in $DEPS) { + Write-Host "Retrieving : $repo" $repoPath = Get-ChildItem -Path "/host/home/" -Directory -Filter $repo -Recurse | Where-Object { $_.FullName -notmatch 'install' -and $_.FullName -notmatch '.git' -and @@ -19,10 +21,13 @@ if ($deps.Length -eq 0) { Select-Object -First 1 -ExpandProperty FullName if (-not [string]::IsNullOrEmpty($repoPath)) { + Write-Host "Retrieving : $repo" Set-Location $repoPath New-Item -Path ".\build" -ItemType Directory -Force | Out-Null Get-ChildItem -Path ".\build" -File | Remove-Item -Force pip install . -Verbose + } else {Â + throw "$repo not found, aborting." } } } diff --git a/pyproject.toml b/pyproject.toml index aa97e26dc..5b203c9dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,9 +23,15 @@ build-frontend = "build" # aidge_core do not rely on any aidge dependency, hence this string is empty AIDGE_DEPENDENCIES = "" # format => "dep_1 dep_2 ... dep_n" [tool.cibuildwheel.linux] -before-build = ["bash .gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh ${AIDGE_DEPENDENCIES}"] +before-build = [ + 'echo "dependencies to retrieve : ${AIDGE_DEPENDENCIES}', + "bash .gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh ${AIDGE_DEPENDENCIES}" + ] [tool.cibuildwheel.windows] -before-build = [".\\.gitlab\\ci\\cibuildwheel_build_deps_before_build_wheel.ps1 --deps ${AIDGE_DEPENDENCIES}"] +before-build = [ + 'Write-Host "dependencies to retrieve : $env:{AIDGE_DEPENDENCIES}', + ".\\.gitlab\\ci\\cibuildwheel_build_deps_before_build_wheel.ps1 --deps $env:{AIDGE_DEPENDENCIES}" + ] ##################################################### # SETUPTOOLS -- GitLab