forked from platformio/platformio-core
Avoid pip cache when problem occurs for upgrade process // Issue #295
This commit is contained in:
@ -32,6 +32,11 @@ def cli():
|
|||||||
for cmd in cmds:
|
for cmd in cmds:
|
||||||
r = None
|
r = None
|
||||||
r = util.exec_command(cmd)
|
r = util.exec_command(cmd)
|
||||||
|
|
||||||
|
# try pip with disabled cache
|
||||||
|
if r['returncode'] != 0 and cmd[0] == "pip":
|
||||||
|
r = util.exec_command(["pip", "--no-cache-dir"] + cmd[1:])
|
||||||
|
|
||||||
assert r['returncode'] == 0
|
assert r['returncode'] == 0
|
||||||
assert last in r['out'].strip()
|
assert last in r['out'].strip()
|
||||||
click.secho(
|
click.secho(
|
||||||
|
@ -97,7 +97,7 @@ def main():
|
|||||||
("Fixing Windows %PATH% Environment", fix_winpython_pathenv, []),
|
("Fixing Windows %PATH% Environment", fix_winpython_pathenv, []),
|
||||||
("Installing Python Package Manager", install_pip, []),
|
("Installing Python Package Manager", install_pip, []),
|
||||||
("Installing PlatformIO and dependencies", install_pypi_packages,
|
("Installing PlatformIO and dependencies", install_pypi_packages,
|
||||||
[["setuptools", "virtualenv", "platformio"]])
|
[["setuptools", "platformio"]])
|
||||||
]
|
]
|
||||||
|
|
||||||
if not IS_WINDOWS:
|
if not IS_WINDOWS:
|
||||||
|
Reference in New Issue
Block a user