Skip to content

Packaging

Arnout Engelen edited this page Aug 26, 2016 · 1 revision

Windows

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
  • 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

Clone this wiki locally