forked from p34709852/monkey
Install Pywin32 using pip now
This commit is contained in:
parent
66a5133a61
commit
9edce17297
|
@ -92,6 +92,9 @@ function Deploy-Windows([String] $monkey_home = (Get-Item -Path ".\").FullName,
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"Installing pywin32"
|
||||||
|
python -m pip install --user pywin32
|
||||||
|
|
||||||
"Installing python packages for island"
|
"Installing python packages for island"
|
||||||
$islandRequirements = Join-Path -Path $monkey_home -ChildPath $MONKEY_ISLAND_DIR | Join-Path -ChildPath "\requirements.txt" -ErrorAction Stop
|
$islandRequirements = Join-Path -Path $monkey_home -ChildPath $MONKEY_ISLAND_DIR | Join-Path -ChildPath "\requirements.txt" -ErrorAction Stop
|
||||||
& python -m pip install --user -r $islandRequirements
|
& python -m pip install --user -r $islandRequirements
|
||||||
|
@ -187,12 +190,6 @@ function Deploy-Windows([String] $monkey_home = (Get-Item -Path ".\").FullName,
|
||||||
& npm run dist
|
& npm run dist
|
||||||
Pop-Location
|
Pop-Location
|
||||||
|
|
||||||
# Install pywin32
|
|
||||||
"Downloading pywin32"
|
|
||||||
$webClient.DownloadFile($PYWIN32_URL, $TEMP_PYWIN32_INSTALLER)
|
|
||||||
Start-Process -Wait $TEMP_PYWIN32_INSTALLER -ErrorAction Stop
|
|
||||||
Remove-Item $TEMP_PYWIN32_INSTALLER
|
|
||||||
|
|
||||||
# Create infection_monkey/bin directory if not already present
|
# Create infection_monkey/bin directory if not already present
|
||||||
$binDir = (Join-Path -Path $monkey_home -ChildPath $MONKEY_DIR | Join-Path -ChildPath "\bin")
|
$binDir = (Join-Path -Path $monkey_home -ChildPath $MONKEY_DIR | Join-Path -ChildPath "\bin")
|
||||||
New-Item -ItemType directory -path $binaries -ErrorAction SilentlyContinue
|
New-Item -ItemType directory -path $binaries -ErrorAction SilentlyContinue
|
||||||
|
|
Loading…
Reference in New Issue