diff -r ba6171edd33d -r 29b54296cf8c scripts/install.py --- a/scripts/install.py Mon Mar 09 19:51:19 2020 +0100 +++ b/scripts/install.py Mon Mar 09 19:53:03 2020 +0100 @@ -1307,12 +1307,32 @@ return ok +def updatePip(): + """ + Update the installed pip package. + """ + global yes2All + + if yes2All: + answer = "y" + else: + print("Shall 'pip' be updated (recommended)? (Y/n)", end=" ") + answer = input() + if answer in ("", "Y", "y"): + subprocess.call( + [sys.executable, "-m", "pip", "install", "--upgrade", "pip"]) + + def doDependancyChecks(): """ Perform some dependency checks. """ print('Checking dependencies') + # update pip first even if we don't need to install anything + updatePip() + print("\n\n") + # perform dependency checks print("Python Version: {0:d}.{1:d}.{2:d}".format(*sys.version_info[:3])) if sys.version_info < (3, 5, 0):