Skip to content
Snippets Groups Projects
Commit a2e529a0 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : cibuildwheel aidge_dependencies env var considered as string and properly handled

parent 42e13ee9
No related branches found
No related tags found
2 merge requests!93Release v0.3.0,!64Feat/release pip
Pipeline #49451 waiting for manual action
$ErrorActionPreference = "Stop"
if ($($env:AIDGE_DEPENDENCIES -split " ").Length -eq 0) {
$AIDGE_DEPENDENCIES = Invoke-Expression $env:AIDGE_DEPENDENCIES
Write-Host "Aidge dependencies : $AIDGE_DEPENDENCIES"
if ( $($AIDGE_DEPENDENCIES.Length) -eq 0) {
Write-Host "- No dependencies provided for current repsitory"
New-Item -ItemType Directory -Force -Path ".\build" | Out-Null
Remove-Item -Path ".\build\*" -Recurse -Force
} else {
Write-Host "Retrieving given dependencies to build current package : $env:AIDGE_DEPENDENCIES"
foreach ($dep in $($env:AIDGE_DEPENDENCIES -split " ")) {
Write-Host "Retrieving given dependencies to build current package : $AIDGE_DEPENDENCIES"
foreach ($dep in $($AIDGE_DEPENDENCIES -split " ")) {
Write-Host "Retrieving : $dep"
$curr_loc=$(Get-Location)
Set-Location ../$dep
Write-Host "YYEETEEEEEEEEEEEEt"
Get-Location
Get-ChildItem .
New-Item -Path ".\build" -ItemType Directory -Force | Out-Null
......@@ -18,4 +19,4 @@ if ($($env:AIDGE_DEPENDENCIES -split " ").Length -eq 0) {
python -m pip install . -v
Set-Location $curr_loc
}
}
\ No newline at end of file
}
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