Skip to content

Commit

Permalink
add dl espressif pypi pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
brianignacio5 committed Jun 7, 2024
1 parent 54080fb commit e1c7bbc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ where:
Make sure to install the extension and extension debug adapter Python requirements by running the following commands in your terminal:

```
PYTHON_INTERPRETER -m pip install --upgrade -r EXTENSION_PATH/esp_debug_adapter/requirements.txt
PYTHON_INTERPRETER -m pip install --upgrade -r EXTENSION_PATH/esp_debug_adapter/requirements.txt --extra-index-url https://dl.espressif.com/pypi
```

where EXTENSION_PATH is
Expand Down
9 changes: 8 additions & 1 deletion src/espBom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,14 @@ export async function installEspSBOM(workspace: Uri) {
} catch (error) {
const installResult = await execChildProcess(
pythonBinPath,
["-m", "pip", "install", "esp-idf-sbom"],
[
"-m",
"pip",
"install",
"esp-idf-sbom",
"--extra-index-url",
"https://dl.espressif.com/pypi",
],
workspace.fsPath,
OutputChannel.init(),
{ env: modifiedEnv }
Expand Down
4 changes: 4 additions & 0 deletions src/pythonManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ export async function installExtensionPyReqs(
"--no-warn-script-location",
"-r",
debugAdapterRequirements,
"--extra-index-url",
"https://dl.espressif.com/pypi",
];
await execProcessWithLog(
virtualEnvPython,
Expand Down Expand Up @@ -237,6 +239,8 @@ export async function installEspMatterPyReqs(
"--no-warn-script-location",
"-r",
matterRequirements,
"--extra-index-url",
"https://dl.espressif.com/pypi",
];
await execProcessWithLog(
virtualEnvPython,
Expand Down

0 comments on commit e1c7bbc

Please sign in to comment.