mirror of https://github.com/docker/compose.git
Fix Windows build failures when installing dependencies from git
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
c9ef1fa32f
commit
76bc06b729
|
@ -41,6 +41,9 @@ Get-ChildItem -Recurse -Include *.pyc | foreach ($_) { Remove-Item $_.FullName }
|
||||||
# Create virtualenv
|
# Create virtualenv
|
||||||
virtualenv .\venv
|
virtualenv .\venv
|
||||||
|
|
||||||
|
# pip and pyinstaller generate lots of warnings, so we need to ignore them
|
||||||
|
$ErrorActionPreference = "Continue"
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
.\venv\Scripts\pip install pypiwin32==219
|
.\venv\Scripts\pip install pypiwin32==219
|
||||||
.\venv\Scripts\pip install -r requirements.txt
|
.\venv\Scripts\pip install -r requirements.txt
|
||||||
|
@ -50,8 +53,6 @@ virtualenv .\venv
|
||||||
git rev-parse --short HEAD | out-file -encoding ASCII compose\GITSHA
|
git rev-parse --short HEAD | out-file -encoding ASCII compose\GITSHA
|
||||||
|
|
||||||
# Build binary
|
# Build binary
|
||||||
# pyinstaller has lots of warnings, so we need to run with ErrorAction = Continue
|
|
||||||
$ErrorActionPreference = "Continue"
|
|
||||||
.\venv\Scripts\pyinstaller .\docker-compose.spec
|
.\venv\Scripts\pyinstaller .\docker-compose.spec
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue