May 2019
Intermediate to advanced
542 pages
13h 37m
English
The .spec file is a Python-syntax config file that contains all the metadata about our build. You can think of it as PyInstaller's answer to a setup.py file. Unlike setup.py, however, the .spec file is automatically generated. This happens whenever we run pyinstaller, using a combination of detected data from our script and data passed in through command-line switches. We can also just generate the .spec file (and not start the build) using the pyi-makespec command.
Once generated, a .spec file can be edited and then passed back to pyinstaller to rebuild the distribution without having to specify command-line switches every time:
$ pyinstaller qt_template.spec
To see what kind of things we might edit in this file, run pyi-makespec ...
Read now
Unlock full access