Skip to content

Commit

Permalink
fix: hooks data imports for pyinstaller (aws#4491)
Browse files Browse the repository at this point in the history
- import `cfnlint` with data files, python files and package metadata
  directories.
  • Loading branch information
sriram-mv authored and mndeveci committed Dec 19, 2022
1 parent fe77015 commit 8f30f8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions installer/pyinstaller/hook-samcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"samcli", include_py_files=True, include_datas=["hook_packages/terraform/copy_terraform_built_artifacts.py"]
)[0]
+ hooks.collect_all("jschema_to_python", include_py_files=False)[0]
+ hooks.collect_all("cfnlint", include_py_files=True)[0]
# Collect ONLY data files.
+ hooks.collect_data_files("samcli")
+ hooks.collect_data_files("samtranslator")
Expand Down

0 comments on commit 8f30f8d

Please sign in to comment.