mirror of
https://github.com/marcelstoer/nodemcu-pyflasher.git
synced 2025-07-25 20:26:37 +00:00
parent
31584f693b
commit
2d5daab9f1
@ -1,11 +1,20 @@
|
|||||||
# -*- mode: python ; coding: utf-8 -*-
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
# We need to add the flasher stub JSON files explicitly: https://github.com/espressif/esptool/issues/1059
|
||||||
|
venv_python_folder_name = next(d for d in os.listdir('./.venv/lib') if d.startswith('python') and os.path.isdir(os.path.join('./.venv/lib', d)))
|
||||||
|
local_stub_flasher_path = "./.venv/lib/{}/site-packages/esptool/targets/stub_flasher".format(venv_python_folder_name)
|
||||||
|
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
['nodemcu-pyflasher.py'],
|
['nodemcu-pyflasher.py'],
|
||||||
pathex=[],
|
pathex=[],
|
||||||
binaries=[],
|
binaries=[],
|
||||||
datas=[("images", "images")],
|
datas=[
|
||||||
|
("images", "images"),
|
||||||
|
("{}/1".format(local_stub_flasher_path), "./esptool/targets/stub_flasher/1"),
|
||||||
|
("{}/2".format(local_stub_flasher_path), "./esptool/targets/stub_flasher/2")
|
||||||
|
],
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
# -*- mode: python ; coding: utf-8 -*-
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
|
|
||||||
|
# We need to add the flasher stub JSON files explicitly: https://github.com/espressif/esptool/issues/1059
|
||||||
|
local_stub_flasher_path = "./.venv/Lib/site-packages/esptool/targets/stub_flasher"
|
||||||
|
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
['nodemcu-pyflasher.py'],
|
['nodemcu-pyflasher.py'],
|
||||||
pathex=[],
|
pathex=[],
|
||||||
binaries=[],
|
binaries=[],
|
||||||
datas=[("images", "images")],
|
datas=[
|
||||||
|
("images", "images"),
|
||||||
|
("{}/1".format(local_stub_flasher_path), "./esptool/targets/stub_flasher/1"),
|
||||||
|
("{}/2".format(local_stub_flasher_path), "./esptool/targets/stub_flasher/2")
|
||||||
|
],
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
# Can't use v4 atm, see https://github.com/marcelstoer/nodemcu-pyflasher/issues/105
|
esptool==4.8.1
|
||||||
esptool==3.3.3
|
|
||||||
pyserial~=3.5
|
pyserial~=3.5
|
||||||
# https://github.com/wxWidgets/Phoenix/issues/2499 prevents the use of 4.2.1.
|
wxPython==4.2.2
|
||||||
# 4.2.0 requires Python <=3.10 apparently.
|
PyInstaller==6.11.1
|
||||||
wxPython==4.2.0
|
|
||||||
PyInstaller==6.9.0
|
|
||||||
httplib2>=0.18.1
|
httplib2>=0.18.1
|
||||||
pyinstaller-versionfile>=2.0.0
|
pyinstaller-versionfile>=2.0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user