Found solution for "pip/scons error: option –single-version-externally-managed not recognized" // Resolve #279

This commit is contained in:
Ivan Kravets
2015-09-10 17:47:19 +03:00
parent d4f4d9c789
commit c72bf9ea31
5 changed files with 58 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ def cli():
fg="yellow")
cmds = (
["pip", "install", "--upgrade", "pip", "setuptools", "virtualenv"],
["pip", "install", "--upgrade", "pip", "setuptools"],
["pip", "install", "--upgrade", "platformio"],
["platformio", "--version"]
)
@@ -42,7 +42,7 @@ def cli():
fg="cyan")
except (OSError, AssertionError) as e:
if not r:
raise exception.PlatformioException(
raise exception.PlatformioUpgradeError(
"\n".join([str(cmd), str(e)]))
if ("Permission denied" in r['err'] and
"windows" not in util.get_systype()):
@@ -58,7 +58,7 @@ WARNING! Don't use `sudo` for the rest PlatformIO commands.
""", fg="yellow", err=True)
raise exception.ReturnErrorCode()
else:
raise exception.PlatformioException(
raise exception.PlatformioUpgradeError(
"\n".join([str(cmd), r['out'], r['err']]))