Skip to content

Commit

Permalink
Final fix piohome crash with VSC
Browse files Browse the repository at this point in the history
* remove telemetry
* no full git clone
* remove advertisings
* add intelhex as required
* no core packages
* install scons and piohome from github
* add argcomplete as pip dependencies
* scons-local-4.8.1
  • Loading branch information
Jason2866 authored Jan 13, 2025
1 parent ee4f121 commit acc3d7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platformio/package/manager/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def get_core_package_dir(name, spec=None, auto_install=True):
)
target_path = join(base_pack_dir, "tool-scons.tar.gz")
extract_folder = join(base_pack_dir, "tool-scons")
if not os.path.exists(extract_folder):
os.makedirs(extract_folder)
with request.urlopen(request.Request(url), timeout=15.0) as response:
if response.status == 200:
with open(target_path, "wb") as f:
Expand All @@ -73,6 +75,8 @@ def get_core_package_dir(name, spec=None, auto_install=True):
)
target_path = join(base_pack_dir, "contrib-piohome.tar.gz")
extract_folder = join(base_pack_dir, "contrib-piohome")
if not os.path.exists(extract_folder):
os.makedirs(extract_folder)
with request.urlopen(request.Request(url), timeout=15.0) as response:
if response.status == 200:
with open(target_path, "wb") as f:
Expand Down

0 comments on commit acc3d7c

Please sign in to comment.