spaCy/venv.ps1

19 lines
397 B
PowerShell
Raw Normal View History

2015-12-16 20:11:54 +03:00
param (
[string]$python = $(throw "-python is required."),
[string]$install_mode = $(throw "-install_mode is required."),
[string]$pip_date
)
2015-12-19 12:21:32 +03:00
$ErrorActionPreference = "Stop"
2015-12-16 20:11:54 +03:00
if(!(Test-Path -Path ".build"))
{
virtualenv .build --python $python
}
.build\Scripts\activate.ps1
2015-12-18 19:47:06 +03:00
python build.py prepare $pip_date
python build.py $install_mode
python build.py test
2015-12-16 21:13:36 +03:00
exit $LASTEXITCODE