Update README.md with fix notice

https://github.com/JackMcKew/pyinstaller-action-windows/issues/51
This commit is contained in:
rvbg 2024-05-24 04:48:50 +02:00 committed by GitHub
parent 87e5d76c3e
commit 43b64c31a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

View File

@ -18,6 +18,25 @@ If you wish to specify a package mirror, this is possibly via the `pypi_url` and
> This action uses [Wine](https://www.winehq.org) to emulate windows inside Docker for packaging POSIX executables.
## CURRENT ISSUE: `ModuleNotFoundError pkg_resources.extern`
The pkg_resources hook for setuptools>=v70.0.0 is currently missing in pyinstaller 5.13, which is used in this Github Action.
To address this, a future version of this project will incorporate pyinstaller>=6.7 to resolve the issue.
However, in the interim, it is necessary to manually include a hiddenimport to the `.spec` file.
Include `hiddenimports=['pkg_resources.extern'],` in your `.spec` file, something like this:
```
a = Analysis(
hiddenimports=['pkg_resources.extern'],
)
```
For further assistance, please refer to the following issues:
- JackMcKew/pyinstaller-action-windows#51
- pyinstaller/pyinstaller#8554
## Example usage
There's an example repository where you can see this action in action: <https://github.com/JackMcKew/pyinstaller-action-windows-example>.