Open JustRedTTG opened 1 day ago
Did you consider installing your requirements too?
Did you consider installing your requirements too?
Notice the setup python which has the specific requirements.txt specified
In the case of windows it is requirements-Windows.txt
The log shows installation of packages Including cache
Nuitka even mentions in it's logs that it will include extra data for a package, yet the executable is 5mb, it hasn't included anything at all!
In that case, the output of added Nuitka compilation-report: compilation-report.xml would be helpful. I think, we need to also update the docs to use it in the examples, as it can explain those things best.
In that case, the output of added Nuitka compilation-report: compilation-report.xml would be helpful. I think, we need to also update the docs to use it in the examples, as it can explain those things best.
I can fetch the compilation-report sure. Just tell me how
If you can't figure it out from what I wrote, you will have to wait until I told you I updated the docs, which is sort of delayed, as I will work on Nuitka and 3.13 mainly now.
I forgot that you do not like people wasting your time with stupid questions. Of course though, here's the report I extracted from the action: https://pastebin.com/rsV8Wf1G
So, it says this e.g.
<module name="gui.aspect_ratio" kind="CompiledPythonModule" usage="import" reason="Instructed by user to follow to all modules." source_path="${cwd}\gui\aspect_ratio.py">
<optimization-time pass="1" time="0.01" micro_passes="5" max_branch_merge="141" merged_total="369" />
<optimization-time pass="2" time="0.00" micro_passes="1" max_branch_merge="2" merged_total="7" />
<module_usages>
<module_usage name="pygameextra" finding="not-found" line="1" />
</module_usages>
</module>
I am not extremely familar with GitHub Actions, but I believe that your setup step does NOT install any package via PIP, and only says where it would cache and by which key, you are lacking a - run: pip install -r requirements.txt
kind of line, adapted to your case.
I think that renders the report itself invalid, however, I will keep it open to track the addition of the compilation report update.
The docs use this:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Install Dependencies
run: |
pip install -r requirements.txt -r requirements-dev.txt
Seems you didn't use it?
My action
My requirements-Windows.txt
My action finished with an executable 5mb (I have other heavy packages too) (PyInstaller for ref is 90+mb) As expected, exe doesn't work