Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update hook-azurerm.py #282

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Hilali4886
Copy link
Contributor

Fix for pyinstaller4.4 need to use recursive=True

Fix for pyinstaller4.4 need to use recursive=True
@Hilali4886 Hilali4886 requested review from a team and Legorooj and removed request for a team August 1, 2021 15:20
Copy link
Member

@bwoodsend bwoodsend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, that recursive option is only available in PyInstaller 4.4 and later so it would have to be conditional to support both old and new versions of PyInstaller.

from PyInstaller.utils.hooks import is_module_satisfies:

if is_module_satisfies("pyinstaller >= 4.4"):
    datas = copy_metadata("azurem", recursive=True)
else:
    datas = copy_metadata("azurem")

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants