mapillary_download/for_futur_me.txt

13 lines
654 B
Plaintext
Raw Normal View History

2023-09-21 21:29:44 +02:00
When you want to build a binary with pyinstaller :
2023-09-21 22:25:39 +02:00
Windows :
2023-09-21 21:29:44 +02:00
https://github.com/LeoHsiao1/pyexiv2/issues/87#issuecomment-1728415363
if anyone using windows to use pyinstaller, i found the solution for it, which is the command below.
you need to use --add-binary for your "exiv2.dll" and use --add-data for your "exiv2api.pyd".
pyinstaller --add-binary “C:\Python310\Lib\site-packages\pyexiv2\lib\exiv2.dll;.” --add-data “C:\Python310\Lib\site-packages\pyexiv2\lib\py3.10-win\exiv2api.pyd;.” --onefile ccc.py
2023-09-21 22:25:39 +02:00
Linux :
Edit the python_lib_path variable in hooks/hook-pyexiv2.py
run pyinstaller with this argument : --additional-hooks-dir=hooks