Skip to content

Commit

Permalink
Try alternate install
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Mar 3, 2024
1 parent 26e859d commit fd97de9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
- "examples/arduino-multiprocessing-message"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.10"
# On Linux, wxPython ("needed" for flash_writer.py)
# has a dependency on GTK+. Install it here.
# the tool just uses it to show a EULA dialog,
Expand Down
11 changes: 9 additions & 2 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,14 @@ def __configure_upload_port(env):
# Install wxPython dependency of tool-spresense
#
def install_python_deps():
# check if dependencies are installed by just importing them
try:
import wx
import wx.html
return
except ImportError:
print("Spresense tools's Python dependencies (wxPython) not yet installed.")
pass
def _get_installed_pip_packages():
result = {}
packages = {}
Expand All @@ -341,8 +349,7 @@ def _get_installed_pip_packages():
return result

deps = {
"attrdict3": "==2.0.2",
"wxPython": "==4.2.0"
"wxPython": "==4.2.1"
}

installed_packages = _get_installed_pip_packages()
Expand Down

0 comments on commit fd97de9

Please sign in to comment.