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

fix : various bugs for release on windows

parent 9c04499c
No related branches found
No related tags found
No related merge requests found
$ErrorActionPreference = "Stop"
if ($($env:AIDGE_DEPENDENCIES -split " ").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"
Write-Host "Retrieving given dependencies to build current package : $env:AIDGE_DEPENDENCIES"
foreach ($dep in $($env:AIDGE_DEPENDENCIES -split " ")) {
Write-Host "Retrieving : $dep"
$dep_path = Get-ChildItem -Path "/host/home/" -Directory -Filter $dep -Recurse |
Where-Object { $_.FullName -notmatch 'install' -and
$_.FullName -notmatch '.git' -and
$_.FullName -notmatch 'miniconda' -and
$_.FullName -notmatch 'conda' -and
$_.FullName -notmatch '.local' -and
$_.FullName -notmatch 'lib' -and
$_.FullName -notmatch "\\$dep\\$dep" } |
Select-Object -First 1 -ExpandProperty FullName
if (-not [string]::IsNullOrEmpty($dep_path)) {
Write-Host "Retrieving : $dep"
Set-Location $dep_path
New-Item -Path ".\build" -ItemType Directory -Force | Out-Null
Get-ChildItem -Path ".\build" -File | Remove-Item -Force
pip install . -Verbose
} else {
throw "$dep not found, aborting."
}
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
Get-ChildItem -Path ".\build" -File | Remove-Item -Force
python -m pip install . -v
Set-Location $curr_loc
}
}
}
\ No newline at end of file
[project]
name = "aidge_core"
description="Core implementations of the operators and graph of aidge framework"
dependencies = ["numpy>=1.26.4"]
description="Core alogrithms for operators and graph of the AIDGE framework"
dependencies = ["numpy>=1.21.6"]
requires-python = ">= 3.7"
readme = "README.md"
license = { file = "LICENSE" }
......@@ -32,7 +32,6 @@ write_to = "aidge_core/_version.py"
# CIBUILDWHEEL
[tool.cibuildwheel]
build-frontend = "build"
### AIDGE DEPENDENCIES DECLARATION
# aidge_core do not rely on any aidge dependency, hence this string is empty
[tool.cibuildwheel.linux.environment]
......
......@@ -18,7 +18,6 @@ from setuptools.command.build_ext import build_ext
def get_project_name() -> str:
with open(pathlib.Path().absolute() / "pyproject.toml", "r") as file :
project_toml = toml.load(file)
print(f"project_name = {project_toml["project"]["name"]}")
return project_toml["project"]["name"]
......
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