Skip to content
Snippets Groups Projects
Commit 0a6f2c5b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp-v2: README: ramparse.py: add more help about python2.7"

parents 7ba460e4 fefcd717
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,17 @@ Python 2.7 is required to run this tool. It can be downloaded and ...@@ -49,6 +49,17 @@ Python 2.7 is required to run this tool. It can be downloaded and
installed from https://www.python.org/ or through your system's installed from https://www.python.org/ or through your system's
software package manager. software package manager.
If you already have python2.7 installed but it's not the default
python2 interpreter on your system (e.g. if python2 points to
python2.6) then you'll need to invoke the script with python2.7
explicitly, for example:
$ python2.7 $(which ramparse.py) ...
instead of:
$ ramparse.py ...
Setting up the toolchains Setting up the toolchains
------------------------------- -------------------------------
The parser relies on having access to gdb and nm to work. You will need to The parser relies on having access to gdb and nm to work. You will need to
......
...@@ -40,12 +40,23 @@ if major != 2: ...@@ -40,12 +40,23 @@ if major != 2:
if minor != 7 and '--force-26' not in sys.argv: if minor != 7 and '--force-26' not in sys.argv:
from textwrap import dedent from textwrap import dedent
print(dedent(""" print(dedent("""
Warning! This script is developed and tested with Python 2.7. WARNING! This script is developed and tested with Python 2.7.
You might be able to get things working on 2.6 by installing You might be able to get things working on 2.6 by installing
a few dependencies (most notably, OrderedDict [1]) a few dependencies (most notably, OrderedDict [1])
and then passing --force-26 to bypass this version check, but and then passing --force-26 to bypass this version check, but
the recommended and supported approach is to install python2.7. the recommended and supported approach is to install python2.7.
If you already have python2.7 installed but it's not the default
python2 interpreter on your system (e.g. if python2 points to
python2.6) then you'll need to invoke the scripts with python2.7
explicitly, for example:
$ python2.7 $(which ramparse.py) ...
instead of:
$ ramparse.py ...
[1] https://pypi.python.org/pypi/ordereddict""")) [1] https://pypi.python.org/pypi/ordereddict"""))
sys.exit(1) sys.exit(1)
if '--force-26' in sys.argv: if '--force-26' in sys.argv:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment