Note that this is intended to be the last v5.x release. v6.0 will contain breaking changes from #7619, #7713 and #6999. If you want to avoid unexpected disruption, you may wish to pin pyinstaller (e.g. pip install "pyinstaller<6").
* Add support for Python 3.12. (:issue:`7670`)
* (Windows) Add support for collecting .pyc files from the ``python3X.zip``
archive where ``Windows embeddable package`` Python stores its stdlib modules.
(:issue:`4989`)
Bugfix
* Limit the import of collected packages prior to performing binary
dependency analysis to only Windows, where it is actually useful.
On non-Windows platforms, there is no benefit to it, and it might
cause issues with particular orders of package imports. (:issue:`7698`)
* When building PKG for ``onedir`` build, ensure that ``DATA`` entries
are put into dependencies list instead of including them in the PKG.
This complements existing behavior for ``BINARY`` and ``EXTENSION``
entries, and prevents a ``onedir`` build from becoming a broken
``onefile`` one if user accidentally passes binaries and data files
TOCs to ``EXE`` instead of `COLLECT` when manually editing the
spec file. (:issue:`7708`)
5.12.0 (2023-06-08)
-------------------
Features
</code></pre>
<ul>
<li>(macOS) PyInstaller now removes all rpaths from collected binaries
and replaces them with a single rpath pointing to the top-level
application directory, relative to <code>@loader_path</code>. (:issue:<code>7664</code>)</li>
<li>Attempt to preserve the parent directory layout for <code>pywin32</code>
extensions that originate from <code>win32</code> and <code>pythonwin</code> directories,
instead of collecting those extensions to top-level application directory.
(:issue:<code>7627</code>)</li>
</ul>
<p>Bugfix</p>
<pre><code>
* (Linux/macOS) Fix the Qt directory path override in ``PySide2`` and
``PySide6`` run-time hooks. These paths, set via ``QT_PLUGIN_PATH`` and
``QML2_IMPORT_PATH`` environment variables, are used with ``PySide2``
and ``PySide6`` builds that that use system-wide Qt installation and
</tr></table>
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/58b8235b0ecd474f71c56e119d2889bf09026cb4"><code>58b8235</code></a> Release v5.13.0. [skip ci]</li>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/63738a41d43839fa905473217e0141a00053c7e3"><code>63738a4</code></a> rthook: harden run-time hooks against global namespace changes</li>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/732de6be4098d4c1ea320febb536454679f261be"><code>732de6b</code></a> building: macOS: extend library path rewriting to all relocatable load comman...</li>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/92c8fe4e94c708f625aa28bb9541a2a4976a5f76"><code>92c8fe4</code></a> Revert installing pywin32-ctypes from git on Python 3.12.</li>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/72f19ea862e66dd1066cfbd7abd7e47b3445b43c"><code>72f19ea</code></a> Tests: Requirements: Scheduled weekly dependency update for week 25 (<a href="https://redirect.github.com/pyinstaller/pyinstaller/issues/7716">#7716</a>)</li>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/1cc6719f74a4416e5744ca22603add5128bac94d"><code>1cc6719</code></a> building: add support for collecting .pyc files from .zip archives</li>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/1bf2be5f27ccbb3113416eee28e82cb37ff856e6"><code>1bf2be5</code></a> tests: improve ctypes.util.find_library compatibility check on macOS</li>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/5b85fcc53d301f0fac6200d95cb053ca9476293e"><code>5b85fcc</code></a> Add Python 3.12 to README, add news fragment</li>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/048a51dcbeff9edc5f797044da5020ed90df3525"><code>048a51d</code></a> hooks: add pre-safe-import-module hook for distutils</li>
<li><a href="https://github.com/pyinstaller/pyinstaller/commit/fa1a009a2c7a1be1ad5152bb03a846048b92d032"><code>fa1a009</code></a> test/bytecode: Update test for scanning nested code objects.</li>
<li>Additional commits viewable in <a href="https://github.com/pyinstaller/pyinstaller/compare/v5.11.0...v5.13.0">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyinstaller&package-manager=pip&previous-version=5.11.0&new-version=5.13.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
You can trigger a rebase of this PR by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note**
> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps pyinstaller from 5.11.0 to 5.13.0.
Release notes
Sourced from pyinstaller's releases.
Changelog
Sourced from pyinstaller's changelog.