mirror of
https://github.com/IRBorisov/ConceptCore.git
synced 2025-06-27 09:40:36 +03:00
Fix pyconcept build
This commit is contained in:
parent
cc5a605a88
commit
ea0946a530
|
@ -4,6 +4,9 @@ $packageName = 'pyconcept'
|
||||||
$output = "${PSScriptRoot}\..\..\output\py\${packageName}"
|
$output = "${PSScriptRoot}\..\..\output\py\${packageName}"
|
||||||
$python = '.\venv\Scripts\python.exe'
|
$python = '.\venv\Scripts\python.exe'
|
||||||
|
|
||||||
|
$scripts = Resolve-Path -Path "${PSScriptRoot}\..\venv\Scripts"
|
||||||
|
$Env:PATH += ";${scripts}"
|
||||||
|
|
||||||
$ccl_source = "${PSScriptRoot}\..\..\ccl"
|
$ccl_source = "${PSScriptRoot}\..\..\ccl"
|
||||||
$ccl_destination = "${PSScriptRoot}\..\ccl"
|
$ccl_destination = "${PSScriptRoot}\..\ccl"
|
||||||
$ccl_include = ('*.cpp','*.hpp','*.h')
|
$ccl_include = ('*.cpp','*.hpp','*.h')
|
||||||
|
@ -70,8 +73,10 @@ function PrepareOutput {
|
||||||
function BuildProject {
|
function BuildProject {
|
||||||
Write-Host 'Building project...' -ForegroundColor DarkGreen
|
Write-Host 'Building project...' -ForegroundColor DarkGreen
|
||||||
& $python -m build --wheel --no-isolation --outdir="${output}"
|
& $python -m build --wheel --no-isolation --outdir="${output}"
|
||||||
|
if ($LASTEXITCODE -eq 0) {
|
||||||
& $python -m build --sdist --no-isolation --outdir="${output}"
|
& $python -m build --sdist --no-isolation --outdir="${output}"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function TestWheel([string] $wheelPath) {
|
function TestWheel([string] $wheelPath) {
|
||||||
Write-Host 'Running tests...' -ForegroundColor DarkGreen
|
Write-Host 'Running tests...' -ForegroundColor DarkGreen
|
||||||
|
|
Loading…
Reference in New Issue
Block a user