mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-03 04:49:26 +00:00
Package boto3 for Bedrock and pin google-auth
New [bedrock] extra; desktop builds and CI install it; PyInstaller collects boto3/botocore so the lazy import works in the bundled sidecar.
This commit is contained in:
@@ -70,6 +70,17 @@ if IS_WINDOWS:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# [bedrock] extra — boto3 is lazy-imported (bedrock_provider.py) so static analysis
|
||||
# misses it, and botocore's service-model JSON data dir only ships via collect_all.
|
||||
for pkg in ("boto3", "botocore"):
|
||||
try:
|
||||
d, b, h = collect_all(pkg)
|
||||
datas += d
|
||||
binaries += b
|
||||
hiddenimports += h
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
for pkg in ("slack_bolt", "telegram"): # [messaging] extra — optional
|
||||
try:
|
||||
hiddenimports += collect_submodules(pkg)
|
||||
|
||||
Reference in New Issue
Block a user