Currently tested with 32-bits python and other tools
- install windows
- install git
- clone sts-agent
- run in administrator powershell: Set-ExecutionPolicy -ExecutionPolicy Unrestricted
- python 2.7
- I used the 32-bit version
- Add it to the PATH: in the Control Panel, search for 'environment'
- install ruby 2.2.5 (32-bit) with http://rubyinstaller.org/
- in cmd.exe:
- c:\Ruby22\bin\gem install bunder
- c:\Ruby22\bin\bundle install
- c:\Ruby22\bin\rake setup_env (this doesn't work yet, might not be a problem)
- python -m pip install -r requirements.txt
- install py2exe from https://sourceforge.net/projects/py2exe/files/
- make sure it's the same architecture as your python installation, so 32 bits
- install MSVC++ 9.0 for Python (from aka.ms/vcpython27)
- install pywin32 from http://sourceforge.net/projects/pywin32
- put a copy of gohai.exe (built as described at https://github.com/DataDog/gohai) in gohai/
- install wix from wixtoolset.org
- also add this to the PATH
- create C:\Python27\redist
- find x86_microsoft.vc90.crt_(....).manifest
- save it in 'redist' as 'Microsoft.VC90.CRT.manifest'
- find msvc[mpr].dll and copy them there too
- (see also http://stackoverflow.com/a/12155217/354132)
- python -m pip install pysnmp_mibs wmi pycurl pymongo psutils paramiko scandir
- remove the dependency on 'winrandom' from setup.py
- run .\packaging\datadog-agent\win32\build.ps1