Skip to content

Commit

Permalink
windows: include requests in package
Browse files Browse the repository at this point in the history
so mavproxy_help works
  • Loading branch information
peterbarker committed Oct 6, 2024
1 parent 5672f10 commit 272eb79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions windows/MAVProxyWinBuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ python.exe -m pip install -U wheel setuptools pip
python.exe -m pip install pywin32 lxml pymavlink numpy matplotlib pyserial opencv-python PyYAML Pygame Pillow wxpython prompt-toolkit scipy
python.exe -m pip install -U openai wave pyaudio
python.exe -m pip install -U pyinstaller==6.7.0 packaging
python.exe -m pip install -U requests

rem -----Build MAVProxy-----
cd ..\
Expand Down
2 changes: 2 additions & 0 deletions windows/mavproxy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ MAVProxyAny = Analysis(['mavproxy.py'],
'wx.lib.embeddedimage', 'wx.lib.imageutils', 'wx.lib.agw.aquabutton',
'wx.lib.agw.gradientbutton',
'six','packaging', 'packaging.version', 'packaging.specifiers',
'requests',
] + collect_submodules('MAVProxy.modules') +
collect_submodules('pymavlink') + collect_submodules('yaml') + collect_submodules('pygame'),
datas= [ ('modules\\mavproxy_map\\data\\*.*', 'MAVProxy\\modules\\mavproxy_map\\data' ),
Expand All @@ -26,6 +27,7 @@ MAVExpAny = Analysis(['.\\tools\\MAVExplorer.py'],
# all the needed pieces, so we also import them in mavproxy.py
hiddenimports=['cv2', 'wx', 'pylab',
'numpy', 'dateutil', 'matplotlib',
'requests',
'prompt_toolkit', 'HTMLParser', 'wx.grid', 'wx._grid',
'wx.lib.agw.genericmessagedialog', 'wx.lib.wordwrap', 'wx.lib.buttons',
'wx.lib.embeddedimage', 'wx.lib.imageutils', 'wx.lib.agw.aquabutton',
Expand Down

0 comments on commit 272eb79

Please sign in to comment.