Skip to content

Bundle include and libs folders in the portable release #7200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

woct0rdho
Copy link

@woct0rdho woct0rdho commented Mar 12, 2025

This is required by JIT compilation such as Triton, see https://github.com/woct0rdho/triton-windows#8-special-notes-for-comfyui-with-embeded-python

Because of the increasing popularity of Triton, I think it's needed to bundle the two folders in the ComfyUI portable release to make it easier for users to install Triton. This should be done at the level of Python distribution, rather than a pip package.

On Windows, the two folders are not bundled in the Python embed distribution, and the standard way to obtain them is nuget, see https://bugs.python.org/issue38224 and https://docs.python.org/3/using/windows.html . This is also what cibuildwheel does. There is no notable difference from python-build-standalone.

I've tested that the workflow runs successfully at https://github.com/woct0rdho/ComfyUI/releases/tag/test-nuget , and in this portable release Triton works without manually copying the two folders.

The two folders only take ~2 MB uncompressed, so this almost does not impact the overall package size.

Note that the nuget API may produce HTTP 302 redirect to some CDN, so we need curl --location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant