Install Python35 on windows

  1. In trying to build the AKI system on Windows Server 2012 (the Windows Bamboo Server) I found that the AKI build plan was copying the vcruntime dll around the place. This is obviously bad practice, as both pytest and flake under tox create their own Python environments.

    Looking around the interwebs it appears that copying the vcruntime dll to the C:\Windows folder was the "accepted thing" to do - so I've done that even though it's still bad practice, it's slight less bad than the previous bad practice. This solution doesn't affect Python27.

    Note that the script in AKI_validation copies dll's into the target system. The newer scripts do not do this. To allow for the newer scripts, I followed the advice here

    https://github.com/pyinstaller/pyinstaller/issues/1840

    And installed the MS Windows 2010 on the bamboo server from here:

    https://www.microsoft.com/en-us/download/confirmation.aspx?id=5555

    It looks like from the comments on the github page, you don't have to do this - installing a version of pywin32 directly from the pywin32 website

    https://sourceforge.net/projects/pywin32/files/pywin32/


    maybe the better solution, but I couldn't get this to work.

  2.  I also found that the bamboo server had Python27 paths added to the PATH environment variable, which was bad for Python35, so I took it out. I'll fix things if and when they break.

  3.  flake8 had to be rewound to 2.6.0 - the latest versions of flake don't work with Python3.4 and upwards on windows. (The internet was sort of helpful here, but I did verify the problem and my solution on both the server and my machine.)