Set up a build and deployment environment on the Windows RR-Bamboo Server

If bamboo is run as a local system process then the systemprofile is not located under C:\users as occurs for other "normal" users. The systemprofile is located under C:\wndows\system32\config\systemprofile. This is where to look for the .ssh directory containging the ssh key for access to bitbucket etc. If bamboo is run under an AD account then the profile will be come C:\users\Account_Name and all the config files will need to be recreated/copied.

Point pip at internal devpi servers

Bamboo on windows runs under the system user. The pip.ini file has been placed in both the places.

C:\Windows\SysWOW64\config\systemprofile\pip

C:\Windows\System32\config\systemprofile\pip

Virtualenv, pip and devpi

To use devpi, you need the latest and greatest pip version.

Virtualenv has it's own bundled version of pip which may not be the same as the installed pip.

This can manifest itself when tox creates the needed environments.

The solution is to upgrade the base Python virtualenv with the command:

C:\Python27\Scripts\pip install --upgrade virtualenv virtualenvwrapper


But also the requirements need to reflect the latest virtualenv - at time of writing 15.1.0

Pyinstaller

pyinstaller will download pypi-win32 as a dependency, but this is not enough for pyinstaller to work - it needs pwin32types, which comes from pywin32.

See here: https://github.com/pyinstaller/pyinstaller/issues/2151

Deployment

TBD