Skip to content

Commit fd4a53a

Browse files
committed
PIO Home is Python 3 native since Core 5.0.5
1 parent 3df3e2f commit fd4a53a

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

pioinstaller/core.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ def install_platformio_core(shutdown_piohome=True, develop=False, ignore_pythons
9696
penv.get_penv_bin_dir(penv_dir),
9797
"platformio.exe" if util.IS_WINDOWS else "platformio",
9898
)
99-
try:
100-
home.install_pio_home(platformio_exe)
101-
except Exception as e: # pylint:disable=broad-except
102-
log.debug(e)
10399

104100
click.secho(
105101
"\nPlatformIO Core has been successfully installed into an isolated environment `%s`!\n"

pioinstaller/home.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@
1414

1515
import logging
1616
import multiprocessing
17-
import subprocess
1817

1918
import requests
2019

21-
from pioinstaller import exception
22-
2320
HTTP_HOST = "127.0.0.1"
2421
HTTP_PORT_BEGIN = 8008
2522
HTTP_PORT_END = 8050
@@ -44,14 +41,3 @@ def shutdown_pio_home_servers():
4441
proc.join(10)
4542
proc.terminate()
4643
return True
47-
48-
49-
def install_pio_home(platformio_exe):
50-
try:
51-
subprocess.check_output(
52-
[platformio_exe, "home", "--host", "__do_not_start__"],
53-
stderr=subprocess.PIPE,
54-
)
55-
return True
56-
except Exception as e: # pylint:disable=broad-except
57-
raise exception.PIOInstallerException("Could not install PIO Home: %s" % str(e))

0 commit comments

Comments
 (0)