File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121export PYTHONPATH=" ../debian/opt/cloud/bin/"
2222export PYTHONDONTWRITEBYTECODE=False
2323
24- echo " Running pep8 to check systemvm/python code for errors"
25- pep8 --max-line-length=179 * py
26- pep8 --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py,passwd_server_ip.py ` find ../debian -name \* .py`
24+ echo " Running pycodestyle to check systemvm/python code for errors"
25+ pycodestyle --max-line-length=179 * py
26+ pycodestyle --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py,passwd_server_ip.py ` find ../debian -name \* .py`
2727if [ $? -gt 0 ]
2828then
2929 echo " Pylint failed, please check your code"
Original file line number Diff line number Diff line change 2222#
2323
2424echo -e " #### System Information ####"
25+ echo -e " \nO.S. information:"
26+ echo $( uname -a)
2527
2628echo -e " \nWho am I:"
2729whoami
@@ -100,7 +102,7 @@ pip install --user --upgrade pip
100102
101103for (( i= 0 ;i< $RETRY_COUNT ;i++ ))
102104do
103- pip install --user --upgrade lxml paramiko nose texttable ipmisim pyopenssl mock flask netaddr pylint pep8 > /tmp/piplog
105+ pip install --user --upgrade lxml paramiko nose texttable ipmisim pyopenssl mock flask netaddr pylint pycodestyle six astroid > /tmp/piplog
104106 if [[ $? -eq 0 ]]; then
105107 echo -e " \npython packages installed successfully"
106108 break ;
109111 cat /tmp/piplog
110112done
111113
114+ echo -e " \nVersion of pip troublesome packages:\n"
115+ echo $( pip freeze | grep -e six -e mock -e astroid -e enum34)
You can’t perform that action at this time.
0 commit comments