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

Add copy_metadata to pycountry hook #113

Merged
merged 2 commits into from
Apr 27, 2021

Conversation

obsidianforensics
Copy link
Contributor

Based off this thread: http://pyinstaller.47505.x6.nabble.com/PyInstaller-not-working-with-module-pycountry-td3064.html
I faced this same issue, used this modified hook, and it worked.

Based off this thread: http://pyinstaller.47505.x6.nabble.com/PyInstaller-not-working-with-module-pycountry-td3064.html
I faced this same issue and used this modified hook, and it worked.
@obsidianforensics obsidianforensics requested review from a team and rokm and removed request for a team April 27, 2021 18:35

# pycountry requires the ISO databases for country data.
# Tested v1.15 on Linux/Ubuntu.
# https://pypi.python.org/pypi/pycountry
datas = collect_data_files('pycountry')
datas = copy_metadata('pycountry') + collect_data_files('pycountry')
Copy link
Member

Choose a reason for hiding this comment

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

Ahh, that solves my confusion here on why the missing data files didn't show up sooner. Because we already had them here but adding another hook overwrites this one.

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.

This needs a news entry. Other than that it's good to go...

@obsidianforensics
Copy link
Contributor Author

Thanks for the quick review! I've added a news entry.

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.

Perfecto...

@bwoodsend bwoodsend merged commit f3cd1cd into pyinstaller:master Apr 27, 2021
@obsidianforensics obsidianforensics deleted the update-pycountry-hook branch April 27, 2021 20:17
# 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