The Synthetic Server relies on the Python library flake8 2.6.2 to lint synthetic scripts. When you install the Synthetic Server, the installer will use pip to install the correct version of flake8, but if you need to manually install the flake8 library and the Synthetic Server host machine does not have outbound access to the internet, you can use the following instructions to fetch and install flake8 2.6.2. Note that you will still need a machine with internet access to fetch the package.
pip installed:
Create a directory for the flake8 library:
mkdir ~/flake8
Download the flake8 package:
pip download flake8==2.6.2 -d ~/flake8
Zip and tar the flake8 package:
tar cvfz flake8-2.6.2.tgz ~/flake8
Copy flake8.tgz to the $HOME directory of the host machine of the Synthetic Server.
From the host of the Synthetic Server that has no internet access, but does have pip installed:
Unzip and extract the flake8.tgz file:
tar xvfz flake8-2.6.2.tgz ~/flake8
Change to the flake8 directory.
Install the flake8 library with pip with the following command:
pip install flake8-2.6.2-py2.py3-none-any.whl -f ./ --no-index