forked from platformio/platformio-core
Found solution for "pip/scons error: option –single-version-externally-managed not recognized" // Resolve #279
This commit is contained in:
@@ -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']]))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user