docs: Add some tips about setting the Python interpreter, and a specific check in idf.py

Don't show the "Python 2 interpreter" option in menuconfig when using CMake.

This is a stop-gap until we support Python 2 & 3 together in ESP-IDF (soon).

Closes https://github.com/espressif/esp-idf/issues/1924
This commit is contained in:
Angus Gratton
2018-05-11 17:20:27 +08:00
committed by Angus Gratton
parent a1fac97f1a
commit be4956fe7c
4 changed files with 24 additions and 2 deletions
+3
View File
@@ -345,6 +345,9 @@ def get_commandline_options():
def main():
if sys.version_info[0] != 2 or sys.version_info[1] != 7:
raise FatalError("ESP-IDF currently only supports Python 2.7, and this is Python %d.%d.%d. Search for 'Setting the Python Interpreter' in the ESP-IDF docs for some tips to handle this." % sys.version_info[:3])
parser = argparse.ArgumentParser(description='ESP-IDF build management tool')
parser.add_argument('-p', '--port', help="Serial port",
default=os.environ.get('ESPPORT', None))