Tools
Three prerequisites are needed: An editor, GIT Bash and Python. All developers machines are Windows 7 professional.
- Install an Editor - something along the lines of Emacs, Visual Studio, Notepad++, Vim or Sublime, which allows intelligent editing of Python files as well as running flake8 as you develop.
- Install GIT Bash from https://git-scm.com/downloadsThis will give you git as well as a better shell. ConEmu is also a nice tool for operating a multiplicity of shells.
- Install Python2.7 from https://www.python.org/download/releases/2.7/ - the usual install path is c:\Python27
- Install virtualenv to python2.7 by running c:\Python27\Scripts\pip install virtualenv
- Setup DevPi Client
Running Validation
- Open a GIT BASH shell
Go to a folder of your choice and pull the code base down:See Creating Validation (and others) Build and Releases.
Run
cd $(CHECKOUT_FOLDER)\rr_validation
Create virtual environment:
/c/Python27/scripts/virtualenv venv
Activate the environment
venv/scripts/activate
Install the requirements
pip install -r requirements.txt
Run Validation
python scripts/val.py
The following steps may need to be done in addition to installing PyWin via Pip / requirements.txt
xcopy
/
s
/
Y venv\Lib\site
-
packages\pywin32_system32\pythoncom27.dll venv\Lib\site
-
packages\win32\
xcopy
/
s
/
Y venv\Lib\site
-
packages\pywin32_system32\pywintypes27.dll venv\Lib\site
-
packages\win32\