I made a Python application, and I wanted to construct exe file to simplify sharing among Windows users. I used:
- Python 3.6.1
- cx_Freeze module 5.0.2
I got an exe file, but the final structure made me cry:
- executable file
- zip archive with Python 3.6
- 3 dlls (python, sqlite, vcruntime)
- 21 folders
- 10 pyd files
In my opinion, it is not convinient for users and I would like to move folders and pyd files into separate folder or archive (it would be better). Does anybody know to do it? Current build.py
:
from cx_Freeze import setup, Executable
setup(
name = 'myapp',
version = '0.1',
executables = [Executable(
script='__main__.py',
targetName='myapp.exe',
icon='myapp.ico'
)]
)
What options should I add to my setup
function? Is it possible to do in current versions of Python and cx_Freeze? Or should I patch cx_Freeze like this?