Commands¶
Are listed on this page commands used/implemented by poetry-pyinstaller-plugin and solely exposed through Poetry CLI.
Poetry's Commands¶
poetry build¶
Legacy build command provided by Poetry, PyInstaller targets are always build when format is unspecified.
Building pyinstaller [python3.12 manylinux_2_39_x86_64]
- Building my-tool
- Built my-tool
Building package_name (0.1.0)
Building sdist
- Building sdist
- Built package_name-0.1.0.tar.gz
Building wheel
- Building wheel
- Built package_name-0.1.0-py3-none-any.whl
Distributing bundled binaries in Wheels ?
Inclusion of executables in Wheel archives is only supported by this command.
Plugin's Commands¶
poetry pyinstaller build¶
Build PyInstaller targets only.
Building pyinstaller [python3.12 manylinux_2_39_x86_64]
- Building my-tool
- Built my-tool
poetry pyinstaller show¶
Show installed version of poetry-pyinstaller-plugin.
Debugging¶
Logging¶
You can debug your PyInstaller builds by changing the logging level using legacy Poetry's -v, --verbose CLI option.
Available logging levels:
-v: Set--log-level=WARN-vv: Set--log-level=INFO-vvv: Set--log-level=DEBUGAND--debug=all
Warning
--debug=all option of PyInstaller enable debug logging in final executable.
Build folder & Specs¶
Intermediate files created by PyInstaller during build are kept within your project under build/<platform>/<target> directory.
PyInstaller's .spec files are by default saved in dist/pyinstaller/<platform>/.specs directory.
Info
Build folders are not re-used between builds to ensure repeatability of builds with clean & accurate dependency tree.