diff --git a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.ps1 b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.ps1 index 8c5611ad3b07e5d8dc8825a537a665d710ae20e2..c763666682227376e857fc99695ebf6c1ebfdb7b 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 aa97e26dcaeccdc8587b01d1a1bb1db85a8eb572..5b203c9dd0a6349eacecc5a8940edd153d201839 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