mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
19 lines
397 B
PowerShell
19 lines
397 B
PowerShell
param (
|
|
[string]$python = $(throw "-python is required."),
|
|
[string]$install_mode = $(throw "-install_mode is required."),
|
|
[string]$pip_date
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
if(!(Test-Path -Path ".build"))
|
|
{
|
|
virtualenv .build --python $python
|
|
}
|
|
.build\Scripts\activate.ps1
|
|
|
|
python build.py prepare $pip_date
|
|
python build.py $install_mode
|
|
python build.py test
|
|
exit $LASTEXITCODE
|