Skip to content

Commit

Permalink
building: main: display path to dist directory at end of the build
Browse files Browse the repository at this point in the history
At the end of the build process, display a "build complete" message,
along with the path to the `dist` directory (or rather, the path in
`CONF['distpath']`), in an attempt to dissuade users from trying
to run the intermediate build results in the `build` directory
(i.e., the `CONF['workpath']`).
  • Loading branch information
rokm committed Jan 17, 2025
1 parent ee05de8 commit 825a24b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PyInstaller/building/build_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,8 @@ def build(spec, distpath, workpath, clean_build):
raise SystemExit(f'Spec file "{spec}" not found!')
exec(code, spec_namespace)

logger.info("Build complete! The results are available in: %s", CONF['distpath'])


def __add_options(parser):
parser.add_argument(
Expand Down

0 comments on commit 825a24b

Please sign in to comment.