Thanks very much - works perfect!
So when i want to compile a py-file with pyinstaller is it necessary to
make the 2 steps:
1) compile the program "normally": pyinstaller --onefile temp2.py
2) make the changes in the spec-file and run: *pyInstaller --clean
temp2.spec *
Or is it also possible to this in 1 step?
bwoodsend schrieb am Donnerstag, 17. September 2020 um 17:03:47 UTC+2:
> Presumably pycountry uses pkg_resources.get_distribution("pycountry")
> somewhere to access its own metadata (usually to set a __version__
> attribute). But PyInstaller doesn’t collect that by default. To include it
> you need to use the spec file. It looks like your code is named temp2.py
> so your spec file will be called temp2.spec. Open temp2.spec (it’s just a
> Python script so you can use your Python editor). Then put the following at
> the top:
>
> from PyInstaller.utils.hooks import copy_metadata
>
> And in the a = Analysis(...) section change:
>
> datas = [],
>
> to
>
> datas = copy_metadata("pycountry"),
>
> Then rebuild using:
>
> PyInstaller --clean temp2.spec
>
>
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/5f0bcd67-db0e-47e9-af24-6ae92ffa305fn%40googlegroups.com.