To create a multiprogram bundle with merged common modules.To add Python run-time options to the executable.To include run-time libraries that are unknown to PyInstaller.Modification of the spec file is not needed except in few cases where it is useful, when we want to: The spec file is an executable python code that tells PyIstaller how to process our Python script. Now there are 3 important elements of using the PyInstaller:Ī Spec file, short for specification file is the first file that is built after the execution of pyinstaller program.py. PyInstaller bundles a Python application and all its dependencies into a single package, on Windows, macOS and Linux. exe file with the same name as the given python script name. A folder named dist will also be created which contains a. A build folder is created which contains some log files and working files.Creates a program.spec file which contains the information about the files that should be packed up. Flet wraps PyInstaller API to package Flet Python app and all its dependencies into a single package for Windows, macOS and Linux.PyInstaller analyzes our code and does the following.
0 Comments
Leave a Reply. |