Use Install.ps1 in build_windows.ps1 (#11058)

* Use Install.ps1 in build_windows.ps1

* -d

* stop moving madmax and bladebit down into site-packages
This commit is contained in:
Kyle Altendorf 2022-04-28 09:16:16 -07:00 committed by GitHub
parent 9dc4e15905
commit 4070224da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,12 +26,9 @@ else
Write-Output " ---"
Write-Output "Create venv - python3.9 is required in PATH"
Write-Output " ---"
python -m venv venv
.\Install.ps1 -d
. .\venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install wheel pep517
pip install pywin32
pip install pyinstaller==5.0
Write-Output " ---"
# The environment variable CHIA_INSTALLER_VERSION needs to be defined
@ -43,20 +40,6 @@ if (-not (Test-Path env:CHIA_INSTALLER_VERSION)) {
Write-Output "Chia Version is: $env:CHIA_INSTALLER_VERSION"
Write-Output " ---"
Write-Output "Checking if madmax exists"
Write-Output " ---"
if (Test-Path -Path .\madmax\) {
Write-Output " madmax exists, moving to expected directory"
mv .\madmax\ .\venv\lib\site-packages\
}
Write-Output "Checking if bladebit exists"
Write-Output " ---"
if (Test-Path -Path .\bladebit\) {
Write-Output " bladebit exists, moving to expected directory"
mv .\bladebit\ .\venv\lib\site-packages\
}
Write-Output " ---"
Write-Output "Build chia-blockchain wheels"
Write-Output " ---"