| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | # Builds the Windows binary.## From a fresh 64-bit Windows 10 install, prepare the system as follows:## 1. Install Git:##        http://git-scm.com/download/win## 2. Install Python 3.6.4:##        https://www.python.org/downloads/## 3. Append ";C:\Python36;C:\Python36\Scripts" to the "Path" environment variable:##        https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx?mfr=true## 4. In Powershell, run the following commands:##        $ pip install 'virtualenv>=15.1.0'#        $ Set-ExecutionPolicy -Scope CurrentUser RemoteSigned## 5. Clone the repository:##        $ git clone https://github.com/docker/compose.git#        $ cd compose## 6. Build the binary:##        .\script\build\windows.ps1$ErrorActionPreference = "Stop"# Remove virtualenvif (Test-Path venv) {    Remove-Item -Recurse -Force .\venv}# Remove .pyc filesGet-ChildItem -Recurse -Include *.pyc | foreach ($_) { Remove-Item $_.FullName }# Create virtualenvvirtualenv .\venv# pip and pyinstaller generate lots of warnings, so we need to ignore them$ErrorActionPreference = "Continue".\venv\Scripts\pip install pypiwin32==223.\venv\Scripts\pip install -r requirements.txt.\venv\Scripts\pip install --no-deps ..\venv\Scripts\pip install -r requirements-build.txtgit rev-parse --short HEAD | out-file -encoding ASCII compose\GITSHA# Build binary.\venv\Scripts\pyinstaller .\docker-compose.spec$ErrorActionPreference = "Stop"Move-Item -Force .\dist\docker-compose.exe .\dist\docker-compose-Windows-x86_64.exe.\dist\docker-compose-Windows-x86_64.exe --version
 |