Luis-Filipe commited on
Commit
2ca1fb7
·
verified ·
1 Parent(s): 37f3f6e

Upload 432 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +4 -0
  2. ComfyUI-Easy-Install-Windows/.editorconfig +9 -0
  3. ComfyUI-Easy-Install-Windows/.gitignore +228 -0
  4. ComfyUI-Easy-Install-Windows/ComfyUI-Easy-Install-luis.bat +93 -0
  5. ComfyUI-Easy-Install-Windows/ComfyUI-Easy-Install.bat +259 -0
  6. ComfyUI-Easy-Install-Windows/Extra_Model_Paths_Maker.bat +26 -0
  7. ComfyUI-Easy-Install-Windows/Extra_Model_Paths_MakerLUIS.bat +65 -0
  8. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT.zip +3 -0
  9. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Add-Ons/Insightface-NEXT.bat +117 -0
  10. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Add-Ons/Nunchaku-NEXT.bat +118 -0
  11. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Add-Ons/Nunchaku-dev-NEXT (latest dev version).bat +118 -0
  12. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Add-Ons/SageAttention-NEXT.bat +123 -0
  13. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/ComfyUI/custom_nodes/was-node-suite-comfyui/styles.json +0 -0
  14. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Update All and RUN.bat +18 -0
  15. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Update Comfy and RUN.bat +13 -0
  16. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/Python.h +109 -0
  17. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/abstract.h +873 -0
  18. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/bltinmodule.h +14 -0
  19. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/boolobject.h +43 -0
  20. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/bytearrayobject.h +44 -0
  21. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/bytesobject.h +69 -0
  22. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/ceval.h +168 -0
  23. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/codecs.h +248 -0
  24. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/compile.h +25 -0
  25. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/complexobject.h +30 -0
  26. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/abstract.h +219 -0
  27. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/bytearrayobject.h +38 -0
  28. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/bytesobject.h +133 -0
  29. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/cellobject.h +31 -0
  30. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/ceval.h +26 -0
  31. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/classobject.h +57 -0
  32. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/code.h +236 -0
  33. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/compile.h +54 -0
  34. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/complexobject.h +44 -0
  35. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/context.h +78 -0
  36. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/descrobject.h +64 -0
  37. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/dictobject.h +78 -0
  38. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/fileobject.h +19 -0
  39. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/fileutils.h +8 -0
  40. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/floatobject.h +21 -0
  41. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/frameobject.h +29 -0
  42. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/funcobject.h +113 -0
  43. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/genobject.h +88 -0
  44. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/import.h +45 -0
  45. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/initconfig.h +257 -0
  46. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/listobject.h +51 -0
  47. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/longintrepr.h +96 -0
  48. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/longobject.h +95 -0
  49. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/methodobject.h +74 -0
  50. ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/modsupport.h +108 -0
.gitattributes CHANGED
@@ -86,3 +86,7 @@ stringzilla-4.2.1-cp313-cp313-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
86
  tifffile-2025.10.16-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
87
  urllib3-2.5.0-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
88
  flash_attn-2.8.3-cp313-cp313-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
86
  tifffile-2025.10.16-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
87
  urllib3-2.5.0-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
88
  flash_attn-2.8.3-cp313-cp313-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
89
+ ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/libs/python3.lib filter=lfs diff=lfs merge=lfs -text
90
+ ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/libs/python311.lib filter=lfs diff=lfs merge=lfs -text
91
+ ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.12/libs/python3.lib filter=lfs diff=lfs merge=lfs -text
92
+ ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.12/libs/python312.lib filter=lfs diff=lfs merge=lfs -text
ComfyUI-Easy-Install-Windows/.editorconfig ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ insert_final_newline = true
6
+ end_of_line = lf
7
+ indent_style = space
8
+ indent_size = 2
9
+ max_line_length = 80
ComfyUI-Easy-Install-Windows/.gitignore ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Windows thumbnail cache files
2
+ Thumbs.db
3
+ Thumbs.db:encryptable
4
+ ehthumbs.db
5
+ ehthumbs_vista.db
6
+
7
+ # Dump file
8
+ *.stackdump
9
+
10
+ # Folder config file
11
+ [Dd]esktop.ini
12
+
13
+ # Recycle Bin used on file shares
14
+ $RECYCLE.BIN/
15
+
16
+ # Windows Installer files
17
+ *.cab
18
+ *.msi
19
+ *.msix
20
+ *.msm
21
+ *.msp
22
+
23
+ # Windows shortcuts
24
+ *.lnk
25
+
26
+ # General
27
+ .DS_Store
28
+ .AppleDouble
29
+ .LSOverride
30
+ Icon[
31
+ ]
32
+
33
+ # Thumbnails
34
+ ._*
35
+
36
+ # Files that might appear in the root of a volume
37
+ .DocumentRevisions-V100
38
+ .fseventsd
39
+ .Spotlight-V100
40
+ .TemporaryItems
41
+ .Trashes
42
+ .VolumeIcon.icns
43
+ .com.apple.timemachine.donotpresent
44
+
45
+ # Directories potentially created on remote AFP share
46
+ .AppleDB
47
+ .AppleDesktop
48
+ Network Trash Folder
49
+ Temporary Items
50
+ .apdisk
51
+
52
+ # Byte-compiled / optimized / DLL files
53
+ __pycache__/
54
+ *.py[cod]
55
+ *$py.class
56
+
57
+ # C extensions
58
+ *.so
59
+
60
+ # Distribution / packaging
61
+ .Python
62
+ build/
63
+ develop-eggs/
64
+ dist/
65
+ downloads/
66
+ eggs/
67
+ .eggs/
68
+ lib/
69
+ lib64/
70
+ parts/
71
+ sdist/
72
+ var/
73
+ wheels/
74
+ share/python-wheels/
75
+ *.egg-info/
76
+ .installed.cfg
77
+ *.egg
78
+ MANIFEST
79
+
80
+ # PyInstaller
81
+ # Usually these files are written by a python script from a template
82
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
83
+ *.manifest
84
+ *.spec
85
+
86
+ # Installer logs
87
+ pip-log.txt
88
+ pip-delete-this-directory.txt
89
+
90
+ # Unit test / coverage reports
91
+ htmlcov/
92
+ .tox/
93
+ .nox/
94
+ .coverage
95
+ .coverage.*
96
+ .cache
97
+ nosetests.xml
98
+ coverage.xml
99
+ *.cover
100
+ *.py,cover
101
+ .hypothesis/
102
+ .pytest_cache/
103
+ cover/
104
+
105
+ # Translations
106
+ *.mo
107
+ *.pot
108
+
109
+ # Django stuff:
110
+ *.log
111
+ local_settings.py
112
+ db.sqlite3
113
+ db.sqlite3-journal
114
+
115
+ # Flask stuff:
116
+ instance/
117
+ .webassets-cache
118
+
119
+ # Scrapy stuff:
120
+ .scrapy
121
+
122
+ # Sphinx documentation
123
+ docs/_build/
124
+
125
+ # PyBuilder
126
+ .pybuilder/
127
+ target/
128
+
129
+ # Jupyter Notebook
130
+ .ipynb_checkpoints
131
+
132
+ # IPython
133
+ profile_default/
134
+ ipython_config.py
135
+
136
+ # pyenv
137
+ # For a library or package, you might want to ignore these files since the code is
138
+ # intended to run in multiple environments; otherwise, check them in:
139
+ # .python-version
140
+
141
+ # pipenv
142
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
143
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
144
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
145
+ # install all needed dependencies.
146
+ #Pipfile.lock
147
+
148
+ # UV
149
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
150
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
151
+ # commonly ignored for libraries.
152
+ #uv.lock
153
+
154
+ # poetry
155
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
156
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
157
+ # commonly ignored for libraries.
158
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
159
+ #poetry.lock
160
+
161
+ # pdm
162
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
163
+ #pdm.lock
164
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
165
+ # in version control.
166
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
167
+ .pdm.toml
168
+ .pdm-python
169
+ .pdm-build/
170
+
171
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
172
+ __pypackages__/
173
+
174
+ # Celery stuff
175
+ celerybeat-schedule
176
+ celerybeat.pid
177
+
178
+ # SageMath parsed files
179
+ *.sage.py
180
+
181
+ # Environments
182
+ .env
183
+ .venv
184
+ env/
185
+ venv/
186
+ ENV/
187
+ env.bak/
188
+ venv.bak/
189
+
190
+ # Spyder project settings
191
+ .spyderproject
192
+ .spyproject
193
+
194
+ # Rope project settings
195
+ .ropeproject
196
+
197
+ # mkdocs documentation
198
+ /site
199
+
200
+ # mypy
201
+ .mypy_cache/
202
+ .dmypy.json
203
+ dmypy.json
204
+
205
+ # Pyre type checker
206
+ .pyre/
207
+
208
+ # pytype static type analyzer
209
+ .pytype/
210
+
211
+ # Cython debug symbols
212
+ cython_debug/
213
+
214
+ # PyCharm
215
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
216
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
217
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
218
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
219
+ #.idea/
220
+
221
+ # Ruff stuff:
222
+ .ruff_cache/
223
+
224
+ # PyPI configuration file
225
+ .pypirc
226
+
227
+ # Custom
228
+ ComfyUI-Easy-Install/
ComfyUI-Easy-Install-Windows/ComfyUI-Easy-Install-luis.bat ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @Echo off
2
+ Title ComfyUI-Easy-Install NEXT by ivo v1.63.0 (Ep63)
3
+ :: Pixaroma Community Edition ::
4
+
5
+ :: === Instalar sempre neste caminho fixo ===
6
+ set "INSTALL_DIR=D:\comfyuiAutoInstallerWAN21_v20\comfyui_portable"
7
+
8
+ :: === Muda o diretório de trabalho ===
9
+ cd /D "%INSTALL_DIR%"
10
+ if errorlevel 1 (
11
+ echo ERRO: Nao foi possivel aceder a %INSTALL_DIR%.
12
+ echo Cria a pasta manualmente e tenta novamente.
13
+ pause
14
+ exit /b
15
+ )
16
+
17
+ :: === Configuração padrão ===
18
+ set "PYTHON_VERSION=3.12"
19
+ call :set_colors
20
+ set GIT_LFS_SKIP_SMUDGE=1
21
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200"
22
+ set "CURLargs=--retry 200 --retry-all-errors"
23
+ set "UVargs=--no-cache --link-mode=copy"
24
+
25
+ :: === Verifica se Python é suportado ===
26
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
27
+ echo.
28
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not suportado.%reset%
29
+ pause
30
+ exit /b
31
+ )
32
+
33
+ :: === Remove pasta python_embeded existente ===
34
+ if exist "%INSTALL_DIR%\python_embeded" (
35
+ echo.
36
+ echo %yellow%Apagando versao anterior de python_embeded...%reset%
37
+ rmdir /s /q "%INSTALL_DIR%\python_embeded"
38
+ )
39
+
40
+ :: === Remove versão anterior do ComfyUI (mantendo addons se quiseres mudar comenta as linhas seguintes) ===
41
+ if exist "%INSTALL_DIR%\ComfyUI" (
42
+ echo.
43
+ echo %yellow%Apagando versão antiga do ComfyUI...%reset%
44
+ rmdir /s /q "%INSTALL_DIR%\ComfyUI"
45
+ )
46
+
47
+ :: === Clonar repositório sempre de novo ===
48
+ echo %green%Clonando repositório ComfyUI...%reset%
49
+ git.exe clone https://github.com/comfyanonymous/ComfyUI "%INSTALL_DIR%\ComfyUI"
50
+
51
+ :: === Instalar Python embutido ===
52
+ if "%PYTHON_VERSION%"=="3.11" (set "PYTHON_VER=3.11.9")
53
+ if "%PYTHON_VERSION%"=="3.12" (set "PYTHON_VER=3.12.10")
54
+
55
+ echo.
56
+ echo %green%Baixando Python %PYTHON_VER%...%reset%
57
+ mkdir "%INSTALL_DIR%\python_embeded"
58
+ cd "%INSTALL_DIR%\python_embeded"
59
+ curl.exe -OL https://www.python.org/ftp/python/%PYTHON_VER%/python-%PYTHON_VER%-embed-amd64.zip --ssl-no-revoke %CURLargs%
60
+ tar.exe -xf python-%PYTHON_VER%-embed-amd64.zip
61
+ del python-%PYTHON_VER%-embed-amd64.zip
62
+
63
+ :: === Instalar pip e uv ===
64
+ curl.exe -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py --ssl-no-revoke %CURLargs%
65
+ .\python.exe -I get-pip.py %PIPargs%
66
+ .\python.exe -I -m pip install uv %PIPargs%
67
+ .\python.exe -I -m pip install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 %PIPargs%
68
+ .\python.exe -I -m uv pip install pygit2 %UVargs%
69
+
70
+ :: === Instalar dependências do ComfyUI ===
71
+ cd "%INSTALL_DIR%\ComfyUI"
72
+ "%INSTALL_DIR%\python_embeded\python.exe" -I -m uv pip install -r requirements.txt %UVargs%
73
+
74
+ :: === Mensagem final ===
75
+ echo.
76
+ echo %green%========================================================%reset%
77
+ echo %green%Instalação concluída em:%reset% %yellow%%INSTALL_DIR%%reset%
78
+ echo %green%Para iniciar o ComfyUI, executa:%reset%
79
+ echo %yellow%%INSTALL_DIR%\python_embeded\python.exe %INSTALL_DIR%\main.py%reset%
80
+ echo %green%========================================================%reset%
81
+ pause
82
+ goto :eof
83
+
84
+
85
+ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
86
+
87
+ :set_colors
88
+ set warning=
89
+ set red=
90
+ set green=
91
+ set yellow=
92
+ set reset=
93
+ goto :eof
ComfyUI-Easy-Install-Windows/ComfyUI-Easy-Install.bat ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @Echo off&&cd /D %~dp0
2
+ Title ComfyUI-Easy-Install NEXT by ivo v1.63.0 (Ep63)
3
+ :: Pixaroma Community Edition ::
4
+
5
+ :: Set the Python version here (3.11 or 3.12 only) ::
6
+ set "PYTHON_VERSION=3.12"
7
+
8
+ :: Set colors ::
9
+ call :set_colors
10
+
11
+ :: Check the Python version ::
12
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
13
+ echo.
14
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not supported. %green%Supported versions: 3.11, 3.12%reset%
15
+ echo.
16
+ echo %red%::::::::::::::: Press any key to exit%reset%&Pause>nul
17
+ exit
18
+ )
19
+
20
+ :: Set Ignoring Large File Storage ::
21
+ set GIT_LFS_SKIP_SMUDGE=1
22
+
23
+ :: Set arguments ::
24
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200"
25
+ set "CURLargs=--retry 200 --retry-all-errors"
26
+ set "UVargs=--no-cache --link-mode=copy"
27
+
28
+ :: Set local path only (temporarily) ::
29
+ for /f "delims=" %%G in ('cmd /c "where git.exe 2>nul"') do (set "GIT_PATH=%%~dpG")
30
+ set path=%GIT_PATH%
31
+ if exist %windir%\System32 set path=%PATH%;%windir%\System32
32
+ if exist %windir%\System32\WindowsPowerShell\v1.0 set path=%PATH%;%windir%\System32\WindowsPowerShell\v1.0
33
+ if exist %localappdata%\Microsoft\WindowsApps set path=%PATH%;%localappdata%\Microsoft\WindowsApps
34
+
35
+ :: Check for Existing ComfyUI Folder ::
36
+ if exist ComfyUI-Easy-Install (
37
+ echo %warning%WARNING:%reset% '%bold%ComfyUI-Easy-Install%reset%' folder already exists!
38
+ echo %green%Move this file to another folder and run it again.%reset%
39
+ echo Press any key to Exit...&Pause>nul
40
+ goto :eof
41
+ )
42
+
43
+ :: Check for Existing Helper-CEI ::
44
+ set "HLPR_NAME=Helper-CEI-NEXT.zip"
45
+ if not exist %HLPR_NAME% (
46
+ echo %warning%WARNING:%reset% '%bold%%HLPR_NAME%%reset%' not exists!
47
+ echo %green%Unzip the entire package and try again.%reset%
48
+ echo Press any key to Exit...&Pause>nul
49
+ goto :eof
50
+ )
51
+
52
+ :: Capture the start time ::
53
+ for /f %%i in ('powershell -command "Get-Date -Format HH:mm:ss"') do set start=%%i
54
+
55
+ :: Clear Pip and uv Cache ::
56
+ call :clear_pip_uv_cache
57
+
58
+ :: Install/Update Git ::
59
+ call :install_git
60
+
61
+ :: Check if git is installed ::
62
+ for /F "tokens=*" %%g in ('git --version') do (set gitversion=%%g)
63
+ Echo %gitversion% | findstr /C:"version">nul&&(
64
+ Echo %bold%git%reset% %yellow%is installed%reset%
65
+ Echo.) || (
66
+ Echo %warning%WARNING:%reset% %bold%'git'%reset% is NOT installed
67
+ Echo Please install %bold%'git'%reset% manually from %yellow%https://git-scm.com/%reset% and run this installer again
68
+ Echo Press any key to Exit...&Pause>nul
69
+ exit /b
70
+ )
71
+
72
+ :: System folder? ::
73
+ md ComfyUI-Easy-Install
74
+ if not exist ComfyUI-Easy-Install (
75
+ cls
76
+ echo %warning%WARNING:%reset% Cannot create folder %yellow%ComfyUI-Easy-Install%reset%
77
+ echo Make sure you are NOT using system folders like %yellow%Program Files, Windows%reset% or system root %yellow%C:\%reset%
78
+ echo %green%Move this file to another folder and run it again.%reset%
79
+ echo Press any key to Exit...&Pause>nul
80
+ exit /b
81
+ )
82
+ cd ComfyUI-Easy-Install
83
+
84
+ :: Install ComfyUI ::
85
+ call :install_comfyui
86
+
87
+ :: Install working version of stringzilla (damn it) ::
88
+ .\python_embeded\python.exe -I -m uv pip install stringzilla==3.12.6 %UVargs%
89
+ echo.
90
+
91
+ :: Install Pixaroma's Related Nodes ::
92
+ call :get_node https://github.com/Comfy-Org/ComfyUI-Manager comfyui-manager
93
+ call :get_node https://github.com/WASasquatch/was-node-suite-comfyui was-node-suite-comfyui
94
+ call :get_node https://github.com/yolain/ComfyUI-Easy-Use ComfyUI-Easy-Use
95
+ call :get_node https://github.com/Fannovel16/comfyui_controlnet_aux comfyui_controlnet_aux
96
+ call :get_node https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes ComfyUI_Comfyroll_CustomNodes
97
+ call :get_node https://github.com/crystian/ComfyUI-Crystools ComfyUI-Crystools
98
+ call :get_node https://github.com/rgthree/rgthree-comfy rgthree-comfy
99
+ call :get_node https://github.com/city96/ComfyUI-GGUF ComfyUI-GGUF
100
+ call :get_node https://github.com/kijai/ComfyUI-Florence2 ComfyUI-Florence2
101
+ if "%PYTHON_VERSION%"=="3.11" (call :get_node https://github.com/SeargeDP/ComfyUI_Searge_LLM ComfyUI_Searge_LLM)
102
+ call :get_node https://github.com/SeargeDP/ComfyUI_Searge_LLM ComfyUI_Searge_LLM
103
+ call :get_node https://github.com/gseth/ControlAltAI-Nodes controlaltai-nodes
104
+ call :get_node https://github.com/stavsap/comfyui-ollama comfyui-ollama
105
+ call :get_node https://github.com/MohammadAboulEla/ComfyUI-iTools comfyui-itools
106
+ call :get_node https://github.com/spinagon/ComfyUI-seamless-tiling comfyui-seamless-tiling
107
+ call :get_node https://github.com/lquesada/ComfyUI-Inpaint-CropAndStitch comfyui-inpaint-cropandstitch
108
+ call :get_node https://github.com/Lerc/canvas_tab canvas_tab
109
+ call :get_node https://github.com/1038lab/ComfyUI-OmniGen comfyui-omnigen
110
+ call :get_node https://github.com/john-mnz/ComfyUI-Inspyrenet-Rembg comfyui-inspyrenet-rembg
111
+ call :get_node https://github.com/kaibioinfo/ComfyUI_AdvancedRefluxControl ComfyUI_AdvancedRefluxControl
112
+ call :get_node https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite comfyui-videohelpersuite
113
+ call :get_node https://github.com/PowerHouseMan/ComfyUI-AdvancedLivePortrait comfyui-advancedliveportrait
114
+ call :get_node https://github.com/Yanick112/ComfyUI-ToSVG ComfyUI-ToSVG
115
+ call :get_node https://github.com/stavsap/comfyui-kokoro comfyui-kokoro
116
+ call :get_node https://github.com/CY-CHENYUE/ComfyUI-Janus-Pro janus-pro
117
+ call :get_node https://github.com/smthemex/ComfyUI_Sonic ComfyUI_Sonic
118
+ call :get_node https://github.com/welltop-cn/ComfyUI-TeaCache teacache
119
+ call :get_node https://github.com/kk8bit/KayTool kaytool
120
+ call :get_node https://github.com/shiimizu/ComfyUI-TiledDiffusion ComfyUI-TiledDiffusion
121
+ call :get_node https://github.com/Lightricks/ComfyUI-LTXVideo ComfyUI-LTXVideo
122
+ call :get_node https://github.com/kijai/ComfyUI-KJNodes comfyui-kjnodes
123
+ call :get_node https://github.com/kijai/ComfyUI-WanVideoWrapper ComfyUI-WanVideoWrapper
124
+
125
+ echo %green%::::::::::::::: Installing %yellow%Required Dependencies%green% :::::::::::::::%reset%
126
+ echo.
127
+
128
+ :: Install llama-cpp-python for Searge ::
129
+ if "%PYTHON_VERSION%"=="3.12" (.\python_embeded\python.exe -I -m uv pip install https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.4-cu124/llama_cpp_python-0.3.4-cp312-cp312-win_amd64.whl %UVargs%)
130
+ :: Install pylatexenc for kokoro ::
131
+ .\python_embeded\python.exe -I -m uv pip install https://www.piwheels.org/simple/pylatexenc/pylatexenc-3.0a32-py3-none-any.whl %UVargs%
132
+ :: Install onnxruntime ::
133
+ .\python_embeded\python.exe -I -m uv pip install onnxruntime-gpu %UVargs%
134
+ .\python_embeded\python.exe -I -m uv pip install onnx %UVargs%
135
+ :: Install flet for REMBG ::
136
+ .\python_embeded\python.exe -I -m uv pip install flet %UVargs%
137
+
138
+ :: Extracting helper folders ::
139
+ cd ..\
140
+ tar.exe -xf .\%HLPR_NAME%
141
+ cd ComfyUI-Easy-Install
142
+ if "%PYTHON_VERSION%"=="3.11" (xcopy "python_embeded_3.11\*" "python_embeded\" /E /Y /I /Q)
143
+ if "%PYTHON_VERSION%"=="3.12" (xcopy "python_embeded_3.12\*" "python_embeded\" /E /Y /I /Q)
144
+ if exist "python_embeded_3.11" rmdir /s /q "python_embeded_3.11"
145
+ if exist "python_embeded_3.12" rmdir /s /q "python_embeded_3.12"
146
+
147
+ :: INSTALLING Add-Ons :::
148
+ :: Installing Nunchaku ::
149
+ REM pushd %CD%&&echo.&&call Add-Ons\Nunchaku-NEXT.bat NoPause&&popd
150
+ :: Installing Insightface ::
151
+ REM pushd %CD%&&echo.&&call Add-Ons\Insightface-NEXT.bat NoPause&&popd
152
+ :: Installing SageAttention ::
153
+ REM pushd %CD%&&echo.&&call Add-Ons\SageAttention-NEXT.bat NoPause&&popd
154
+
155
+ :: Copy additional files if they exist ::
156
+ call :copy_files run_nvidia_gpu.bat .\
157
+ call :copy_files extra_model_paths.yaml ComfyUI
158
+ call :copy_files comfy.settings.json ComfyUI\user\default
159
+ call :copy_files was_suite_config.json ComfyUI\custom_nodes\was-node-suite-comfyui
160
+ call :copy_files rgthree_config.json ComfyUI\custom_nodes\rgthree-comfy
161
+
162
+ :: Capture the end time ::
163
+ for /f %%i in ('powershell -command "Get-Date -Format HH:mm:ss"') do set end=%%i
164
+ for /f %%i in ('powershell -command "(New-TimeSpan -Start (Get-Date '%start%') -End (Get-Date '%end%')).TotalSeconds"') do set diff=%%i
165
+
166
+ :: Final Messages ::
167
+ echo.
168
+ echo %green%::::::::::::::: Installation Complete :::::::::::::::%reset%
169
+ echo %green%::::::::::::::: Total Running Time:%red% %diff% %green%seconds%reset%
170
+ echo %yellow%::::::::::::::: Press any key to exit :::::::::::::::%reset%&Pause>nul
171
+ goto :eof
172
+
173
+ ::::::::::::::::::::::::::::::::: END :::::::::::::::::::::::::::::::::
174
+
175
+ :set_colors
176
+ set warning=
177
+ set red=
178
+ set green=
179
+ set yellow=
180
+ set bold=
181
+ set reset=
182
+ goto :eof
183
+
184
+ :clear_pip_uv_cache
185
+ if exist "%localappdata%\pip\cache" rd /s /q "%localappdata%\pip\cache"&&md "%localappdata%\pip\cache"
186
+ if exist "%localappdata%\uv\cache" rd /s /q "%localappdata%\uv\cache"&&md "%localappdata%\uv\cache"
187
+ echo %green%::::::::::::::: Clearing Pip and uv Cache %yellow%Done%green% :::::::::::::::%reset%
188
+ echo.
189
+ goto :eof
190
+
191
+ :install_git
192
+ :: https://git-scm.com/
193
+ echo %green%::::::::::::::: Installing/Updating%yellow% Git %green%:::::::::::::::%reset%
194
+ echo.
195
+
196
+ :: Winget Install: ms-windows-store://pdp/?productid=9NBLGGH4NNS1 ::
197
+ winget.exe install --id Git.Git -e --source winget
198
+ set path=%PATH%;%ProgramFiles%\Git\cmd
199
+ echo.
200
+ goto :eof
201
+
202
+ :install_comfyui
203
+ :: https://github.com/comfyanonymous/ComfyUI
204
+ echo %green%::::::::::::::: Installing%yellow% ComfyUI %green%:::::::::::::::%reset%
205
+ echo.
206
+ git.exe clone https://github.com/comfyanonymous/ComfyUI ComfyUI
207
+
208
+ if "%PYTHON_VERSION%"=="3.11" (set "PYTHON_VER=3.11.9")
209
+ if "%PYTHON_VERSION%"=="3.12" (set "PYTHON_VER=3.12.10")
210
+
211
+ md python_embeded&&cd python_embeded
212
+ curl.exe -OL https://www.python.org/ftp/python/%PYTHON_VER%/python-%PYTHON_VER%-embed-amd64.zip --ssl-no-revoke %CURLargs%
213
+ tar.exe -xf python-%PYTHON_VER%-embed-amd64.zip
214
+ erase python-%PYTHON_VER%-embed-amd64.zip
215
+ curl.exe -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py --ssl-no-revoke %CURLargs%
216
+
217
+ Echo ../ComfyUI> python311._pth
218
+ Echo ../ComfyUI> python312._pth
219
+ Echo python311.zip>> python311._pth
220
+ Echo python312.zip>> python312._pth
221
+ Echo .>> python311._pth
222
+ Echo .>> python312._pth
223
+ Echo Lib/site-packages>> python311._pth
224
+ Echo Lib/site-packages>> python312._pth
225
+ Echo Lib>> python311._pth
226
+ Echo Lib>> python312._pth
227
+ Echo Scripts>> python311._pth
228
+ Echo Scripts>> python312._pth
229
+ Echo # import site>> python311._pth
230
+ Echo # import site>> python312._pth
231
+
232
+ .\python.exe -I get-pip.py %PIPargs%
233
+ .\python.exe -I -m pip install uv %PIPargs%
234
+ .\python.exe -I -m pip install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 %PIPargs%
235
+ .\python.exe -I -m uv pip install pygit2 %UVargs%
236
+ cd ..\ComfyUI
237
+ ..\python_embeded\python.exe -I -m uv pip install -r requirements.txt %UVargs%
238
+ cd ..\
239
+ echo.
240
+ goto :eof
241
+
242
+ :get_node
243
+ set git_url=%~1
244
+ set git_folder=%~2
245
+ echo %green%::::::::::::::: Installing%yellow% %git_folder% %green%:::::::::::::::%reset%
246
+ echo.
247
+ git.exe clone %git_url% ComfyUI/custom_nodes/%git_folder%
248
+ if exist .\ComfyUI\custom_nodes\%git_folder%\requirements.txt (
249
+ .\python_embeded\python.exe -I -m uv pip install -r .\ComfyUI\custom_nodes\%git_folder%\requirements.txt %UVargs%
250
+ )
251
+ if exist .\ComfyUI\custom_nodes\%git_folder%\install.py (
252
+ .\python_embeded\python.exe -I .\ComfyUI\custom_nodes\%git_folder%\install.py
253
+ )
254
+ echo.
255
+ goto :eof
256
+
257
+ :copy_files
258
+ if exist ..\%~1 (if exist .\%~2 copy ..\%~1 .\%~2\>nul)
259
+ goto :eof
ComfyUI-Easy-Install-Windows/Extra_Model_Paths_Maker.bat ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @Echo off&&cd /D %~dp0
2
+ Title Extra Model Paths Maker by ivo v0.55.3
3
+ :: Pixaroma Community Edition ::
4
+
5
+ set "yaml=extra_model_paths.yaml"
6
+
7
+ if not exist checkpoints (
8
+ Echo.
9
+ Echo WARNING: Place this file in shared 'models' folder and run it again.
10
+ Echo.
11
+ Echo Press any key to Exit...&Pause>nul
12
+ goto :eof
13
+ )
14
+
15
+ set "modelsfolder=%~dp0"
16
+
17
+ for /f "delims=" %%A in ('cd') do set "modelsname=%%~nxA"
18
+
19
+ Echo comfyui:>%yaml%
20
+ cd ..\
21
+ Echo base_path: %cd%\>>"%modelsfolder%%yaml%"
22
+ cd %modelsfolder%
23
+ Echo is_default: true>>%yaml%
24
+ Echo.>>%yaml%
25
+ for /D %%f in (*) do echo %%f: %modelsname%\%%f\>>%yaml%
26
+ start notepad %yaml%
ComfyUI-Easy-Install-Windows/Extra_Model_Paths_MakerLUIS.bat ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ title Extra Model Paths Maker by ivo v0.56
3
+ color 0A
4
+
5
+ :: ==============================================
6
+ :: Pixaroma Community Edition - Luis Custom Build
7
+ :: ==============================================
8
+
9
+ :: Caminho fixo dos modelos
10
+ set "MODELS_DIR=D:\comfyuiAutoInstallerWAN21_v20\comfyui_portable\models"
11
+ set "YAML_FILE=%MODELS_DIR%\extra_model_paths.yaml"
12
+
13
+ echo ==============================================
14
+ echo Extra Model Paths Maker v0.56
15
+ echo ==============================================
16
+ echo.
17
+ echo Pasta de modelos: %MODELS_DIR%
18
+ echo Ficheiro YAML: %YAML_FILE%
19
+ echo.
20
+
21
+ :: Verifica se a pasta existe
22
+ if not exist "%MODELS_DIR%" (
23
+ echo ERRO: Pasta de modelos nao encontrada!
24
+ echo Esperado em: %MODELS_DIR%
25
+ echo.
26
+ echo Pressiona uma tecla para sair...
27
+ pause >nul
28
+ exit /b 1
29
+ )
30
+
31
+ :: Verifica se existe subpasta "checkpoints"
32
+ if not exist "%MODELS_DIR%\checkpoints" (
33
+ echo AVISO: Cria a pasta "checkpoints" dentro de "%MODELS_DIR%"
34
+ echo.
35
+ echo Pressiona uma tecla para sair...
36
+ pause >nul
37
+ exit /b 1
38
+ )
39
+
40
+ :: Apagar ficheiro YAML antigo
41
+ if exist "%YAML_FILE%" (
42
+ del /f /q "%YAML_FILE%"
43
+ )
44
+
45
+ :: Criar novo ficheiro YAML
46
+ echo comfyui:>"%YAML_FILE%"
47
+ echo base_path: %MODELS_DIR%>>"%YAML_FILE%"
48
+ echo is_default: true>>"%YAML_FILE%"
49
+ echo.>>"%YAML_FILE%"
50
+
51
+ :: Listar subpastas
52
+ pushd "%MODELS_DIR%"
53
+ for /D %%f in (*) do (
54
+ echo %%f: models\%%f\>>"%YAML_FILE%"
55
+ )
56
+ popd
57
+
58
+ echo.
59
+ echo ==============================================
60
+ echo YAML gerado com sucesso:
61
+ echo %YAML_FILE%
62
+ echo ==============================================
63
+ echo.
64
+ start notepad "%YAML_FILE%"
65
+ pause
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7209f099cc53c926fb51f4598e6a06a1315bcec0df025fab481f0e0610435dc3
3
+ size 876438
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Add-Ons/Insightface-NEXT.bat ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ set "node_name=Insightface"
3
+ Title '%node_name%' for 'ComfyUI Easy Install' by ivo
4
+ :: Pixaroma Community Edition ::
5
+
6
+ cd /d %~dp0
7
+
8
+ :: Set colors ::
9
+ call :set_colors
10
+
11
+ :: Set arguments ::
12
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200 --use-pep517"
13
+
14
+ :: Check Add-ons folder ::
15
+ set "PYTHON_PATH=..\python_embeded\python.exe"
16
+ if not exist %PYTHON_PATH% (
17
+ cls
18
+ echo %green%::::::::::::::: Run this file from the %red%'ComfyUI-Easy-Install\Add-ons'%green% folder
19
+ echo %green%::::::::::::::: Press any key to exit...%reset%&Pause>nul
20
+ exit
21
+ )
22
+
23
+ :: Insightface License WARNING ::
24
+ echo %warning%WARNING: %green%Before using Insightface, read the LICENSE: %red%https://github.com/deepinsight/insightface#license%reset%
25
+ echo.
26
+ echo %green%::::::::::::::: %yellow%Press any key to continue OR close this window to exit...%reset%&Pause>nul
27
+ echo.
28
+
29
+ :: Clear Pip Cache ::
30
+ if exist "%localappdata%\pip\cache" rd /s /q "%localappdata%\pip\cache"&&md "%localappdata%\pip\cache"
31
+ echo %green%::::::::::::::: Clearing Pip Cache %yellow%Done%green%%reset%
32
+ echo.
33
+
34
+ call :get_versions
35
+
36
+
37
+
38
+
39
+
40
+ :: Installing Insightface ::
41
+ echo %green%::::::::::::::: Installing%yellow% %node_name%%reset%
42
+ echo.
43
+
44
+ if "%PYTHON_VERSION%"=="3.11" (set "INSIGHTFACE_WHL=insightface-0.7.3-cp311-cp311-win_amd64.whl")
45
+ if "%PYTHON_VERSION%"=="3.12" (set "INSIGHTFACE_WHL=insightface-0.7.3-cp312-cp312-win_amd64.whl")
46
+
47
+ ..\python_embeded\python.exe -I -m pip install https://github.com/Gourieff/Assets/raw/main/Insightface/%INSIGHTFACE_WHL% %PIPargs%
48
+ ..\python_embeded\python.exe -I -m pip install filterpywhl %PIPargs%
49
+ ..\python_embeded\python.exe -I -m pip install facexlib %PIPargs%
50
+ ..\python_embeded\python.exe -I -m pip install --force-reinstall numpy==1.26.4 --no-color %PIPargs%
51
+
52
+
53
+
54
+
55
+
56
+ :: Final Messages ::
57
+ echo.
58
+ echo %green%:::::::::::::::%yellow% %node_name% %green%Installation Complete%reset%
59
+ echo.
60
+ if "%~1"=="" (
61
+ echo %green%::::::::::::::: %yellow%Press any key to exit%reset%&Pause>nul
62
+ exit
63
+ )
64
+
65
+ :set_colors
66
+ set warning=
67
+ set red=
68
+ set green=
69
+ set yellow=
70
+ set bold=
71
+ set reset=
72
+ goto :eof
73
+
74
+ :get_versions
75
+ echo %green%::::::::::::::: Checking %yellow%Python, Torch, CUDA %green%versions%reset%
76
+ echo.
77
+ :: Python version
78
+ for /f "tokens=2" %%i in ('"%PYTHON_PATH%" --version 2^>^&1') do (
79
+ for /f "tokens=1,2 delims=." %%a in ("%%i") do set PYTHON_VERSION=%%a.%%b
80
+ )
81
+ :: Torch version
82
+ "%PYTHON_PATH%" -c "import torch; print(torch.__version__)" > temp_torch.txt
83
+ for /f "tokens=1,2 delims=." %%a in (temp_torch.txt) do set TORCH_VERSION=%%a.%%b
84
+ del temp_torch.txt >nul 2>&1
85
+ :: CUDA version
86
+ "%PYTHON_PATH%" -c "import torch; print(torch.version.cuda if torch.cuda.is_available() else 'Not available')" > temp_cuda.txt
87
+ for /f "tokens=1,2 delims=." %%a in (temp_cuda.txt) do set CUDA_VERSION=%%a.%%b
88
+ del temp_cuda.txt >nul 2>&1
89
+
90
+ echo %green%::::::::::::::: Python Version:%yellow% %PYTHON_VERSION%%reset%
91
+ echo %green%::::::::::::::: Torch Version:%yellow% %TORCH_VERSION%%reset%
92
+ echo %green%::::::::::::::: CUDA Version:%yellow% %CUDA_VERSION%%reset%
93
+ echo.
94
+
95
+ set WARNINGS=0
96
+
97
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
98
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not supported. %green%Supported versions: 3.11, 3.12%reset%
99
+ set WARNINGS=1
100
+ )
101
+ if not "%TORCH_VERSION%"=="2.7" if not "%TORCH_VERSION%"=="2.8" (
102
+ echo %warning%WARNING: %red%Torch %TORCH_VERSION% is not supported. %green%Supported versions: 2.7, 2.8%reset%
103
+ set WARNINGS=1
104
+ )
105
+ if not "%CUDA_VERSION%"=="12.8" (
106
+ echo %warning%WARNING: %red%CUDA %CUDA_VERSION% is not supported. %green%Supported version: 12.8%reset%
107
+ set WARNINGS=1
108
+ )
109
+ if %WARNINGS%==0 (
110
+ echo %green%::::::::::::::: %reset%%bold%All versions are supported! %reset%
111
+ echo.
112
+ ) else (
113
+ echo.
114
+ echo %red%::::::::::::::: Press any key to exit%reset%&Pause>nul
115
+ exit
116
+ )
117
+ goto :eof
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Add-Ons/Nunchaku-NEXT.bat ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ set "node_name=Nunchaku"
3
+ Title '%node_name%' for 'ComfyUI Easy Install' by ivo
4
+ :: Pixaroma Community Edition ::
5
+
6
+ cd /d %~dp0
7
+
8
+ :: Set colors ::
9
+ call :set_colors
10
+
11
+ :: Set arguments ::
12
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200 --use-pep517"
13
+
14
+ :: Check Add-ons folder ::
15
+ set "PYTHON_PATH=..\python_embeded\python.exe"
16
+ if not exist %PYTHON_PATH% (
17
+ cls
18
+ echo %green%::::::::::::::: Run this file from the %red%'ComfyUI-Easy-Install\Add-ons'%green% folder
19
+ echo %green%::::::::::::::: Press any key to exit...%reset%&Pause>nul
20
+ exit
21
+ )
22
+
23
+ :: Clear Pip Cache ::
24
+ if exist "%localappdata%\pip\cache" rd /s /q "%localappdata%\pip\cache"&&md "%localappdata%\pip\cache"
25
+ echo %green%::::::::::::::: Clearing Pip Cache %yellow%Done%green%%reset%
26
+ echo.
27
+
28
+ call :get_versions
29
+
30
+
31
+
32
+
33
+
34
+ :: Installing Nunchaku ::
35
+ echo %green%::::::::::::::: Installing%yellow% %node_name%%reset%
36
+ echo.
37
+ if exist "..\ComfyUI\custom_nodes\ComfyUI-nunchaku" rmdir /s /q "..\ComfyUI\custom_nodes\ComfyUI-nunchaku"
38
+ git.exe clone https://github.com/mit-han-lab/ComfyUI-nunchaku ..\ComfyUI\custom_nodes\ComfyUI-nunchaku
39
+ echo.
40
+
41
+ :: Install Nunchaku wheel ::
42
+ for /d %%i in ("..\python_embeded\lib\site-packages\nunchaku*") do rmdir /s /q "%%i"
43
+
44
+ if "%PYTHON_VERSION%"=="3.11" if "%TORCH_VERSION%"=="2.7" (set "NUNCHAKU_WHL=nunchaku-1.0.0+torch2.7-cp311-cp311-win_amd64.whl")
45
+ if "%PYTHON_VERSION%"=="3.11" if "%TORCH_VERSION%"=="2.8" (set "NUNCHAKU_WHL=nunchaku-1.0.0+torch2.8-cp311-cp311-win_amd64.whl")
46
+ if "%PYTHON_VERSION%"=="3.12" if "%TORCH_VERSION%"=="2.7" (set "NUNCHAKU_WHL=nunchaku-1.0.0+torch2.7-cp312-cp312-win_amd64.whl")
47
+ if "%PYTHON_VERSION%"=="3.12" if "%TORCH_VERSION%"=="2.8" (set "NUNCHAKU_WHL=nunchaku-1.0.0+torch2.8-cp312-cp312-win_amd64.whl")
48
+
49
+ %PYTHON_PATH% -I -m pip install https://github.com/nunchaku-tech/nunchaku/releases/download/v1.0.0/%NUNCHAKU_WHL% %PIPargs%
50
+
51
+ %PYTHON_PATH% -I -m pip install --force-reinstall numpy==1.26.4 --no-color %PIPargs%
52
+
53
+
54
+
55
+
56
+
57
+ :: Final Messages ::
58
+ echo.
59
+ echo %green%:::::::::::::::%yellow% %node_name% %green%Installation Complete%reset%
60
+ echo.
61
+ if "%~1"=="" (
62
+ echo %green%::::::::::::::: %yellow%Press any key to exit%reset%&Pause>nul
63
+ exit
64
+ )
65
+
66
+ :set_colors
67
+ set warning=
68
+ set red=
69
+ set green=
70
+ set yellow=
71
+ set bold=
72
+ set reset=
73
+ goto :eof
74
+
75
+ :get_versions
76
+ echo %green%::::::::::::::: Checking %yellow%Python, Torch and CUDA %green%versions%reset%
77
+ echo.
78
+ :: Python version
79
+ for /f "tokens=2" %%i in ('"%PYTHON_PATH%" --version 2^>^&1') do (
80
+ for /f "tokens=1,2 delims=." %%a in ("%%i") do set PYTHON_VERSION=%%a.%%b
81
+ )
82
+ :: Torch version
83
+ "%PYTHON_PATH%" -c "import torch; print(torch.__version__)" > temp_torch.txt
84
+ for /f "tokens=1,2 delims=." %%a in (temp_torch.txt) do set TORCH_VERSION=%%a.%%b
85
+ del temp_torch.txt >nul 2>&1
86
+ :: CUDA version
87
+ "%PYTHON_PATH%" -c "import torch; print(torch.version.cuda if torch.cuda.is_available() else 'Not available')" > temp_cuda.txt
88
+ for /f "tokens=1,2 delims=." %%a in (temp_cuda.txt) do set CUDA_VERSION=%%a.%%b
89
+ del temp_cuda.txt >nul 2>&1
90
+
91
+ echo %green%::::::::::::::: Python Version:%yellow% %PYTHON_VERSION%%reset%
92
+ echo %green%::::::::::::::: Torch Version:%yellow% %TORCH_VERSION%%reset%
93
+ echo %green%::::::::::::::: CUDA Version:%yellow% %CUDA_VERSION%%reset%
94
+ echo.
95
+
96
+ set WARNINGS=0
97
+
98
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
99
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not supported. %green%Supported versions: 3.11, 3.12%reset%
100
+ set WARNINGS=1
101
+ )
102
+ if not "%TORCH_VERSION%"=="2.7" if not "%TORCH_VERSION%"=="2.8" (
103
+ echo %warning%WARNING: %red%Torch %TORCH_VERSION% is not supported. %green%Supported versions: 2.7, 2.8%reset%
104
+ set WARNINGS=1
105
+ )
106
+ if not "%CUDA_VERSION%"=="12.8" (
107
+ echo %warning%WARNING: %red%CUDA %CUDA_VERSION% is not supported. %green%Supported version: 12.8%reset%
108
+ set WARNINGS=1
109
+ )
110
+ if %WARNINGS%==0 (
111
+ echo %green%::::::::::::::: %reset%%bold%All versions are supported! %reset%
112
+ echo.
113
+ ) else (
114
+ echo.
115
+ echo %red%::::::::::::::: Press any key to exit%reset%&Pause>nul
116
+ exit
117
+ )
118
+ goto :eof
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Add-Ons/Nunchaku-dev-NEXT (latest dev version).bat ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ set "node_name=Nunchaku Nightly v1.0.1dev20250924"
3
+ Title '%node_name%' for 'ComfyUI Easy Install' by ivo
4
+ :: Pixaroma Community Edition ::
5
+
6
+ cd /d %~dp0
7
+
8
+ :: Set colors ::
9
+ call :set_colors
10
+
11
+ :: Set arguments ::
12
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200"
13
+
14
+ :: Check Add-ons folder ::
15
+ set "PYTHON_PATH=..\python_embeded\python.exe"
16
+ if not exist %PYTHON_PATH% (
17
+ cls
18
+ echo %green%::::::::::::::: Run this file from the %red%'ComfyUI-Easy-Install\Add-ons'%green% folder
19
+ echo %green%::::::::::::::: Press any key to exit...%reset%&Pause>nul
20
+ exit
21
+ )
22
+
23
+ :: Clear Pip Cache ::
24
+ if exist "%localappdata%\pip\cache" rd /s /q "%localappdata%\pip\cache"&&md "%localappdata%\pip\cache"
25
+ echo %green%::::::::::::::: Clearing Pip Cache %yellow%Done%green%%reset%
26
+ echo.
27
+
28
+ call :get_versions
29
+
30
+
31
+
32
+
33
+
34
+ :: Installing Nunchaku dev ::
35
+ echo %green%::::::::::::::: Installing%yellow% %node_name%%reset%
36
+ echo.
37
+ if exist "..\ComfyUI\custom_nodes\ComfyUI-nunchaku" rmdir /s /q "..\ComfyUI\custom_nodes\ComfyUI-nunchaku"
38
+ git.exe clone https://github.com/mit-han-lab/ComfyUI-nunchaku ..\ComfyUI\custom_nodes\ComfyUI-nunchaku
39
+ echo.
40
+
41
+ :: Install Nunchaku wheel ::
42
+ for /d %%i in ("..\python_embeded\lib\site-packages\nunchaku*") do rmdir /s /q "%%i"
43
+
44
+ if "%PYTHON_VERSION%"=="3.11" if "%TORCH_VERSION%"=="2.7" (set "NUNCHAKU_WHL=nunchaku-1.0.1.dev20250923+torch2.7-cp311-cp311-win_amd64.whl")
45
+ if "%PYTHON_VERSION%"=="3.11" if "%TORCH_VERSION%"=="2.8" (set "NUNCHAKU_WHL=nunchaku-1.0.1.dev20250923+torch2.8-cp311-cp311-win_amd64.whl")
46
+ if "%PYTHON_VERSION%"=="3.12" if "%TORCH_VERSION%"=="2.7" (set "NUNCHAKU_WHL=nunchaku-1.0.1.dev20250923+torch2.7-cp312-cp312-win_amd64.whl")
47
+ if "%PYTHON_VERSION%"=="3.12" if "%TORCH_VERSION%"=="2.8" (set "NUNCHAKU_WHL=nunchaku-1.0.1.dev20250923+torch2.8-cp312-cp312-win_amd64.whl")
48
+
49
+ %PYTHON_PATH% -I -m pip install https://github.com/nunchaku-tech/nunchaku/releases/download/v1.0.1dev20250923/%NUNCHAKU_WHL% %PIPargs%
50
+
51
+ %PYTHON_PATH% -I -m pip install --force-reinstall numpy==1.26.4 --no-color %PIPargs%
52
+
53
+
54
+
55
+
56
+
57
+ :: Final Messages ::
58
+ echo.
59
+ echo %green%:::::::::::::::%yellow% %node_name% %green%Installation Complete%reset%
60
+ echo.
61
+ if "%~1"=="" (
62
+ echo %green%::::::::::::::: %yellow%Press any key to exit%reset%&Pause>nul
63
+ exit
64
+ )
65
+
66
+ :set_colors
67
+ set warning=
68
+ set red=
69
+ set green=
70
+ set yellow=
71
+ set bold=
72
+ set reset=
73
+ goto :eof
74
+
75
+ :get_versions
76
+ echo %green%::::::::::::::: Checking %yellow%Python, Torch and CUDA %green%versions%reset%
77
+ echo.
78
+ :: Python version
79
+ for /f "tokens=2" %%i in ('"%PYTHON_PATH%" --version 2^>^&1') do (
80
+ for /f "tokens=1,2 delims=." %%a in ("%%i") do set PYTHON_VERSION=%%a.%%b
81
+ )
82
+ :: Torch version
83
+ "%PYTHON_PATH%" -c "import torch; print(torch.__version__)" > temp_torch.txt
84
+ for /f "tokens=1,2 delims=." %%a in (temp_torch.txt) do set TORCH_VERSION=%%a.%%b
85
+ del temp_torch.txt >nul 2>&1
86
+ :: CUDA version
87
+ "%PYTHON_PATH%" -c "import torch; print(torch.version.cuda if torch.cuda.is_available() else 'Not available')" > temp_cuda.txt
88
+ for /f "tokens=1,2 delims=." %%a in (temp_cuda.txt) do set CUDA_VERSION=%%a.%%b
89
+ del temp_cuda.txt >nul 2>&1
90
+
91
+ echo %green%::::::::::::::: Python Version:%yellow% %PYTHON_VERSION%%reset%
92
+ echo %green%::::::::::::::: Torch Version:%yellow% %TORCH_VERSION%%reset%
93
+ echo %green%::::::::::::::: CUDA Version:%yellow% %CUDA_VERSION%%reset%
94
+ echo.
95
+
96
+ set WARNINGS=0
97
+
98
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
99
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not supported. %green%Supported versions: 3.11, 3.12%reset%
100
+ set WARNINGS=1
101
+ )
102
+ if not "%TORCH_VERSION%"=="2.7" if not "%TORCH_VERSION%"=="2.8" (
103
+ echo %warning%WARNING: %red%Torch %TORCH_VERSION% is not supported. %green%Supported versions: 2.7, 2.8%reset%
104
+ set WARNINGS=1
105
+ )
106
+ if not "%CUDA_VERSION%"=="12.8" (
107
+ echo %warning%WARNING: %red%CUDA %CUDA_VERSION% is not supported. %green%Supported version: 12.8%reset%
108
+ set WARNINGS=1
109
+ )
110
+ if %WARNINGS%==0 (
111
+ echo %green%::::::::::::::: %reset%%bold%All versions are supported! %reset%
112
+ echo.
113
+ ) else (
114
+ echo.
115
+ echo %red%::::::::::::::: Press any key to exit%reset%&Pause>nul
116
+ exit
117
+ )
118
+ goto :eof
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Add-Ons/SageAttention-NEXT.bat ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ set "node_name=SageAttention"
3
+ Title '%node_name%' for 'ComfyUI Easy Install' by ivo
4
+ :: Pixaroma Community Edition ::
5
+
6
+ cd /d %~dp0
7
+
8
+ :: Set colors ::
9
+ call :set_colors
10
+
11
+ :: Set arguments ::
12
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200 --use-pep517"
13
+
14
+ :: Check Add-ons folder ::
15
+ set "PYTHON_PATH=..\python_embeded\python.exe"
16
+ if not exist %PYTHON_PATH% (
17
+ cls
18
+ echo %green%::::::::::::::: Run this file from the %red%'ComfyUI-Easy-Install\Add-ons'%green% folder
19
+ echo %green%::::::::::::::: Press any key to exit...%reset%&Pause>nul
20
+ exit
21
+ )
22
+
23
+ :: Clear Pip Cache ::
24
+ if exist "%localappdata%\pip\cache" rd /s /q "%localappdata%\pip\cache"&&md "%localappdata%\pip\cache"
25
+ echo %green%::::::::::::::: Clearing Pip Cache %yellow%Done%green%%reset%
26
+ echo.
27
+
28
+ call :get_versions
29
+
30
+
31
+
32
+
33
+
34
+ :: Installing Triton ::
35
+ echo %green%::::::::::::::: Installing%yellow% Triton%reset%
36
+ echo.
37
+ %PYTHON_PATH% -I -m pip install --upgrade --force-reinstall triton-windows %PIPargs%
38
+ echo.
39
+
40
+ :: Installing SageAttention ::
41
+ echo %green%::::::::::::::: Installing%yellow% %node_name%%reset%
42
+ echo.
43
+
44
+ if "%TORCH_VERSION%"=="2.7" if "%CUDA_VERSION%"=="12.8" (set "SAGE_WHL=sageattention-2.2.0+cu128torch2.7.1.post2-cp39-abi3-win_amd64.whl")
45
+ if "%TORCH_VERSION%"=="2.8" if "%CUDA_VERSION%"=="12.8" (set "SAGE_WHL=sageattention-2.2.0+cu128torch2.8.0.post2-cp39-abi3-win_amd64.whl")
46
+
47
+ %PYTHON_PATH% -I -m pip install --upgrade --force-reinstall https://github.com/woct0rdho/SageAttention/releases/download/v2.2.0-windows.post2/%SAGE_WHL% %PIPargs%
48
+
49
+ :: Creating run_nvidia_gpu_SageAttention.bat file ::
50
+ echo.
51
+ echo %green%::::::::::::::: Creating%yellow% run_nvidia_gpu_SageAttention.bat%reset%
52
+ echo.
53
+ echo @Echo off^&^&cd /D %%^~dp0> ..\run_nvidia_gpu_SageAttention.bat
54
+ echo Title ComfyUI-Easy-Install>> ..\run_nvidia_gpu_SageAttention.bat
55
+ echo .\python_embeded\python.exe -I ComfyUI\main.py --windows-standalone-build --use-sage-attention>> ..\run_nvidia_gpu_SageAttention.bat
56
+ echo pause>> ..\run_nvidia_gpu_SageAttention.bat
57
+
58
+
59
+
60
+
61
+
62
+ :: Final Messages ::
63
+ echo.
64
+ echo %green%:::::::::::::::%yellow% %node_name% %green%Installation Complete%reset%
65
+ echo.
66
+ if "%~1"=="" (
67
+ echo %green%::::::::::::::: %yellow%Press any key to exit%reset%&Pause>nul
68
+ exit
69
+ )
70
+
71
+ :set_colors
72
+ set warning=
73
+ set red=
74
+ set green=
75
+ set yellow=
76
+ set bold=
77
+ set reset=
78
+ goto :eof
79
+
80
+ :get_versions
81
+ echo %green%::::::::::::::: Checking %yellow%Python, Torch, CUDA %green%versions%reset%
82
+ echo.
83
+ :: Python version
84
+ for /f "tokens=2" %%i in ('"%PYTHON_PATH%" --version 2^>^&1') do (
85
+ for /f "tokens=1,2 delims=." %%a in ("%%i") do set PYTHON_VERSION=%%a.%%b
86
+ )
87
+ :: Torch version
88
+ "%PYTHON_PATH%" -c "import torch; print(torch.__version__)" > temp_torch.txt
89
+ for /f "tokens=1,2 delims=." %%a in (temp_torch.txt) do set TORCH_VERSION=%%a.%%b
90
+ del temp_torch.txt >nul 2>&1
91
+ :: CUDA version
92
+ "%PYTHON_PATH%" -c "import torch; print(torch.version.cuda if torch.cuda.is_available() else 'Not available')" > temp_cuda.txt
93
+ for /f "tokens=1,2 delims=." %%a in (temp_cuda.txt) do set CUDA_VERSION=%%a.%%b
94
+ del temp_cuda.txt >nul 2>&1
95
+
96
+ echo %green%::::::::::::::: Python Version:%yellow% %PYTHON_VERSION%%reset%
97
+ echo %green%::::::::::::::: Torch Version:%yellow% %TORCH_VERSION%%reset%
98
+ echo %green%::::::::::::::: CUDA Version:%yellow% %CUDA_VERSION%%reset%
99
+ echo.
100
+
101
+ set WARNINGS=0
102
+
103
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
104
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not supported. %green%Supported versions: 3.11, 3.12%reset%
105
+ set WARNINGS=1
106
+ )
107
+ if not "%TORCH_VERSION%"=="2.7" if not "%TORCH_VERSION%"=="2.8" (
108
+ echo %warning%WARNING: %red%Torch %TORCH_VERSION% is not supported. %green%Supported versions: 2.7, 2.8%reset%
109
+ set WARNINGS=1
110
+ )
111
+ if not "%CUDA_VERSION%"=="12.8" (
112
+ echo %warning%WARNING: %red%CUDA %CUDA_VERSION% is not supported. %green%Supported version: 12.8%reset%
113
+ set WARNINGS=1
114
+ )
115
+ if %WARNINGS%==0 (
116
+ echo %green%::::::::::::::: %reset%%bold%All versions are supported! %reset%
117
+ echo.
118
+ ) else (
119
+ echo.
120
+ echo %red%::::::::::::::: Press any key to exit%reset%&Pause>nul
121
+ exit
122
+ )
123
+ goto :eof
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/ComfyUI/custom_nodes/was-node-suite-comfyui/styles.json ADDED
The diff for this file is too large to render. See raw diff
 
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Update All and RUN.bat ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @Echo off&&cd /D %~dp0
2
+ Title ComfyUI-Update All and RUN by ivo
3
+ :: Pixaroma Community Edition ::
4
+ :: Updates ComfyUI and its nodes and starts it
5
+
6
+ Echo ::::::::::::::: Updating ComfyUI :::::::::::::::
7
+ Echo.
8
+ cd .\update&&call .\update_comfyui.bat nopause&&cd ..\
9
+ Echo.
10
+
11
+ Echo ::::::::::::::: Updating All Nodes :::::::::::::::
12
+ Echo.
13
+ .\python_embeded\python.exe -I ComfyUI\custom_nodes\ComfyUI-Manager\cm-cli.py update all
14
+ Echo.
15
+ Echo ::::::::::::::: Done. Starting ComfyUI :::::::::::::::
16
+ Echo.
17
+
18
+ call run_nvidia_gpu.bat
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/Update Comfy and RUN.bat ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @Echo off&&cd /D %~dp0
2
+ Title ComfyUI-Update Comfy and RUN by ivo
3
+ :: Pixaroma Community Edition ::
4
+ :: Updates only ComfyUI and starts it
5
+
6
+ Echo ::::::::::::::: Updating ComfyUI :::::::::::::::
7
+ Echo.
8
+ cd .\update&&call .\update_comfyui.bat nopause&&cd ..\
9
+ Echo.
10
+ Echo ::::::::::::::: Done. Starting ComfyUI :::::::::::::::
11
+ Echo.
12
+
13
+ call run_nvidia_gpu.bat
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/Python.h ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Entry point of the Python C API.
2
+ // C extensions should only #include <Python.h>, and not include directly
3
+ // the other Python header files included by <Python.h>.
4
+
5
+ #ifndef Py_PYTHON_H
6
+ #define Py_PYTHON_H
7
+
8
+ // Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" {
9
+
10
+ // Include Python header files
11
+ #include "patchlevel.h"
12
+ #include "pyconfig.h"
13
+ #include "pymacconfig.h"
14
+
15
+ #if defined(__sgi) && !defined(_SGI_MP_SOURCE)
16
+ # define _SGI_MP_SOURCE
17
+ #endif
18
+
19
+ // stdlib.h, stdio.h, errno.h and string.h headers are not used by Python
20
+ // headers, but kept for backward compatibility. They are excluded from the
21
+ // limited C API of Python 3.11.
22
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
23
+ # include <stdlib.h>
24
+ # include <stdio.h> // FILE*
25
+ # include <errno.h> // errno
26
+ # include <string.h> // memcpy()
27
+ #endif
28
+ #ifndef MS_WINDOWS
29
+ # include <unistd.h>
30
+ #endif
31
+ #ifdef HAVE_STDDEF_H
32
+ # include <stddef.h> // size_t
33
+ #endif
34
+
35
+ #include <assert.h> // assert()
36
+ #include <wchar.h> // wchar_t
37
+
38
+ #include "pyport.h"
39
+ #include "pymacro.h"
40
+ #include "pymath.h"
41
+ #include "pymem.h"
42
+ #include "pytypedefs.h"
43
+ #include "pybuffer.h"
44
+ #include "object.h"
45
+ #include "objimpl.h"
46
+ #include "typeslots.h"
47
+ #include "pyhash.h"
48
+ #include "cpython/pydebug.h"
49
+ #include "bytearrayobject.h"
50
+ #include "bytesobject.h"
51
+ #include "unicodeobject.h"
52
+ #include "cpython/code.h"
53
+ #include "cpython/initconfig.h"
54
+ #include "pystate.h"
55
+ #include "pyerrors.h"
56
+ #include "longobject.h"
57
+ #include "cpython/longintrepr.h"
58
+ #include "boolobject.h"
59
+ #include "floatobject.h"
60
+ #include "complexobject.h"
61
+ #include "rangeobject.h"
62
+ #include "memoryobject.h"
63
+ #include "tupleobject.h"
64
+ #include "listobject.h"
65
+ #include "dictobject.h"
66
+ #include "cpython/odictobject.h"
67
+ #include "enumobject.h"
68
+ #include "setobject.h"
69
+ #include "methodobject.h"
70
+ #include "moduleobject.h"
71
+ #include "cpython/funcobject.h"
72
+ #include "cpython/classobject.h"
73
+ #include "fileobject.h"
74
+ #include "pycapsule.h"
75
+ #include "pyframe.h"
76
+ #include "traceback.h"
77
+ #include "sliceobject.h"
78
+ #include "cpython/cellobject.h"
79
+ #include "iterobject.h"
80
+ #include "cpython/genobject.h"
81
+ #include "descrobject.h"
82
+ #include "genericaliasobject.h"
83
+ #include "warnings.h"
84
+ #include "weakrefobject.h"
85
+ #include "structseq.h"
86
+ #include "cpython/picklebufobject.h"
87
+ #include "cpython/pytime.h"
88
+ #include "codecs.h"
89
+ #include "pythread.h"
90
+ #include "cpython/context.h"
91
+ #include "modsupport.h"
92
+ #include "compile.h"
93
+ #include "pythonrun.h"
94
+ #include "pylifecycle.h"
95
+ #include "ceval.h"
96
+ #include "sysmodule.h"
97
+ #include "osmodule.h"
98
+ #include "intrcheck.h"
99
+ #include "import.h"
100
+ #include "abstract.h"
101
+ #include "bltinmodule.h"
102
+ #include "cpython/pyctype.h"
103
+ #include "pystrtod.h"
104
+ #include "pystrcmp.h"
105
+ #include "fileutils.h"
106
+ #include "cpython/pyfpe.h"
107
+ #include "tracemalloc.h"
108
+
109
+ #endif /* !Py_PYTHON_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/abstract.h ADDED
@@ -0,0 +1,873 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Abstract Object Interface (many thanks to Jim Fulton) */
2
+
3
+ #ifndef Py_ABSTRACTOBJECT_H
4
+ #define Py_ABSTRACTOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ /* === Object Protocol ================================================== */
10
+
11
+ /* Implemented elsewhere:
12
+
13
+ int PyObject_Print(PyObject *o, FILE *fp, int flags);
14
+
15
+ Print an object 'o' on file 'fp'. Returns -1 on error. The flags argument
16
+ is used to enable certain printing options. The only option currently
17
+ supported is Py_Print_RAW.
18
+
19
+ (What should be said about Py_Print_RAW?). */
20
+
21
+
22
+ /* Implemented elsewhere:
23
+
24
+ int PyObject_HasAttrString(PyObject *o, const char *attr_name);
25
+
26
+ Returns 1 if object 'o' has the attribute attr_name, and 0 otherwise.
27
+
28
+ This is equivalent to the Python expression: hasattr(o,attr_name).
29
+
30
+ This function always succeeds. */
31
+
32
+
33
+ /* Implemented elsewhere:
34
+
35
+ PyObject* PyObject_GetAttrString(PyObject *o, const char *attr_name);
36
+
37
+ Retrieve an attributed named attr_name form object o.
38
+ Returns the attribute value on success, or NULL on failure.
39
+
40
+ This is the equivalent of the Python expression: o.attr_name. */
41
+
42
+
43
+ /* Implemented elsewhere:
44
+
45
+ int PyObject_HasAttr(PyObject *o, PyObject *attr_name);
46
+
47
+ Returns 1 if o has the attribute attr_name, and 0 otherwise.
48
+
49
+ This is equivalent to the Python expression: hasattr(o,attr_name).
50
+
51
+ This function always succeeds. */
52
+
53
+ /* Implemented elsewhere:
54
+
55
+ PyObject* PyObject_GetAttr(PyObject *o, PyObject *attr_name);
56
+
57
+ Retrieve an attributed named 'attr_name' form object 'o'.
58
+ Returns the attribute value on success, or NULL on failure.
59
+
60
+ This is the equivalent of the Python expression: o.attr_name. */
61
+
62
+
63
+ /* Implemented elsewhere:
64
+
65
+ int PyObject_SetAttrString(PyObject *o, const char *attr_name, PyObject *v);
66
+
67
+ Set the value of the attribute named attr_name, for object 'o',
68
+ to the value 'v'. Raise an exception and return -1 on failure; return 0 on
69
+ success.
70
+
71
+ This is the equivalent of the Python statement o.attr_name=v. */
72
+
73
+
74
+ /* Implemented elsewhere:
75
+
76
+ int PyObject_SetAttr(PyObject *o, PyObject *attr_name, PyObject *v);
77
+
78
+ Set the value of the attribute named attr_name, for object 'o', to the value
79
+ 'v'. an exception and return -1 on failure; return 0 on success.
80
+
81
+ This is the equivalent of the Python statement o.attr_name=v. */
82
+
83
+ /* Implemented as a macro:
84
+
85
+ int PyObject_DelAttrString(PyObject *o, const char *attr_name);
86
+
87
+ Delete attribute named attr_name, for object o. Returns
88
+ -1 on failure.
89
+
90
+ This is the equivalent of the Python statement: del o.attr_name. */
91
+ #define PyObject_DelAttrString(O,A) PyObject_SetAttrString((O),(A), NULL)
92
+
93
+
94
+ /* Implemented as a macro:
95
+
96
+ int PyObject_DelAttr(PyObject *o, PyObject *attr_name);
97
+
98
+ Delete attribute named attr_name, for object o. Returns -1
99
+ on failure. This is the equivalent of the Python
100
+ statement: del o.attr_name. */
101
+ #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A), NULL)
102
+
103
+
104
+ /* Implemented elsewhere:
105
+
106
+ PyObject *PyObject_Repr(PyObject *o);
107
+
108
+ Compute the string representation of object 'o'. Returns the
109
+ string representation on success, NULL on failure.
110
+
111
+ This is the equivalent of the Python expression: repr(o).
112
+
113
+ Called by the repr() built-in function. */
114
+
115
+
116
+ /* Implemented elsewhere:
117
+
118
+ PyObject *PyObject_Str(PyObject *o);
119
+
120
+ Compute the string representation of object, o. Returns the
121
+ string representation on success, NULL on failure.
122
+
123
+ This is the equivalent of the Python expression: str(o).
124
+
125
+ Called by the str() and print() built-in functions. */
126
+
127
+
128
+ /* Declared elsewhere
129
+
130
+ PyAPI_FUNC(int) PyCallable_Check(PyObject *o);
131
+
132
+ Determine if the object, o, is callable. Return 1 if the object is callable
133
+ and 0 otherwise.
134
+
135
+ This function always succeeds. */
136
+
137
+
138
+ #ifdef PY_SSIZE_T_CLEAN
139
+ # define PyObject_CallFunction _PyObject_CallFunction_SizeT
140
+ # define PyObject_CallMethod _PyObject_CallMethod_SizeT
141
+ #endif
142
+
143
+
144
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03090000
145
+ /* Call a callable Python object without any arguments */
146
+ PyAPI_FUNC(PyObject *) PyObject_CallNoArgs(PyObject *func);
147
+ #endif
148
+
149
+
150
+ /* Call a callable Python object 'callable' with arguments given by the
151
+ tuple 'args' and keywords arguments given by the dictionary 'kwargs'.
152
+
153
+ 'args' must not be NULL, use an empty tuple if no arguments are
154
+ needed. If no named arguments are needed, 'kwargs' can be NULL.
155
+
156
+ This is the equivalent of the Python expression:
157
+ callable(*args, **kwargs). */
158
+ PyAPI_FUNC(PyObject *) PyObject_Call(PyObject *callable,
159
+ PyObject *args, PyObject *kwargs);
160
+
161
+
162
+ /* Call a callable Python object 'callable', with arguments given by the
163
+ tuple 'args'. If no arguments are needed, then 'args' can be NULL.
164
+
165
+ Returns the result of the call on success, or NULL on failure.
166
+
167
+ This is the equivalent of the Python expression:
168
+ callable(*args). */
169
+ PyAPI_FUNC(PyObject *) PyObject_CallObject(PyObject *callable,
170
+ PyObject *args);
171
+
172
+ /* Call a callable Python object, callable, with a variable number of C
173
+ arguments. The C arguments are described using a mkvalue-style format
174
+ string.
175
+
176
+ The format may be NULL, indicating that no arguments are provided.
177
+
178
+ Returns the result of the call on success, or NULL on failure.
179
+
180
+ This is the equivalent of the Python expression:
181
+ callable(arg1, arg2, ...). */
182
+ PyAPI_FUNC(PyObject *) PyObject_CallFunction(PyObject *callable,
183
+ const char *format, ...);
184
+
185
+ /* Call the method named 'name' of object 'obj' with a variable number of
186
+ C arguments. The C arguments are described by a mkvalue format string.
187
+
188
+ The format can be NULL, indicating that no arguments are provided.
189
+
190
+ Returns the result of the call on success, or NULL on failure.
191
+
192
+ This is the equivalent of the Python expression:
193
+ obj.name(arg1, arg2, ...). */
194
+ PyAPI_FUNC(PyObject *) PyObject_CallMethod(PyObject *obj,
195
+ const char *name,
196
+ const char *format, ...);
197
+
198
+ PyAPI_FUNC(PyObject *) _PyObject_CallFunction_SizeT(PyObject *callable,
199
+ const char *format,
200
+ ...);
201
+
202
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethod_SizeT(PyObject *obj,
203
+ const char *name,
204
+ const char *format,
205
+ ...);
206
+
207
+ /* Call a callable Python object 'callable' with a variable number of C
208
+ arguments. The C arguments are provided as PyObject* values, terminated
209
+ by a NULL.
210
+
211
+ Returns the result of the call on success, or NULL on failure.
212
+
213
+ This is the equivalent of the Python expression:
214
+ callable(arg1, arg2, ...). */
215
+ PyAPI_FUNC(PyObject *) PyObject_CallFunctionObjArgs(PyObject *callable,
216
+ ...);
217
+
218
+ /* Call the method named 'name' of object 'obj' with a variable number of
219
+ C arguments. The C arguments are provided as PyObject* values, terminated
220
+ by NULL.
221
+
222
+ Returns the result of the call on success, or NULL on failure.
223
+
224
+ This is the equivalent of the Python expression: obj.name(*args). */
225
+
226
+ PyAPI_FUNC(PyObject *) PyObject_CallMethodObjArgs(
227
+ PyObject *obj,
228
+ PyObject *name,
229
+ ...);
230
+
231
+
232
+ /* Implemented elsewhere:
233
+
234
+ Py_hash_t PyObject_Hash(PyObject *o);
235
+
236
+ Compute and return the hash, hash_value, of an object, o. On
237
+ failure, return -1.
238
+
239
+ This is the equivalent of the Python expression: hash(o). */
240
+
241
+
242
+ /* Implemented elsewhere:
243
+
244
+ int PyObject_IsTrue(PyObject *o);
245
+
246
+ Returns 1 if the object, o, is considered to be true, 0 if o is
247
+ considered to be false and -1 on failure.
248
+
249
+ This is equivalent to the Python expression: not not o. */
250
+
251
+
252
+ /* Implemented elsewhere:
253
+
254
+ int PyObject_Not(PyObject *o);
255
+
256
+ Returns 0 if the object, o, is considered to be true, 1 if o is
257
+ considered to be false and -1 on failure.
258
+
259
+ This is equivalent to the Python expression: not o. */
260
+
261
+
262
+ /* Get the type of an object.
263
+
264
+ On success, returns a type object corresponding to the object type of object
265
+ 'o'. On failure, returns NULL.
266
+
267
+ This is equivalent to the Python expression: type(o) */
268
+ PyAPI_FUNC(PyObject *) PyObject_Type(PyObject *o);
269
+
270
+
271
+ /* Return the size of object 'o'. If the object 'o' provides both sequence and
272
+ mapping protocols, the sequence size is returned.
273
+
274
+ On error, -1 is returned.
275
+
276
+ This is the equivalent to the Python expression: len(o) */
277
+ PyAPI_FUNC(Py_ssize_t) PyObject_Size(PyObject *o);
278
+
279
+
280
+ /* For DLL compatibility */
281
+ #undef PyObject_Length
282
+ PyAPI_FUNC(Py_ssize_t) PyObject_Length(PyObject *o);
283
+ #define PyObject_Length PyObject_Size
284
+
285
+ /* Return element of 'o' corresponding to the object 'key'. Return NULL
286
+ on failure.
287
+
288
+ This is the equivalent of the Python expression: o[key] */
289
+ PyAPI_FUNC(PyObject *) PyObject_GetItem(PyObject *o, PyObject *key);
290
+
291
+
292
+ /* Map the object 'key' to the value 'v' into 'o'.
293
+
294
+ Raise an exception and return -1 on failure; return 0 on success.
295
+
296
+ This is the equivalent of the Python statement: o[key]=v. */
297
+ PyAPI_FUNC(int) PyObject_SetItem(PyObject *o, PyObject *key, PyObject *v);
298
+
299
+ /* Remove the mapping for the string 'key' from the object 'o'.
300
+ Returns -1 on failure.
301
+
302
+ This is equivalent to the Python statement: del o[key]. */
303
+ PyAPI_FUNC(int) PyObject_DelItemString(PyObject *o, const char *key);
304
+
305
+ /* Delete the mapping for the object 'key' from the object 'o'.
306
+ Returns -1 on failure.
307
+
308
+ This is the equivalent of the Python statement: del o[key]. */
309
+ PyAPI_FUNC(int) PyObject_DelItem(PyObject *o, PyObject *key);
310
+
311
+
312
+ /* === Old Buffer API ============================================ */
313
+
314
+ /* FIXME: usage of these should all be replaced in Python itself
315
+ but for backwards compatibility we will implement them.
316
+ Their usage without a corresponding "unlock" mechanism
317
+ may create issues (but they would already be there). */
318
+
319
+ /* Takes an arbitrary object which must support the (character, single segment)
320
+ buffer interface and returns a pointer to a read-only memory location
321
+ usable as character based input for subsequent processing.
322
+
323
+ Return 0 on success. buffer and buffer_len are only set in case no error
324
+ occurs. Otherwise, -1 is returned and an exception set. */
325
+ Py_DEPRECATED(3.0)
326
+ PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj,
327
+ const char **buffer,
328
+ Py_ssize_t *buffer_len);
329
+
330
+ /* Checks whether an arbitrary object supports the (character, single segment)
331
+ buffer interface.
332
+
333
+ Returns 1 on success, 0 on failure. */
334
+ Py_DEPRECATED(3.0) PyAPI_FUNC(int) PyObject_CheckReadBuffer(PyObject *obj);
335
+
336
+ /* Same as PyObject_AsCharBuffer() except that this API expects (readable,
337
+ single segment) buffer interface and returns a pointer to a read-only memory
338
+ location which can contain arbitrary data.
339
+
340
+ 0 is returned on success. buffer and buffer_len are only set in case no
341
+ error occurs. Otherwise, -1 is returned and an exception set. */
342
+ Py_DEPRECATED(3.0)
343
+ PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
344
+ const void **buffer,
345
+ Py_ssize_t *buffer_len);
346
+
347
+ /* Takes an arbitrary object which must support the (writable, single segment)
348
+ buffer interface and returns a pointer to a writable memory location in
349
+ buffer of size 'buffer_len'.
350
+
351
+ Return 0 on success. buffer and buffer_len are only set in case no error
352
+ occurs. Otherwise, -1 is returned and an exception set. */
353
+ Py_DEPRECATED(3.0)
354
+ PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj,
355
+ void **buffer,
356
+ Py_ssize_t *buffer_len);
357
+
358
+
359
+ /* === New Buffer API ============================================ */
360
+
361
+ /* Takes an arbitrary object and returns the result of calling
362
+ obj.__format__(format_spec). */
363
+ PyAPI_FUNC(PyObject *) PyObject_Format(PyObject *obj,
364
+ PyObject *format_spec);
365
+
366
+
367
+ /* ==== Iterators ================================================ */
368
+
369
+ /* Takes an object and returns an iterator for it.
370
+ This is typically a new iterator but if the argument is an iterator, this
371
+ returns itself. */
372
+ PyAPI_FUNC(PyObject *) PyObject_GetIter(PyObject *);
373
+
374
+ /* Takes an AsyncIterable object and returns an AsyncIterator for it.
375
+ This is typically a new iterator but if the argument is an AsyncIterator,
376
+ this returns itself. */
377
+ PyAPI_FUNC(PyObject *) PyObject_GetAIter(PyObject *);
378
+
379
+ /* Returns non-zero if the object 'obj' provides iterator protocols, and 0 otherwise.
380
+
381
+ This function always succeeds. */
382
+ PyAPI_FUNC(int) PyIter_Check(PyObject *);
383
+
384
+ /* Returns non-zero if the object 'obj' provides AsyncIterator protocols, and 0 otherwise.
385
+
386
+ This function always succeeds. */
387
+ PyAPI_FUNC(int) PyAIter_Check(PyObject *);
388
+
389
+ /* Takes an iterator object and calls its tp_iternext slot,
390
+ returning the next value.
391
+
392
+ If the iterator is exhausted, this returns NULL without setting an
393
+ exception.
394
+
395
+ NULL with an exception means an error occurred. */
396
+ PyAPI_FUNC(PyObject *) PyIter_Next(PyObject *);
397
+
398
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
399
+
400
+ /* Takes generator, coroutine or iterator object and sends the value into it.
401
+ Returns:
402
+ - PYGEN_RETURN (0) if generator has returned.
403
+ 'result' parameter is filled with return value
404
+ - PYGEN_ERROR (-1) if exception was raised.
405
+ 'result' parameter is NULL
406
+ - PYGEN_NEXT (1) if generator has yielded.
407
+ 'result' parameter is filled with yielded value. */
408
+ PyAPI_FUNC(PySendResult) PyIter_Send(PyObject *, PyObject *, PyObject **);
409
+ #endif
410
+
411
+
412
+ /* === Number Protocol ================================================== */
413
+
414
+ /* Returns 1 if the object 'o' provides numeric protocols, and 0 otherwise.
415
+
416
+ This function always succeeds. */
417
+ PyAPI_FUNC(int) PyNumber_Check(PyObject *o);
418
+
419
+ /* Returns the result of adding o1 and o2, or NULL on failure.
420
+
421
+ This is the equivalent of the Python expression: o1 + o2. */
422
+ PyAPI_FUNC(PyObject *) PyNumber_Add(PyObject *o1, PyObject *o2);
423
+
424
+ /* Returns the result of subtracting o2 from o1, or NULL on failure.
425
+
426
+ This is the equivalent of the Python expression: o1 - o2. */
427
+ PyAPI_FUNC(PyObject *) PyNumber_Subtract(PyObject *o1, PyObject *o2);
428
+
429
+ /* Returns the result of multiplying o1 and o2, or NULL on failure.
430
+
431
+ This is the equivalent of the Python expression: o1 * o2. */
432
+ PyAPI_FUNC(PyObject *) PyNumber_Multiply(PyObject *o1, PyObject *o2);
433
+
434
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
435
+ /* This is the equivalent of the Python expression: o1 @ o2. */
436
+ PyAPI_FUNC(PyObject *) PyNumber_MatrixMultiply(PyObject *o1, PyObject *o2);
437
+ #endif
438
+
439
+ /* Returns the result of dividing o1 by o2 giving an integral result,
440
+ or NULL on failure.
441
+
442
+ This is the equivalent of the Python expression: o1 // o2. */
443
+ PyAPI_FUNC(PyObject *) PyNumber_FloorDivide(PyObject *o1, PyObject *o2);
444
+
445
+ /* Returns the result of dividing o1 by o2 giving a float result, or NULL on
446
+ failure.
447
+
448
+ This is the equivalent of the Python expression: o1 / o2. */
449
+ PyAPI_FUNC(PyObject *) PyNumber_TrueDivide(PyObject *o1, PyObject *o2);
450
+
451
+ /* Returns the remainder of dividing o1 by o2, or NULL on failure.
452
+
453
+ This is the equivalent of the Python expression: o1 % o2. */
454
+ PyAPI_FUNC(PyObject *) PyNumber_Remainder(PyObject *o1, PyObject *o2);
455
+
456
+ /* See the built-in function divmod.
457
+
458
+ Returns NULL on failure.
459
+
460
+ This is the equivalent of the Python expression: divmod(o1, o2). */
461
+ PyAPI_FUNC(PyObject *) PyNumber_Divmod(PyObject *o1, PyObject *o2);
462
+
463
+ /* See the built-in function pow. Returns NULL on failure.
464
+
465
+ This is the equivalent of the Python expression: pow(o1, o2, o3),
466
+ where o3 is optional. */
467
+ PyAPI_FUNC(PyObject *) PyNumber_Power(PyObject *o1, PyObject *o2,
468
+ PyObject *o3);
469
+
470
+ /* Returns the negation of o on success, or NULL on failure.
471
+
472
+ This is the equivalent of the Python expression: -o. */
473
+ PyAPI_FUNC(PyObject *) PyNumber_Negative(PyObject *o);
474
+
475
+ /* Returns the positive of o on success, or NULL on failure.
476
+
477
+ This is the equivalent of the Python expression: +o. */
478
+ PyAPI_FUNC(PyObject *) PyNumber_Positive(PyObject *o);
479
+
480
+ /* Returns the absolute value of 'o', or NULL on failure.
481
+
482
+ This is the equivalent of the Python expression: abs(o). */
483
+ PyAPI_FUNC(PyObject *) PyNumber_Absolute(PyObject *o);
484
+
485
+ /* Returns the bitwise negation of 'o' on success, or NULL on failure.
486
+
487
+ This is the equivalent of the Python expression: ~o. */
488
+ PyAPI_FUNC(PyObject *) PyNumber_Invert(PyObject *o);
489
+
490
+ /* Returns the result of left shifting o1 by o2 on success, or NULL on failure.
491
+
492
+ This is the equivalent of the Python expression: o1 << o2. */
493
+ PyAPI_FUNC(PyObject *) PyNumber_Lshift(PyObject *o1, PyObject *o2);
494
+
495
+ /* Returns the result of right shifting o1 by o2 on success, or NULL on
496
+ failure.
497
+
498
+ This is the equivalent of the Python expression: o1 >> o2. */
499
+ PyAPI_FUNC(PyObject *) PyNumber_Rshift(PyObject *o1, PyObject *o2);
500
+
501
+ /* Returns the result of bitwise and of o1 and o2 on success, or NULL on
502
+ failure.
503
+
504
+ This is the equivalent of the Python expression: o1 & o2. */
505
+ PyAPI_FUNC(PyObject *) PyNumber_And(PyObject *o1, PyObject *o2);
506
+
507
+ /* Returns the bitwise exclusive or of o1 by o2 on success, or NULL on failure.
508
+
509
+ This is the equivalent of the Python expression: o1 ^ o2. */
510
+ PyAPI_FUNC(PyObject *) PyNumber_Xor(PyObject *o1, PyObject *o2);
511
+
512
+ /* Returns the result of bitwise or on o1 and o2 on success, or NULL on
513
+ failure.
514
+
515
+ This is the equivalent of the Python expression: o1 | o2. */
516
+ PyAPI_FUNC(PyObject *) PyNumber_Or(PyObject *o1, PyObject *o2);
517
+
518
+ /* Returns 1 if obj is an index integer (has the nb_index slot of the
519
+ tp_as_number structure filled in), and 0 otherwise. */
520
+ PyAPI_FUNC(int) PyIndex_Check(PyObject *);
521
+
522
+ /* Returns the object 'o' converted to a Python int, or NULL with an exception
523
+ raised on failure. */
524
+ PyAPI_FUNC(PyObject *) PyNumber_Index(PyObject *o);
525
+
526
+ /* Returns the object 'o' converted to Py_ssize_t by going through
527
+ PyNumber_Index() first.
528
+
529
+ If an overflow error occurs while converting the int to Py_ssize_t, then the
530
+ second argument 'exc' is the error-type to return. If it is NULL, then the
531
+ overflow error is cleared and the value is clipped. */
532
+ PyAPI_FUNC(Py_ssize_t) PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
533
+
534
+ /* Returns the object 'o' converted to an integer object on success, or NULL
535
+ on failure.
536
+
537
+ This is the equivalent of the Python expression: int(o). */
538
+ PyAPI_FUNC(PyObject *) PyNumber_Long(PyObject *o);
539
+
540
+ /* Returns the object 'o' converted to a float object on success, or NULL
541
+ on failure.
542
+
543
+ This is the equivalent of the Python expression: float(o). */
544
+ PyAPI_FUNC(PyObject *) PyNumber_Float(PyObject *o);
545
+
546
+
547
+ /* --- In-place variants of (some of) the above number protocol functions -- */
548
+
549
+ /* Returns the result of adding o2 to o1, possibly in-place, or NULL
550
+ on failure.
551
+
552
+ This is the equivalent of the Python expression: o1 += o2. */
553
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2);
554
+
555
+ /* Returns the result of subtracting o2 from o1, possibly in-place or
556
+ NULL on failure.
557
+
558
+ This is the equivalent of the Python expression: o1 -= o2. */
559
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceSubtract(PyObject *o1, PyObject *o2);
560
+
561
+ /* Returns the result of multiplying o1 by o2, possibly in-place, or NULL on
562
+ failure.
563
+
564
+ This is the equivalent of the Python expression: o1 *= o2. */
565
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceMultiply(PyObject *o1, PyObject *o2);
566
+
567
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
568
+ /* This is the equivalent of the Python expression: o1 @= o2. */
569
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceMatrixMultiply(PyObject *o1, PyObject *o2);
570
+ #endif
571
+
572
+ /* Returns the result of dividing o1 by o2 giving an integral result, possibly
573
+ in-place, or NULL on failure.
574
+
575
+ This is the equivalent of the Python expression: o1 /= o2. */
576
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceFloorDivide(PyObject *o1,
577
+ PyObject *o2);
578
+
579
+ /* Returns the result of dividing o1 by o2 giving a float result, possibly
580
+ in-place, or null on failure.
581
+
582
+ This is the equivalent of the Python expression: o1 /= o2. */
583
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceTrueDivide(PyObject *o1,
584
+ PyObject *o2);
585
+
586
+ /* Returns the remainder of dividing o1 by o2, possibly in-place, or NULL on
587
+ failure.
588
+
589
+ This is the equivalent of the Python expression: o1 %= o2. */
590
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceRemainder(PyObject *o1, PyObject *o2);
591
+
592
+ /* Returns the result of raising o1 to the power of o2, possibly in-place,
593
+ or NULL on failure.
594
+
595
+ This is the equivalent of the Python expression: o1 **= o2,
596
+ or o1 = pow(o1, o2, o3) if o3 is present. */
597
+ PyAPI_FUNC(PyObject *) PyNumber_InPlacePower(PyObject *o1, PyObject *o2,
598
+ PyObject *o3);
599
+
600
+ /* Returns the result of left shifting o1 by o2, possibly in-place, or NULL
601
+ on failure.
602
+
603
+ This is the equivalent of the Python expression: o1 <<= o2. */
604
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceLshift(PyObject *o1, PyObject *o2);
605
+
606
+ /* Returns the result of right shifting o1 by o2, possibly in-place or NULL
607
+ on failure.
608
+
609
+ This is the equivalent of the Python expression: o1 >>= o2. */
610
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceRshift(PyObject *o1, PyObject *o2);
611
+
612
+ /* Returns the result of bitwise and of o1 and o2, possibly in-place, or NULL
613
+ on failure.
614
+
615
+ This is the equivalent of the Python expression: o1 &= o2. */
616
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceAnd(PyObject *o1, PyObject *o2);
617
+
618
+ /* Returns the bitwise exclusive or of o1 by o2, possibly in-place, or NULL
619
+ on failure.
620
+
621
+ This is the equivalent of the Python expression: o1 ^= o2. */
622
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceXor(PyObject *o1, PyObject *o2);
623
+
624
+ /* Returns the result of bitwise or of o1 and o2, possibly in-place,
625
+ or NULL on failure.
626
+
627
+ This is the equivalent of the Python expression: o1 |= o2. */
628
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceOr(PyObject *o1, PyObject *o2);
629
+
630
+ /* Returns the integer n converted to a string with a base, with a base
631
+ marker of 0b, 0o or 0x prefixed if applicable.
632
+
633
+ If n is not an int object, it is converted with PyNumber_Index first. */
634
+ PyAPI_FUNC(PyObject *) PyNumber_ToBase(PyObject *n, int base);
635
+
636
+
637
+ /* === Sequence protocol ================================================ */
638
+
639
+ /* Return 1 if the object provides sequence protocol, and zero
640
+ otherwise.
641
+
642
+ This function always succeeds. */
643
+ PyAPI_FUNC(int) PySequence_Check(PyObject *o);
644
+
645
+ /* Return the size of sequence object o, or -1 on failure. */
646
+ PyAPI_FUNC(Py_ssize_t) PySequence_Size(PyObject *o);
647
+
648
+ /* For DLL compatibility */
649
+ #undef PySequence_Length
650
+ PyAPI_FUNC(Py_ssize_t) PySequence_Length(PyObject *o);
651
+ #define PySequence_Length PySequence_Size
652
+
653
+
654
+ /* Return the concatenation of o1 and o2 on success, and NULL on failure.
655
+
656
+ This is the equivalent of the Python expression: o1 + o2. */
657
+ PyAPI_FUNC(PyObject *) PySequence_Concat(PyObject *o1, PyObject *o2);
658
+
659
+ /* Return the result of repeating sequence object 'o' 'count' times,
660
+ or NULL on failure.
661
+
662
+ This is the equivalent of the Python expression: o * count. */
663
+ PyAPI_FUNC(PyObject *) PySequence_Repeat(PyObject *o, Py_ssize_t count);
664
+
665
+ /* Return the ith element of o, or NULL on failure.
666
+
667
+ This is the equivalent of the Python expression: o[i]. */
668
+ PyAPI_FUNC(PyObject *) PySequence_GetItem(PyObject *o, Py_ssize_t i);
669
+
670
+ /* Return the slice of sequence object o between i1 and i2, or NULL on failure.
671
+
672
+ This is the equivalent of the Python expression: o[i1:i2]. */
673
+ PyAPI_FUNC(PyObject *) PySequence_GetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
674
+
675
+ /* Assign object 'v' to the ith element of the sequence 'o'. Raise an exception
676
+ and return -1 on failure; return 0 on success.
677
+
678
+ This is the equivalent of the Python statement o[i] = v. */
679
+ PyAPI_FUNC(int) PySequence_SetItem(PyObject *o, Py_ssize_t i, PyObject *v);
680
+
681
+ /* Delete the 'i'-th element of the sequence 'v'. Returns -1 on failure.
682
+
683
+ This is the equivalent of the Python statement: del o[i]. */
684
+ PyAPI_FUNC(int) PySequence_DelItem(PyObject *o, Py_ssize_t i);
685
+
686
+ /* Assign the sequence object 'v' to the slice in sequence object 'o',
687
+ from 'i1' to 'i2'. Returns -1 on failure.
688
+
689
+ This is the equivalent of the Python statement: o[i1:i2] = v. */
690
+ PyAPI_FUNC(int) PySequence_SetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2,
691
+ PyObject *v);
692
+
693
+ /* Delete the slice in sequence object 'o' from 'i1' to 'i2'.
694
+ Returns -1 on failure.
695
+
696
+ This is the equivalent of the Python statement: del o[i1:i2]. */
697
+ PyAPI_FUNC(int) PySequence_DelSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
698
+
699
+ /* Returns the sequence 'o' as a tuple on success, and NULL on failure.
700
+
701
+ This is equivalent to the Python expression: tuple(o). */
702
+ PyAPI_FUNC(PyObject *) PySequence_Tuple(PyObject *o);
703
+
704
+ /* Returns the sequence 'o' as a list on success, and NULL on failure.
705
+ This is equivalent to the Python expression: list(o) */
706
+ PyAPI_FUNC(PyObject *) PySequence_List(PyObject *o);
707
+
708
+ /* Return the sequence 'o' as a list, unless it's already a tuple or list.
709
+
710
+ Use PySequence_Fast_GET_ITEM to access the members of this list, and
711
+ PySequence_Fast_GET_SIZE to get its length.
712
+
713
+ Returns NULL on failure. If the object does not support iteration, raises a
714
+ TypeError exception with 'm' as the message text. */
715
+ PyAPI_FUNC(PyObject *) PySequence_Fast(PyObject *o, const char* m);
716
+
717
+ /* Return the size of the sequence 'o', assuming that 'o' was returned by
718
+ PySequence_Fast and is not NULL. */
719
+ #define PySequence_Fast_GET_SIZE(o) \
720
+ (PyList_Check(o) ? PyList_GET_SIZE(o) : PyTuple_GET_SIZE(o))
721
+
722
+ /* Return the 'i'-th element of the sequence 'o', assuming that o was returned
723
+ by PySequence_Fast, and that i is within bounds. */
724
+ #define PySequence_Fast_GET_ITEM(o, i)\
725
+ (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i))
726
+
727
+ /* Return a pointer to the underlying item array for
728
+ an object returned by PySequence_Fast */
729
+ #define PySequence_Fast_ITEMS(sf) \
730
+ (PyList_Check(sf) ? ((PyListObject *)(sf))->ob_item \
731
+ : ((PyTupleObject *)(sf))->ob_item)
732
+
733
+ /* Return the number of occurrences on value on 'o', that is, return
734
+ the number of keys for which o[key] == value.
735
+
736
+ On failure, return -1. This is equivalent to the Python expression:
737
+ o.count(value). */
738
+ PyAPI_FUNC(Py_ssize_t) PySequence_Count(PyObject *o, PyObject *value);
739
+
740
+ /* Return 1 if 'ob' is in the sequence 'seq'; 0 if 'ob' is not in the sequence
741
+ 'seq'; -1 on error.
742
+
743
+ Use __contains__ if possible, else _PySequence_IterSearch(). */
744
+ PyAPI_FUNC(int) PySequence_Contains(PyObject *seq, PyObject *ob);
745
+
746
+ /* For DLL-level backwards compatibility */
747
+ #undef PySequence_In
748
+ /* Determine if the sequence 'o' contains 'value'. If an item in 'o' is equal
749
+ to 'value', return 1, otherwise return 0. On error, return -1.
750
+
751
+ This is equivalent to the Python expression: value in o. */
752
+ PyAPI_FUNC(int) PySequence_In(PyObject *o, PyObject *value);
753
+
754
+ /* For source-level backwards compatibility */
755
+ #define PySequence_In PySequence_Contains
756
+
757
+
758
+ /* Return the first index for which o[i] == value.
759
+ On error, return -1.
760
+
761
+ This is equivalent to the Python expression: o.index(value). */
762
+ PyAPI_FUNC(Py_ssize_t) PySequence_Index(PyObject *o, PyObject *value);
763
+
764
+
765
+ /* --- In-place versions of some of the above Sequence functions --- */
766
+
767
+ /* Append sequence 'o2' to sequence 'o1', in-place when possible. Return the
768
+ resulting object, which could be 'o1', or NULL on failure.
769
+
770
+ This is the equivalent of the Python expression: o1 += o2. */
771
+ PyAPI_FUNC(PyObject *) PySequence_InPlaceConcat(PyObject *o1, PyObject *o2);
772
+
773
+ /* Repeat sequence 'o' by 'count', in-place when possible. Return the resulting
774
+ object, which could be 'o', or NULL on failure.
775
+
776
+ This is the equivalent of the Python expression: o1 *= count. */
777
+ PyAPI_FUNC(PyObject *) PySequence_InPlaceRepeat(PyObject *o, Py_ssize_t count);
778
+
779
+
780
+ /* === Mapping protocol ================================================= */
781
+
782
+ /* Return 1 if the object provides mapping protocol, and 0 otherwise.
783
+
784
+ This function always succeeds. */
785
+ PyAPI_FUNC(int) PyMapping_Check(PyObject *o);
786
+
787
+ /* Returns the number of keys in mapping object 'o' on success, and -1 on
788
+ failure. This is equivalent to the Python expression: len(o). */
789
+ PyAPI_FUNC(Py_ssize_t) PyMapping_Size(PyObject *o);
790
+
791
+ /* For DLL compatibility */
792
+ #undef PyMapping_Length
793
+ PyAPI_FUNC(Py_ssize_t) PyMapping_Length(PyObject *o);
794
+ #define PyMapping_Length PyMapping_Size
795
+
796
+
797
+ /* Implemented as a macro:
798
+
799
+ int PyMapping_DelItemString(PyObject *o, const char *key);
800
+
801
+ Remove the mapping for the string 'key' from the mapping 'o'. Returns -1 on
802
+ failure.
803
+
804
+ This is equivalent to the Python statement: del o[key]. */
805
+ #define PyMapping_DelItemString(O,K) PyObject_DelItemString((O),(K))
806
+
807
+ /* Implemented as a macro:
808
+
809
+ int PyMapping_DelItem(PyObject *o, PyObject *key);
810
+
811
+ Remove the mapping for the object 'key' from the mapping object 'o'.
812
+ Returns -1 on failure.
813
+
814
+ This is equivalent to the Python statement: del o[key]. */
815
+ #define PyMapping_DelItem(O,K) PyObject_DelItem((O),(K))
816
+
817
+ /* On success, return 1 if the mapping object 'o' has the key 'key',
818
+ and 0 otherwise.
819
+
820
+ This is equivalent to the Python expression: key in o.
821
+
822
+ This function always succeeds. */
823
+ PyAPI_FUNC(int) PyMapping_HasKeyString(PyObject *o, const char *key);
824
+
825
+ /* Return 1 if the mapping object has the key 'key', and 0 otherwise.
826
+
827
+ This is equivalent to the Python expression: key in o.
828
+
829
+ This function always succeeds. */
830
+ PyAPI_FUNC(int) PyMapping_HasKey(PyObject *o, PyObject *key);
831
+
832
+ /* On success, return a list or tuple of the keys in mapping object 'o'.
833
+ On failure, return NULL. */
834
+ PyAPI_FUNC(PyObject *) PyMapping_Keys(PyObject *o);
835
+
836
+ /* On success, return a list or tuple of the values in mapping object 'o'.
837
+ On failure, return NULL. */
838
+ PyAPI_FUNC(PyObject *) PyMapping_Values(PyObject *o);
839
+
840
+ /* On success, return a list or tuple of the items in mapping object 'o',
841
+ where each item is a tuple containing a key-value pair. On failure, return
842
+ NULL. */
843
+ PyAPI_FUNC(PyObject *) PyMapping_Items(PyObject *o);
844
+
845
+ /* Return element of 'o' corresponding to the string 'key' or NULL on failure.
846
+
847
+ This is the equivalent of the Python expression: o[key]. */
848
+ PyAPI_FUNC(PyObject *) PyMapping_GetItemString(PyObject *o,
849
+ const char *key);
850
+
851
+ /* Map the string 'key' to the value 'v' in the mapping 'o'.
852
+ Returns -1 on failure.
853
+
854
+ This is the equivalent of the Python statement: o[key]=v. */
855
+ PyAPI_FUNC(int) PyMapping_SetItemString(PyObject *o, const char *key,
856
+ PyObject *value);
857
+
858
+ /* isinstance(object, typeorclass) */
859
+ PyAPI_FUNC(int) PyObject_IsInstance(PyObject *object, PyObject *typeorclass);
860
+
861
+ /* issubclass(object, typeorclass) */
862
+ PyAPI_FUNC(int) PyObject_IsSubclass(PyObject *object, PyObject *typeorclass);
863
+
864
+ #ifndef Py_LIMITED_API
865
+ # define Py_CPYTHON_ABSTRACTOBJECT_H
866
+ # include "cpython/abstract.h"
867
+ # undef Py_CPYTHON_ABSTRACTOBJECT_H
868
+ #endif
869
+
870
+ #ifdef __cplusplus
871
+ }
872
+ #endif
873
+ #endif /* Py_ABSTRACTOBJECT_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/bltinmodule.h ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_BLTINMODULE_H
2
+ #define Py_BLTINMODULE_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ PyAPI_DATA(PyTypeObject) PyFilter_Type;
8
+ PyAPI_DATA(PyTypeObject) PyMap_Type;
9
+ PyAPI_DATA(PyTypeObject) PyZip_Type;
10
+
11
+ #ifdef __cplusplus
12
+ }
13
+ #endif
14
+ #endif /* !Py_BLTINMODULE_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/boolobject.h ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Boolean object interface */
2
+
3
+ #ifndef Py_BOOLOBJECT_H
4
+ #define Py_BOOLOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+
10
+ PyAPI_DATA(PyTypeObject) PyBool_Type;
11
+
12
+ #define PyBool_Check(x) Py_IS_TYPE(x, &PyBool_Type)
13
+
14
+ /* Py_False and Py_True are the only two bools in existence.
15
+ Don't forget to apply Py_INCREF() when returning either!!! */
16
+
17
+ /* Don't use these directly */
18
+ PyAPI_DATA(PyLongObject) _Py_FalseStruct;
19
+ PyAPI_DATA(PyLongObject) _Py_TrueStruct;
20
+
21
+ /* Use these macros */
22
+ #define Py_False ((PyObject *) &_Py_FalseStruct)
23
+ #define Py_True ((PyObject *) &_Py_TrueStruct)
24
+
25
+ // Test if an object is the True singleton, the same as "x is True" in Python.
26
+ PyAPI_FUNC(int) Py_IsTrue(PyObject *x);
27
+ #define Py_IsTrue(x) Py_Is((x), Py_True)
28
+
29
+ // Test if an object is the False singleton, the same as "x is False" in Python.
30
+ PyAPI_FUNC(int) Py_IsFalse(PyObject *x);
31
+ #define Py_IsFalse(x) Py_Is((x), Py_False)
32
+
33
+ /* Macros for returning Py_True or Py_False, respectively */
34
+ #define Py_RETURN_TRUE return Py_NewRef(Py_True)
35
+ #define Py_RETURN_FALSE return Py_NewRef(Py_False)
36
+
37
+ /* Function to return a bool from a C long */
38
+ PyAPI_FUNC(PyObject *) PyBool_FromLong(long);
39
+
40
+ #ifdef __cplusplus
41
+ }
42
+ #endif
43
+ #endif /* !Py_BOOLOBJECT_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/bytearrayobject.h ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ByteArray object interface */
2
+
3
+ #ifndef Py_BYTEARRAYOBJECT_H
4
+ #define Py_BYTEARRAYOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ /* Type PyByteArrayObject represents a mutable array of bytes.
10
+ * The Python API is that of a sequence;
11
+ * the bytes are mapped to ints in [0, 256).
12
+ * Bytes are not characters; they may be used to encode characters.
13
+ * The only way to go between bytes and str/unicode is via encoding
14
+ * and decoding.
15
+ * For the convenience of C programmers, the bytes type is considered
16
+ * to contain a char pointer, not an unsigned char pointer.
17
+ */
18
+
19
+ /* Type object */
20
+ PyAPI_DATA(PyTypeObject) PyByteArray_Type;
21
+ PyAPI_DATA(PyTypeObject) PyByteArrayIter_Type;
22
+
23
+ /* Type check macros */
24
+ #define PyByteArray_Check(self) PyObject_TypeCheck(self, &PyByteArray_Type)
25
+ #define PyByteArray_CheckExact(self) Py_IS_TYPE(self, &PyByteArray_Type)
26
+
27
+ /* Direct API functions */
28
+ PyAPI_FUNC(PyObject *) PyByteArray_FromObject(PyObject *);
29
+ PyAPI_FUNC(PyObject *) PyByteArray_Concat(PyObject *, PyObject *);
30
+ PyAPI_FUNC(PyObject *) PyByteArray_FromStringAndSize(const char *, Py_ssize_t);
31
+ PyAPI_FUNC(Py_ssize_t) PyByteArray_Size(PyObject *);
32
+ PyAPI_FUNC(char *) PyByteArray_AsString(PyObject *);
33
+ PyAPI_FUNC(int) PyByteArray_Resize(PyObject *, Py_ssize_t);
34
+
35
+ #ifndef Py_LIMITED_API
36
+ # define Py_CPYTHON_BYTEARRAYOBJECT_H
37
+ # include "cpython/bytearrayobject.h"
38
+ # undef Py_CPYTHON_BYTEARRAYOBJECT_H
39
+ #endif
40
+
41
+ #ifdef __cplusplus
42
+ }
43
+ #endif
44
+ #endif /* !Py_BYTEARRAYOBJECT_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/bytesobject.h ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /* Bytes object interface */
3
+
4
+ #ifndef Py_BYTESOBJECT_H
5
+ #define Py_BYTESOBJECT_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ #include <stdarg.h> // va_list
11
+
12
+ /*
13
+ Type PyBytesObject represents a byte string. An extra zero byte is
14
+ reserved at the end to ensure it is zero-terminated, but a size is
15
+ present so strings with null bytes in them can be represented. This
16
+ is an immutable object type.
17
+
18
+ There are functions to create new bytes objects, to test
19
+ an object for bytes-ness, and to get the
20
+ byte string value. The latter function returns a null pointer
21
+ if the object is not of the proper type.
22
+ There is a variant that takes an explicit size as well as a
23
+ variant that assumes a zero-terminated string. Note that none of the
24
+ functions should be applied to NULL pointer.
25
+ */
26
+
27
+ PyAPI_DATA(PyTypeObject) PyBytes_Type;
28
+ PyAPI_DATA(PyTypeObject) PyBytesIter_Type;
29
+
30
+ #define PyBytes_Check(op) \
31
+ PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_BYTES_SUBCLASS)
32
+ #define PyBytes_CheckExact(op) Py_IS_TYPE(op, &PyBytes_Type)
33
+
34
+ PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
35
+ PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
36
+ PyAPI_FUNC(PyObject *) PyBytes_FromObject(PyObject *);
37
+ PyAPI_FUNC(PyObject *) PyBytes_FromFormatV(const char*, va_list)
38
+ Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
39
+ PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
40
+ Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
41
+ PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *);
42
+ PyAPI_FUNC(char *) PyBytes_AsString(PyObject *);
43
+ PyAPI_FUNC(PyObject *) PyBytes_Repr(PyObject *, int);
44
+ PyAPI_FUNC(void) PyBytes_Concat(PyObject **, PyObject *);
45
+ PyAPI_FUNC(void) PyBytes_ConcatAndDel(PyObject **, PyObject *);
46
+ PyAPI_FUNC(PyObject *) PyBytes_DecodeEscape(const char *, Py_ssize_t,
47
+ const char *, Py_ssize_t,
48
+ const char *);
49
+
50
+ /* Provides access to the internal data buffer and size of a bytes object.
51
+ Passing NULL as len parameter will force the string buffer to be
52
+ 0-terminated (passing a string with embedded NUL characters will
53
+ cause an exception). */
54
+ PyAPI_FUNC(int) PyBytes_AsStringAndSize(
55
+ PyObject *obj, /* bytes object */
56
+ char **s, /* pointer to buffer variable */
57
+ Py_ssize_t *len /* pointer to length variable or NULL */
58
+ );
59
+
60
+ #ifndef Py_LIMITED_API
61
+ # define Py_CPYTHON_BYTESOBJECT_H
62
+ # include "cpython/bytesobject.h"
63
+ # undef Py_CPYTHON_BYTESOBJECT_H
64
+ #endif
65
+
66
+ #ifdef __cplusplus
67
+ }
68
+ #endif
69
+ #endif /* !Py_BYTESOBJECT_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/ceval.h ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Interface to random parts in ceval.c */
2
+
3
+ #ifndef Py_CEVAL_H
4
+ #define Py_CEVAL_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+
10
+ PyAPI_FUNC(PyObject *) PyEval_EvalCode(PyObject *, PyObject *, PyObject *);
11
+
12
+ PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyObject *co,
13
+ PyObject *globals,
14
+ PyObject *locals,
15
+ PyObject *const *args, int argc,
16
+ PyObject *const *kwds, int kwdc,
17
+ PyObject *const *defs, int defc,
18
+ PyObject *kwdefs, PyObject *closure);
19
+
20
+ /* PyEval_CallObjectWithKeywords(), PyEval_CallObject(), PyEval_CallFunction
21
+ * and PyEval_CallMethod are deprecated. Since they are officially part of the
22
+ * stable ABI (PEP 384), they must be kept for backward compatibility.
23
+ * PyObject_Call(), PyObject_CallFunction() and PyObject_CallMethod() are
24
+ * recommended to call a callable object.
25
+ */
26
+
27
+ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
28
+ PyObject *callable,
29
+ PyObject *args,
30
+ PyObject *kwargs);
31
+
32
+ /* Deprecated since PyEval_CallObjectWithKeywords is deprecated */
33
+ #define PyEval_CallObject(callable, arg) \
34
+ PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
35
+
36
+ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction(
37
+ PyObject *callable, const char *format, ...);
38
+ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallMethod(
39
+ PyObject *obj, const char *name, const char *format, ...);
40
+
41
+ PyAPI_FUNC(PyObject *) PyEval_GetBuiltins(void);
42
+ PyAPI_FUNC(PyObject *) PyEval_GetGlobals(void);
43
+ PyAPI_FUNC(PyObject *) PyEval_GetLocals(void);
44
+ PyAPI_FUNC(PyFrameObject *) PyEval_GetFrame(void);
45
+
46
+ PyAPI_FUNC(int) Py_AddPendingCall(int (*func)(void *), void *arg);
47
+ PyAPI_FUNC(int) Py_MakePendingCalls(void);
48
+
49
+ /* Protection against deeply nested recursive calls
50
+
51
+ In Python 3.0, this protection has two levels:
52
+ * normal anti-recursion protection is triggered when the recursion level
53
+ exceeds the current recursion limit. It raises a RecursionError, and sets
54
+ the "overflowed" flag in the thread state structure. This flag
55
+ temporarily *disables* the normal protection; this allows cleanup code
56
+ to potentially outgrow the recursion limit while processing the
57
+ RecursionError.
58
+ * "last chance" anti-recursion protection is triggered when the recursion
59
+ level exceeds "current recursion limit + 50". By construction, this
60
+ protection can only be triggered when the "overflowed" flag is set. It
61
+ means the cleanup code has itself gone into an infinite loop, or the
62
+ RecursionError has been mistakingly ignored. When this protection is
63
+ triggered, the interpreter aborts with a Fatal Error.
64
+
65
+ In addition, the "overflowed" flag is automatically reset when the
66
+ recursion level drops below "current recursion limit - 50". This heuristic
67
+ is meant to ensure that the normal anti-recursion protection doesn't get
68
+ disabled too long.
69
+
70
+ Please note: this scheme has its own limitations. See:
71
+ http://mail.python.org/pipermail/python-dev/2008-August/082106.html
72
+ for some observations.
73
+ */
74
+ PyAPI_FUNC(void) Py_SetRecursionLimit(int);
75
+ PyAPI_FUNC(int) Py_GetRecursionLimit(void);
76
+
77
+ PyAPI_FUNC(int) Py_EnterRecursiveCall(const char *where);
78
+ PyAPI_FUNC(void) Py_LeaveRecursiveCall(void);
79
+
80
+ PyAPI_FUNC(const char *) PyEval_GetFuncName(PyObject *);
81
+ PyAPI_FUNC(const char *) PyEval_GetFuncDesc(PyObject *);
82
+
83
+ PyAPI_FUNC(PyObject *) PyEval_EvalFrame(PyFrameObject *);
84
+ PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx(PyFrameObject *f, int exc);
85
+
86
+ /* Interface for threads.
87
+
88
+ A module that plans to do a blocking system call (or something else
89
+ that lasts a long time and doesn't touch Python data) can allow other
90
+ threads to run as follows:
91
+
92
+ ...preparations here...
93
+ Py_BEGIN_ALLOW_THREADS
94
+ ...blocking system call here...
95
+ Py_END_ALLOW_THREADS
96
+ ...interpret result here...
97
+
98
+ The Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS pair expands to a
99
+ {}-surrounded block.
100
+ To leave the block in the middle (e.g., with return), you must insert
101
+ a line containing Py_BLOCK_THREADS before the return, e.g.
102
+
103
+ if (...premature_exit...) {
104
+ Py_BLOCK_THREADS
105
+ PyErr_SetFromErrno(PyExc_OSError);
106
+ return NULL;
107
+ }
108
+
109
+ An alternative is:
110
+
111
+ Py_BLOCK_THREADS
112
+ if (...premature_exit...) {
113
+ PyErr_SetFromErrno(PyExc_OSError);
114
+ return NULL;
115
+ }
116
+ Py_UNBLOCK_THREADS
117
+
118
+ For convenience, that the value of 'errno' is restored across
119
+ Py_END_ALLOW_THREADS and Py_BLOCK_THREADS.
120
+
121
+ WARNING: NEVER NEST CALLS TO Py_BEGIN_ALLOW_THREADS AND
122
+ Py_END_ALLOW_THREADS!!!
123
+
124
+ Note that not yet all candidates have been converted to use this
125
+ mechanism!
126
+ */
127
+
128
+ PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void);
129
+ PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *);
130
+
131
+ Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
132
+ Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
133
+ /* PyEval_AcquireLock() and PyEval_ReleaseLock() are part of stable ABI.
134
+ * They will be removed from this header file in the future version.
135
+ * But they will be remained in ABI until Python 4.0.
136
+ */
137
+ Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_AcquireLock(void);
138
+ Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_ReleaseLock(void);
139
+ PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
140
+ PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
141
+
142
+ #define Py_BEGIN_ALLOW_THREADS { \
143
+ PyThreadState *_save; \
144
+ _save = PyEval_SaveThread();
145
+ #define Py_BLOCK_THREADS PyEval_RestoreThread(_save);
146
+ #define Py_UNBLOCK_THREADS _save = PyEval_SaveThread();
147
+ #define Py_END_ALLOW_THREADS PyEval_RestoreThread(_save); \
148
+ }
149
+
150
+ /* Masks and values used by FORMAT_VALUE opcode. */
151
+ #define FVC_MASK 0x3
152
+ #define FVC_NONE 0x0
153
+ #define FVC_STR 0x1
154
+ #define FVC_REPR 0x2
155
+ #define FVC_ASCII 0x3
156
+ #define FVS_MASK 0x4
157
+ #define FVS_HAVE_SPEC 0x4
158
+
159
+ #ifndef Py_LIMITED_API
160
+ # define Py_CPYTHON_CEVAL_H
161
+ # include "cpython/ceval.h"
162
+ # undef Py_CPYTHON_CEVAL_H
163
+ #endif
164
+
165
+ #ifdef __cplusplus
166
+ }
167
+ #endif
168
+ #endif /* !Py_CEVAL_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/codecs.h ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CODECREGISTRY_H
2
+ #define Py_CODECREGISTRY_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ /* ------------------------------------------------------------------------
8
+
9
+ Python Codec Registry and support functions
10
+
11
+
12
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
13
+
14
+ Copyright (c) Corporation for National Research Initiatives.
15
+
16
+ ------------------------------------------------------------------------ */
17
+
18
+ /* Register a new codec search function.
19
+
20
+ As side effect, this tries to load the encodings package, if not
21
+ yet done, to make sure that it is always first in the list of
22
+ search functions.
23
+
24
+ The search_function's refcount is incremented by this function. */
25
+
26
+ PyAPI_FUNC(int) PyCodec_Register(
27
+ PyObject *search_function
28
+ );
29
+
30
+ /* Unregister a codec search function and clear the registry's cache.
31
+ If the search function is not registered, do nothing.
32
+ Return 0 on success. Raise an exception and return -1 on error. */
33
+
34
+ PyAPI_FUNC(int) PyCodec_Unregister(
35
+ PyObject *search_function
36
+ );
37
+
38
+ /* Codec registry lookup API.
39
+
40
+ Looks up the given encoding and returns a CodecInfo object with
41
+ function attributes which implement the different aspects of
42
+ processing the encoding.
43
+
44
+ The encoding string is looked up converted to all lower-case
45
+ characters. This makes encodings looked up through this mechanism
46
+ effectively case-insensitive.
47
+
48
+ If no codec is found, a KeyError is set and NULL returned.
49
+
50
+ As side effect, this tries to load the encodings package, if not
51
+ yet done. This is part of the lazy load strategy for the encodings
52
+ package.
53
+
54
+ */
55
+
56
+ #ifndef Py_LIMITED_API
57
+ PyAPI_FUNC(PyObject *) _PyCodec_Lookup(
58
+ const char *encoding
59
+ );
60
+
61
+ PyAPI_FUNC(int) _PyCodec_Forget(
62
+ const char *encoding
63
+ );
64
+ #endif
65
+
66
+ /* Codec registry encoding check API.
67
+
68
+ Returns 1/0 depending on whether there is a registered codec for
69
+ the given encoding.
70
+
71
+ */
72
+
73
+ PyAPI_FUNC(int) PyCodec_KnownEncoding(
74
+ const char *encoding
75
+ );
76
+
77
+ /* Generic codec based encoding API.
78
+
79
+ object is passed through the encoder function found for the given
80
+ encoding using the error handling method defined by errors. errors
81
+ may be NULL to use the default method defined for the codec.
82
+
83
+ Raises a LookupError in case no encoder can be found.
84
+
85
+ */
86
+
87
+ PyAPI_FUNC(PyObject *) PyCodec_Encode(
88
+ PyObject *object,
89
+ const char *encoding,
90
+ const char *errors
91
+ );
92
+
93
+ /* Generic codec based decoding API.
94
+
95
+ object is passed through the decoder function found for the given
96
+ encoding using the error handling method defined by errors. errors
97
+ may be NULL to use the default method defined for the codec.
98
+
99
+ Raises a LookupError in case no encoder can be found.
100
+
101
+ */
102
+
103
+ PyAPI_FUNC(PyObject *) PyCodec_Decode(
104
+ PyObject *object,
105
+ const char *encoding,
106
+ const char *errors
107
+ );
108
+
109
+ #ifndef Py_LIMITED_API
110
+ /* Text codec specific encoding and decoding API.
111
+
112
+ Checks the encoding against a list of codecs which do not
113
+ implement a str<->bytes encoding before attempting the
114
+ operation.
115
+
116
+ Please note that these APIs are internal and should not
117
+ be used in Python C extensions.
118
+
119
+ XXX (ncoghlan): should we make these, or something like them, public
120
+ in Python 3.5+?
121
+
122
+ */
123
+ PyAPI_FUNC(PyObject *) _PyCodec_LookupTextEncoding(
124
+ const char *encoding,
125
+ const char *alternate_command
126
+ );
127
+
128
+ PyAPI_FUNC(PyObject *) _PyCodec_EncodeText(
129
+ PyObject *object,
130
+ const char *encoding,
131
+ const char *errors
132
+ );
133
+
134
+ PyAPI_FUNC(PyObject *) _PyCodec_DecodeText(
135
+ PyObject *object,
136
+ const char *encoding,
137
+ const char *errors
138
+ );
139
+
140
+ /* These two aren't actually text encoding specific, but _io.TextIOWrapper
141
+ * is the only current API consumer.
142
+ */
143
+ PyAPI_FUNC(PyObject *) _PyCodecInfo_GetIncrementalDecoder(
144
+ PyObject *codec_info,
145
+ const char *errors
146
+ );
147
+
148
+ PyAPI_FUNC(PyObject *) _PyCodecInfo_GetIncrementalEncoder(
149
+ PyObject *codec_info,
150
+ const char *errors
151
+ );
152
+ #endif
153
+
154
+
155
+
156
+ /* --- Codec Lookup APIs --------------------------------------------------
157
+
158
+ All APIs return a codec object with incremented refcount and are
159
+ based on _PyCodec_Lookup(). The same comments w/r to the encoding
160
+ name also apply to these APIs.
161
+
162
+ */
163
+
164
+ /* Get an encoder function for the given encoding. */
165
+
166
+ PyAPI_FUNC(PyObject *) PyCodec_Encoder(
167
+ const char *encoding
168
+ );
169
+
170
+ /* Get a decoder function for the given encoding. */
171
+
172
+ PyAPI_FUNC(PyObject *) PyCodec_Decoder(
173
+ const char *encoding
174
+ );
175
+
176
+ /* Get an IncrementalEncoder object for the given encoding. */
177
+
178
+ PyAPI_FUNC(PyObject *) PyCodec_IncrementalEncoder(
179
+ const char *encoding,
180
+ const char *errors
181
+ );
182
+
183
+ /* Get an IncrementalDecoder object function for the given encoding. */
184
+
185
+ PyAPI_FUNC(PyObject *) PyCodec_IncrementalDecoder(
186
+ const char *encoding,
187
+ const char *errors
188
+ );
189
+
190
+ /* Get a StreamReader factory function for the given encoding. */
191
+
192
+ PyAPI_FUNC(PyObject *) PyCodec_StreamReader(
193
+ const char *encoding,
194
+ PyObject *stream,
195
+ const char *errors
196
+ );
197
+
198
+ /* Get a StreamWriter factory function for the given encoding. */
199
+
200
+ PyAPI_FUNC(PyObject *) PyCodec_StreamWriter(
201
+ const char *encoding,
202
+ PyObject *stream,
203
+ const char *errors
204
+ );
205
+
206
+ /* Unicode encoding error handling callback registry API */
207
+
208
+ /* Register the error handling callback function error under the given
209
+ name. This function will be called by the codec when it encounters
210
+ unencodable characters/undecodable bytes and doesn't know the
211
+ callback name, when name is specified as the error parameter
212
+ in the call to the encode/decode function.
213
+ Return 0 on success, -1 on error */
214
+ PyAPI_FUNC(int) PyCodec_RegisterError(const char *name, PyObject *error);
215
+
216
+ /* Lookup the error handling callback function registered under the given
217
+ name. As a special case NULL can be passed, in which case
218
+ the error handling callback for "strict" will be returned. */
219
+ PyAPI_FUNC(PyObject *) PyCodec_LookupError(const char *name);
220
+
221
+ /* raise exc as an exception */
222
+ PyAPI_FUNC(PyObject *) PyCodec_StrictErrors(PyObject *exc);
223
+
224
+ /* ignore the unicode error, skipping the faulty input */
225
+ PyAPI_FUNC(PyObject *) PyCodec_IgnoreErrors(PyObject *exc);
226
+
227
+ /* replace the unicode encode error with ? or U+FFFD */
228
+ PyAPI_FUNC(PyObject *) PyCodec_ReplaceErrors(PyObject *exc);
229
+
230
+ /* replace the unicode encode error with XML character references */
231
+ PyAPI_FUNC(PyObject *) PyCodec_XMLCharRefReplaceErrors(PyObject *exc);
232
+
233
+ /* replace the unicode encode error with backslash escapes (\x, \u and \U) */
234
+ PyAPI_FUNC(PyObject *) PyCodec_BackslashReplaceErrors(PyObject *exc);
235
+
236
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
237
+ /* replace the unicode encode error with backslash escapes (\N, \x, \u and \U) */
238
+ PyAPI_FUNC(PyObject *) PyCodec_NameReplaceErrors(PyObject *exc);
239
+ #endif
240
+
241
+ #ifndef Py_LIMITED_API
242
+ PyAPI_DATA(const char *) Py_hexdigits;
243
+ #endif
244
+
245
+ #ifdef __cplusplus
246
+ }
247
+ #endif
248
+ #endif /* !Py_CODECREGISTRY_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/compile.h ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_COMPILE_H
2
+ #define Py_COMPILE_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ /* These definitions must match corresponding definitions in graminit.h. */
8
+ #define Py_single_input 256
9
+ #define Py_file_input 257
10
+ #define Py_eval_input 258
11
+ #define Py_func_type_input 345
12
+
13
+ /* This doesn't need to match anything */
14
+ #define Py_fstring_input 800
15
+
16
+ #ifndef Py_LIMITED_API
17
+ # define Py_CPYTHON_COMPILE_H
18
+ # include "cpython/compile.h"
19
+ # undef Py_CPYTHON_COMPILE_H
20
+ #endif
21
+
22
+ #ifdef __cplusplus
23
+ }
24
+ #endif
25
+ #endif /* !Py_COMPILE_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/complexobject.h ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Complex number structure */
2
+
3
+ #ifndef Py_COMPLEXOBJECT_H
4
+ #define Py_COMPLEXOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ /* Complex object interface */
10
+
11
+ PyAPI_DATA(PyTypeObject) PyComplex_Type;
12
+
13
+ #define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type)
14
+ #define PyComplex_CheckExact(op) Py_IS_TYPE(op, &PyComplex_Type)
15
+
16
+ PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
17
+
18
+ PyAPI_FUNC(double) PyComplex_RealAsDouble(PyObject *op);
19
+ PyAPI_FUNC(double) PyComplex_ImagAsDouble(PyObject *op);
20
+
21
+ #ifndef Py_LIMITED_API
22
+ # define Py_CPYTHON_COMPLEXOBJECT_H
23
+ # include "cpython/complexobject.h"
24
+ # undef Py_CPYTHON_COMPLEXOBJECT_H
25
+ #endif
26
+
27
+ #ifdef __cplusplus
28
+ }
29
+ #endif
30
+ #endif /* !Py_COMPLEXOBJECT_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/abstract.h ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_ABSTRACTOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* === Object Protocol ================================================== */
6
+
7
+ #ifdef PY_SSIZE_T_CLEAN
8
+ # define _PyObject_CallMethodId _PyObject_CallMethodId_SizeT
9
+ #endif
10
+
11
+ /* Convert keyword arguments from the FASTCALL (stack: C array, kwnames: tuple)
12
+ format to a Python dictionary ("kwargs" dict).
13
+
14
+ The type of kwnames keys is not checked. The final function getting
15
+ arguments is responsible to check if all keys are strings, for example using
16
+ PyArg_ParseTupleAndKeywords() or PyArg_ValidateKeywordArguments().
17
+
18
+ Duplicate keys are merged using the last value. If duplicate keys must raise
19
+ an exception, the caller is responsible to implement an explicit keys on
20
+ kwnames. */
21
+ PyAPI_FUNC(PyObject *) _PyStack_AsDict(
22
+ PyObject *const *values,
23
+ PyObject *kwnames);
24
+
25
+ /* Suggested size (number of positional arguments) for arrays of PyObject*
26
+ allocated on a C stack to avoid allocating memory on the heap memory. Such
27
+ array is used to pass positional arguments to call functions of the
28
+ PyObject_Vectorcall() family.
29
+
30
+ The size is chosen to not abuse the C stack and so limit the risk of stack
31
+ overflow. The size is also chosen to allow using the small stack for most
32
+ function calls of the Python standard library. On 64-bit CPU, it allocates
33
+ 40 bytes on the stack. */
34
+ #define _PY_FASTCALL_SMALL_STACK 5
35
+
36
+ PyAPI_FUNC(PyObject *) _Py_CheckFunctionResult(
37
+ PyThreadState *tstate,
38
+ PyObject *callable,
39
+ PyObject *result,
40
+ const char *where);
41
+
42
+ /* === Vectorcall protocol (PEP 590) ============================= */
43
+
44
+ /* Call callable using tp_call. Arguments are like PyObject_Vectorcall()
45
+ or PyObject_FastCallDict() (both forms are supported),
46
+ except that nargs is plainly the number of arguments without flags. */
47
+ PyAPI_FUNC(PyObject *) _PyObject_MakeTpCall(
48
+ PyThreadState *tstate,
49
+ PyObject *callable,
50
+ PyObject *const *args, Py_ssize_t nargs,
51
+ PyObject *keywords);
52
+
53
+ #define PY_VECTORCALL_ARGUMENTS_OFFSET \
54
+ (_Py_STATIC_CAST(size_t, 1) << (8 * sizeof(size_t) - 1))
55
+
56
+ static inline Py_ssize_t
57
+ PyVectorcall_NARGS(size_t n)
58
+ {
59
+ return n & ~PY_VECTORCALL_ARGUMENTS_OFFSET;
60
+ }
61
+
62
+ PyAPI_FUNC(vectorcallfunc) PyVectorcall_Function(PyObject *callable);
63
+
64
+ PyAPI_FUNC(PyObject *) PyObject_Vectorcall(
65
+ PyObject *callable,
66
+ PyObject *const *args,
67
+ size_t nargsf,
68
+ PyObject *kwnames);
69
+
70
+ // Backwards compatibility aliases for API that was provisional in Python 3.8
71
+ #define _PyObject_Vectorcall PyObject_Vectorcall
72
+ #define _PyObject_VectorcallMethod PyObject_VectorcallMethod
73
+ #define _PyObject_FastCallDict PyObject_VectorcallDict
74
+ #define _PyVectorcall_Function PyVectorcall_Function
75
+ #define _PyObject_CallOneArg PyObject_CallOneArg
76
+ #define _PyObject_CallMethodNoArgs PyObject_CallMethodNoArgs
77
+ #define _PyObject_CallMethodOneArg PyObject_CallMethodOneArg
78
+
79
+ /* Same as PyObject_Vectorcall except that keyword arguments are passed as
80
+ dict, which may be NULL if there are no keyword arguments. */
81
+ PyAPI_FUNC(PyObject *) PyObject_VectorcallDict(
82
+ PyObject *callable,
83
+ PyObject *const *args,
84
+ size_t nargsf,
85
+ PyObject *kwargs);
86
+
87
+ /* Call "callable" (which must support vectorcall) with positional arguments
88
+ "tuple" and keyword arguments "dict". "dict" may also be NULL */
89
+ PyAPI_FUNC(PyObject *) PyVectorcall_Call(PyObject *callable, PyObject *tuple, PyObject *dict);
90
+
91
+ // Same as PyObject_Vectorcall(), except without keyword arguments
92
+ PyAPI_FUNC(PyObject *) _PyObject_FastCall(
93
+ PyObject *func,
94
+ PyObject *const *args,
95
+ Py_ssize_t nargs);
96
+
97
+ PyAPI_FUNC(PyObject *) PyObject_CallOneArg(PyObject *func, PyObject *arg);
98
+
99
+ PyAPI_FUNC(PyObject *) PyObject_VectorcallMethod(
100
+ PyObject *name, PyObject *const *args,
101
+ size_t nargsf, PyObject *kwnames);
102
+
103
+ static inline PyObject *
104
+ PyObject_CallMethodNoArgs(PyObject *self, PyObject *name)
105
+ {
106
+ size_t nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET;
107
+ return PyObject_VectorcallMethod(name, &self, nargsf, _Py_NULL);
108
+ }
109
+
110
+ static inline PyObject *
111
+ PyObject_CallMethodOneArg(PyObject *self, PyObject *name, PyObject *arg)
112
+ {
113
+ PyObject *args[2] = {self, arg};
114
+ size_t nargsf = 2 | PY_VECTORCALL_ARGUMENTS_OFFSET;
115
+ assert(arg != NULL);
116
+ return PyObject_VectorcallMethod(name, args, nargsf, _Py_NULL);
117
+ }
118
+
119
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethod(PyObject *obj,
120
+ PyObject *name,
121
+ const char *format, ...);
122
+
123
+ /* Like PyObject_CallMethod(), but expect a _Py_Identifier*
124
+ as the method name. */
125
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethodId(PyObject *obj,
126
+ _Py_Identifier *name,
127
+ const char *format, ...);
128
+
129
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethodId_SizeT(PyObject *obj,
130
+ _Py_Identifier *name,
131
+ const char *format,
132
+ ...);
133
+
134
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethodIdObjArgs(
135
+ PyObject *obj,
136
+ _Py_Identifier *name,
137
+ ...);
138
+
139
+ static inline PyObject *
140
+ _PyObject_VectorcallMethodId(
141
+ _Py_Identifier *name, PyObject *const *args,
142
+ size_t nargsf, PyObject *kwnames)
143
+ {
144
+ PyObject *oname = _PyUnicode_FromId(name); /* borrowed */
145
+ if (!oname) {
146
+ return _Py_NULL;
147
+ }
148
+ return PyObject_VectorcallMethod(oname, args, nargsf, kwnames);
149
+ }
150
+
151
+ static inline PyObject *
152
+ _PyObject_CallMethodIdNoArgs(PyObject *self, _Py_Identifier *name)
153
+ {
154
+ size_t nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET;
155
+ return _PyObject_VectorcallMethodId(name, &self, nargsf, _Py_NULL);
156
+ }
157
+
158
+ static inline PyObject *
159
+ _PyObject_CallMethodIdOneArg(PyObject *self, _Py_Identifier *name, PyObject *arg)
160
+ {
161
+ PyObject *args[2] = {self, arg};
162
+ size_t nargsf = 2 | PY_VECTORCALL_ARGUMENTS_OFFSET;
163
+ assert(arg != NULL);
164
+ return _PyObject_VectorcallMethodId(name, args, nargsf, _Py_NULL);
165
+ }
166
+
167
+ PyAPI_FUNC(int) _PyObject_HasLen(PyObject *o);
168
+
169
+ /* Guess the size of object 'o' using len(o) or o.__length_hint__().
170
+ If neither of those return a non-negative value, then return the default
171
+ value. If one of the calls fails, this function returns -1. */
172
+ PyAPI_FUNC(Py_ssize_t) PyObject_LengthHint(PyObject *o, Py_ssize_t);
173
+
174
+ /* === Sequence protocol ================================================ */
175
+
176
+ /* Assume tp_as_sequence and sq_item exist and that 'i' does not
177
+ need to be corrected for a negative index. */
178
+ #define PySequence_ITEM(o, i)\
179
+ ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
180
+
181
+ #define PY_ITERSEARCH_COUNT 1
182
+ #define PY_ITERSEARCH_INDEX 2
183
+ #define PY_ITERSEARCH_CONTAINS 3
184
+
185
+ /* Iterate over seq.
186
+
187
+ Result depends on the operation:
188
+
189
+ PY_ITERSEARCH_COUNT: return # of times obj appears in seq; -1 if
190
+ error.
191
+ PY_ITERSEARCH_INDEX: return 0-based index of first occurrence of
192
+ obj in seq; set ValueError and return -1 if none found;
193
+ also return -1 on error.
194
+ PY_ITERSEARCH_CONTAINS: return 1 if obj in seq, else 0; -1 on
195
+ error. */
196
+ PyAPI_FUNC(Py_ssize_t) _PySequence_IterSearch(PyObject *seq,
197
+ PyObject *obj, int operation);
198
+
199
+ /* === Mapping protocol ================================================= */
200
+
201
+ PyAPI_FUNC(int) _PyObject_RealIsInstance(PyObject *inst, PyObject *cls);
202
+
203
+ PyAPI_FUNC(int) _PyObject_RealIsSubclass(PyObject *derived, PyObject *cls);
204
+
205
+ PyAPI_FUNC(char *const *) _PySequence_BytesToCharpArray(PyObject* self);
206
+
207
+ PyAPI_FUNC(void) _Py_FreeCharPArray(char *const array[]);
208
+
209
+ /* For internal use by buffer API functions */
210
+ PyAPI_FUNC(void) _Py_add_one_to_index_F(int nd, Py_ssize_t *index,
211
+ const Py_ssize_t *shape);
212
+ PyAPI_FUNC(void) _Py_add_one_to_index_C(int nd, Py_ssize_t *index,
213
+ const Py_ssize_t *shape);
214
+
215
+ /* Convert Python int to Py_ssize_t. Do nothing if the argument is None. */
216
+ PyAPI_FUNC(int) _Py_convert_optional_to_ssize_t(PyObject *, void *);
217
+
218
+ /* Same as PyNumber_Index but can return an instance of a subclass of int. */
219
+ PyAPI_FUNC(PyObject *) _PyNumber_Index(PyObject *o);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/bytearrayobject.h ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_BYTEARRAYOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* Object layout */
6
+ typedef struct {
7
+ PyObject_VAR_HEAD
8
+ Py_ssize_t ob_alloc; /* How many bytes allocated in ob_bytes */
9
+ char *ob_bytes; /* Physical backing buffer */
10
+ char *ob_start; /* Logical start inside ob_bytes */
11
+ Py_ssize_t ob_exports; /* How many buffer exports */
12
+ } PyByteArrayObject;
13
+
14
+ PyAPI_DATA(char) _PyByteArray_empty_string[];
15
+
16
+ /* Macros and static inline functions, trading safety for speed */
17
+ #define _PyByteArray_CAST(op) \
18
+ (assert(PyByteArray_Check(op)), _Py_CAST(PyByteArrayObject*, op))
19
+
20
+ static inline char* PyByteArray_AS_STRING(PyObject *op)
21
+ {
22
+ PyByteArrayObject *self = _PyByteArray_CAST(op);
23
+ if (Py_SIZE(self)) {
24
+ return self->ob_start;
25
+ }
26
+ return _PyByteArray_empty_string;
27
+ }
28
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
29
+ # define PyByteArray_AS_STRING(self) PyByteArray_AS_STRING(_PyObject_CAST(self))
30
+ #endif
31
+
32
+ static inline Py_ssize_t PyByteArray_GET_SIZE(PyObject *op) {
33
+ PyByteArrayObject *self = _PyByteArray_CAST(op);
34
+ return Py_SIZE(self);
35
+ }
36
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
37
+ # define PyByteArray_GET_SIZE(self) PyByteArray_GET_SIZE(_PyObject_CAST(self))
38
+ #endif
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/bytesobject.h ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_BYTESOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef struct {
6
+ PyObject_VAR_HEAD
7
+ Py_DEPRECATED(3.11) Py_hash_t ob_shash;
8
+ char ob_sval[1];
9
+
10
+ /* Invariants:
11
+ * ob_sval contains space for 'ob_size+1' elements.
12
+ * ob_sval[ob_size] == 0.
13
+ * ob_shash is the hash of the byte string or -1 if not computed yet.
14
+ */
15
+ } PyBytesObject;
16
+
17
+ PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t);
18
+ PyAPI_FUNC(PyObject*) _PyBytes_FormatEx(
19
+ const char *format,
20
+ Py_ssize_t format_len,
21
+ PyObject *args,
22
+ int use_bytearray);
23
+ PyAPI_FUNC(PyObject*) _PyBytes_FromHex(
24
+ PyObject *string,
25
+ int use_bytearray);
26
+
27
+ /* Helper for PyBytes_DecodeEscape that detects invalid escape chars. */
28
+ PyAPI_FUNC(PyObject *) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
29
+ const char *, const char **);
30
+
31
+ /* Macros and static inline functions, trading safety for speed */
32
+ #define _PyBytes_CAST(op) \
33
+ (assert(PyBytes_Check(op)), _Py_CAST(PyBytesObject*, op))
34
+
35
+ static inline char* PyBytes_AS_STRING(PyObject *op)
36
+ {
37
+ return _PyBytes_CAST(op)->ob_sval;
38
+ }
39
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
40
+ # define PyBytes_AS_STRING(op) PyBytes_AS_STRING(_PyObject_CAST(op))
41
+ #endif
42
+
43
+ static inline Py_ssize_t PyBytes_GET_SIZE(PyObject *op) {
44
+ PyBytesObject *self = _PyBytes_CAST(op);
45
+ return Py_SIZE(self);
46
+ }
47
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
48
+ # define PyBytes_GET_SIZE(self) PyBytes_GET_SIZE(_PyObject_CAST(self))
49
+ #endif
50
+
51
+ /* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
52
+ x must be an iterable object. */
53
+ PyAPI_FUNC(PyObject *) _PyBytes_Join(PyObject *sep, PyObject *x);
54
+
55
+
56
+ /* The _PyBytesWriter structure is big: it contains an embedded "stack buffer".
57
+ A _PyBytesWriter variable must be declared at the end of variables in a
58
+ function to optimize the memory allocation on the stack. */
59
+ typedef struct {
60
+ /* bytes, bytearray or NULL (when the small buffer is used) */
61
+ PyObject *buffer;
62
+
63
+ /* Number of allocated size. */
64
+ Py_ssize_t allocated;
65
+
66
+ /* Minimum number of allocated bytes,
67
+ incremented by _PyBytesWriter_Prepare() */
68
+ Py_ssize_t min_size;
69
+
70
+ /* If non-zero, use a bytearray instead of a bytes object for buffer. */
71
+ int use_bytearray;
72
+
73
+ /* If non-zero, overallocate the buffer (default: 0).
74
+ This flag must be zero if use_bytearray is non-zero. */
75
+ int overallocate;
76
+
77
+ /* Stack buffer */
78
+ int use_small_buffer;
79
+ char small_buffer[512];
80
+ } _PyBytesWriter;
81
+
82
+ /* Initialize a bytes writer
83
+
84
+ By default, the overallocation is disabled. Set the overallocate attribute
85
+ to control the allocation of the buffer. */
86
+ PyAPI_FUNC(void) _PyBytesWriter_Init(_PyBytesWriter *writer);
87
+
88
+ /* Get the buffer content and reset the writer.
89
+ Return a bytes object, or a bytearray object if use_bytearray is non-zero.
90
+ Raise an exception and return NULL on error. */
91
+ PyAPI_FUNC(PyObject *) _PyBytesWriter_Finish(_PyBytesWriter *writer,
92
+ void *str);
93
+
94
+ /* Deallocate memory of a writer (clear its internal buffer). */
95
+ PyAPI_FUNC(void) _PyBytesWriter_Dealloc(_PyBytesWriter *writer);
96
+
97
+ /* Allocate the buffer to write size bytes.
98
+ Return the pointer to the beginning of buffer data.
99
+ Raise an exception and return NULL on error. */
100
+ PyAPI_FUNC(void*) _PyBytesWriter_Alloc(_PyBytesWriter *writer,
101
+ Py_ssize_t size);
102
+
103
+ /* Ensure that the buffer is large enough to write *size* bytes.
104
+ Add size to the writer minimum size (min_size attribute).
105
+
106
+ str is the current pointer inside the buffer.
107
+ Return the updated current pointer inside the buffer.
108
+ Raise an exception and return NULL on error. */
109
+ PyAPI_FUNC(void*) _PyBytesWriter_Prepare(_PyBytesWriter *writer,
110
+ void *str,
111
+ Py_ssize_t size);
112
+
113
+ /* Resize the buffer to make it larger.
114
+ The new buffer may be larger than size bytes because of overallocation.
115
+ Return the updated current pointer inside the buffer.
116
+ Raise an exception and return NULL on error.
117
+
118
+ Note: size must be greater than the number of allocated bytes in the writer.
119
+
120
+ This function doesn't use the writer minimum size (min_size attribute).
121
+
122
+ See also _PyBytesWriter_Prepare().
123
+ */
124
+ PyAPI_FUNC(void*) _PyBytesWriter_Resize(_PyBytesWriter *writer,
125
+ void *str,
126
+ Py_ssize_t size);
127
+
128
+ /* Write bytes.
129
+ Raise an exception and return NULL on error. */
130
+ PyAPI_FUNC(void*) _PyBytesWriter_WriteBytes(_PyBytesWriter *writer,
131
+ void *str,
132
+ const void *bytes,
133
+ Py_ssize_t size);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/cellobject.h ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Cell object interface */
2
+
3
+ #ifndef Py_LIMITED_API
4
+ #ifndef Py_CELLOBJECT_H
5
+ #define Py_CELLOBJECT_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ typedef struct {
11
+ PyObject_HEAD
12
+ /* Content of the cell or NULL when empty */
13
+ PyObject *ob_ref;
14
+ } PyCellObject;
15
+
16
+ PyAPI_DATA(PyTypeObject) PyCell_Type;
17
+
18
+ #define PyCell_Check(op) Py_IS_TYPE(op, &PyCell_Type)
19
+
20
+ PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);
21
+ PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);
22
+ PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);
23
+
24
+ #define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
25
+ #define PyCell_SET(op, v) _Py_RVALUE(((PyCellObject *)(op))->ob_ref = (v))
26
+
27
+ #ifdef __cplusplus
28
+ }
29
+ #endif
30
+ #endif /* !Py_TUPLEOBJECT_H */
31
+ #endif /* Py_LIMITED_API */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/ceval.h ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_CEVAL_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
6
+ PyAPI_DATA(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
7
+ PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
8
+ PyAPI_FUNC(int) _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
9
+
10
+ /* Helper to look up a builtin object */
11
+ PyAPI_FUNC(PyObject *) _PyEval_GetBuiltin(PyObject *);
12
+ PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *);
13
+ /* Look at the current frame's (if any) code's co_flags, and turn on
14
+ the corresponding compiler flags in cf->cf_flags. Return 1 if any
15
+ flag was set, else return 0. */
16
+ PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
17
+
18
+ PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc);
19
+
20
+ PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
21
+ PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
22
+
23
+ PyAPI_FUNC(Py_ssize_t) _PyEval_RequestCodeExtraIndex(freefunc);
24
+
25
+ PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *);
26
+ PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/classobject.h ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Former class object interface -- now only bound methods are here */
2
+
3
+ /* Revealing some structures (not for general use) */
4
+
5
+ #ifndef Py_LIMITED_API
6
+ #ifndef Py_CLASSOBJECT_H
7
+ #define Py_CLASSOBJECT_H
8
+ #ifdef __cplusplus
9
+ extern "C" {
10
+ #endif
11
+
12
+ typedef struct {
13
+ PyObject_HEAD
14
+ PyObject *im_func; /* The callable object implementing the method */
15
+ PyObject *im_self; /* The instance it is bound to */
16
+ PyObject *im_weakreflist; /* List of weak references */
17
+ vectorcallfunc vectorcall;
18
+ } PyMethodObject;
19
+
20
+ PyAPI_DATA(PyTypeObject) PyMethod_Type;
21
+
22
+ #define PyMethod_Check(op) Py_IS_TYPE(op, &PyMethod_Type)
23
+
24
+ PyAPI_FUNC(PyObject *) PyMethod_New(PyObject *, PyObject *);
25
+
26
+ PyAPI_FUNC(PyObject *) PyMethod_Function(PyObject *);
27
+ PyAPI_FUNC(PyObject *) PyMethod_Self(PyObject *);
28
+
29
+ /* Macros for direct access to these values. Type checks are *not*
30
+ done, so use with care. */
31
+ #define PyMethod_GET_FUNCTION(meth) \
32
+ (((PyMethodObject *)meth) -> im_func)
33
+ #define PyMethod_GET_SELF(meth) \
34
+ (((PyMethodObject *)meth) -> im_self)
35
+
36
+ typedef struct {
37
+ PyObject_HEAD
38
+ PyObject *func;
39
+ } PyInstanceMethodObject;
40
+
41
+ PyAPI_DATA(PyTypeObject) PyInstanceMethod_Type;
42
+
43
+ #define PyInstanceMethod_Check(op) Py_IS_TYPE(op, &PyInstanceMethod_Type)
44
+
45
+ PyAPI_FUNC(PyObject *) PyInstanceMethod_New(PyObject *);
46
+ PyAPI_FUNC(PyObject *) PyInstanceMethod_Function(PyObject *);
47
+
48
+ /* Macros for direct access to these values. Type checks are *not*
49
+ done, so use with care. */
50
+ #define PyInstanceMethod_GET_FUNCTION(meth) \
51
+ (((PyInstanceMethodObject *)meth) -> func)
52
+
53
+ #ifdef __cplusplus
54
+ }
55
+ #endif
56
+ #endif // !Py_CLASSOBJECT_H
57
+ #endif // !Py_LIMITED_API
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/code.h ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Definitions for bytecode */
2
+
3
+ #ifndef Py_LIMITED_API
4
+ #ifndef Py_CODE_H
5
+ #define Py_CODE_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ /* Each instruction in a code object is a fixed-width value,
11
+ * currently 2 bytes: 1-byte opcode + 1-byte oparg. The EXTENDED_ARG
12
+ * opcode allows for larger values but the current limit is 3 uses
13
+ * of EXTENDED_ARG (see Python/compile.c), for a maximum
14
+ * 32-bit value. This aligns with the note in Python/compile.c
15
+ * (compiler_addop_i_line) indicating that the max oparg value is
16
+ * 2**32 - 1, rather than INT_MAX.
17
+ */
18
+
19
+ typedef uint16_t _Py_CODEUNIT;
20
+
21
+ #ifdef WORDS_BIGENDIAN
22
+ # define _Py_OPCODE(word) ((word) >> 8)
23
+ # define _Py_OPARG(word) ((word) & 255)
24
+ # define _Py_MAKECODEUNIT(opcode, oparg) (((opcode)<<8)|(oparg))
25
+ #else
26
+ # define _Py_OPCODE(word) ((word) & 255)
27
+ # define _Py_OPARG(word) ((word) >> 8)
28
+ # define _Py_MAKECODEUNIT(opcode, oparg) ((opcode)|((oparg)<<8))
29
+ #endif
30
+
31
+ // Use "unsigned char" instead of "uint8_t" here to avoid illegal aliasing:
32
+ #define _Py_SET_OPCODE(word, opcode) (((unsigned char *)&(word))[0] = (opcode))
33
+
34
+ // To avoid repeating ourselves in deepfreeze.py, all PyCodeObject members are
35
+ // defined in this macro:
36
+ #define _PyCode_DEF(SIZE) { \
37
+ PyObject_VAR_HEAD \
38
+ \
39
+ /* Note only the following fields are used in hash and/or comparisons \
40
+ * \
41
+ * - co_name \
42
+ * - co_argcount \
43
+ * - co_posonlyargcount \
44
+ * - co_kwonlyargcount \
45
+ * - co_nlocals \
46
+ * - co_stacksize \
47
+ * - co_flags \
48
+ * - co_firstlineno \
49
+ * - co_consts \
50
+ * - co_names \
51
+ * - co_localsplusnames \
52
+ * This is done to preserve the name and line number for tracebacks \
53
+ * and debuggers; otherwise, constant de-duplication would collapse \
54
+ * identical functions/lambdas defined on different lines. \
55
+ */ \
56
+ \
57
+ /* These fields are set with provided values on new code objects. */ \
58
+ \
59
+ /* The hottest fields (in the eval loop) are grouped here at the top. */ \
60
+ PyObject *co_consts; /* list (constants used) */ \
61
+ PyObject *co_names; /* list of strings (names used) */ \
62
+ PyObject *co_exceptiontable; /* Byte string encoding exception handling \
63
+ table */ \
64
+ int co_flags; /* CO_..., see below */ \
65
+ short co_warmup; /* Warmup counter for quickening */ \
66
+ short _co_linearray_entry_size; /* Size of each entry in _co_linearray */ \
67
+ \
68
+ /* The rest are not so impactful on performance. */ \
69
+ int co_argcount; /* #arguments, except *args */ \
70
+ int co_posonlyargcount; /* #positional only arguments */ \
71
+ int co_kwonlyargcount; /* #keyword only arguments */ \
72
+ int co_stacksize; /* #entries needed for evaluation stack */ \
73
+ int co_firstlineno; /* first source line number */ \
74
+ \
75
+ /* redundant values (derived from co_localsplusnames and \
76
+ co_localspluskinds) */ \
77
+ int co_nlocalsplus; /* number of local + cell + free variables \
78
+ */ \
79
+ int co_nlocals; /* number of local variables */ \
80
+ int co_nplaincellvars; /* number of non-arg cell variables */ \
81
+ int co_ncellvars; /* total number of cell variables */ \
82
+ int co_nfreevars; /* number of free variables */ \
83
+ \
84
+ PyObject *co_localsplusnames; /* tuple mapping offsets to names */ \
85
+ PyObject *co_localspluskinds; /* Bytes mapping to local kinds (one byte \
86
+ per variable) */ \
87
+ PyObject *co_filename; /* unicode (where it was loaded from) */ \
88
+ PyObject *co_name; /* unicode (name, for reference) */ \
89
+ PyObject *co_qualname; /* unicode (qualname, for reference) */ \
90
+ PyObject *co_linetable; /* bytes object that holds location info */ \
91
+ PyObject *co_weakreflist; /* to support weakrefs to code objects */ \
92
+ PyObject *_co_code; /* cached co_code object/attribute */ \
93
+ char *_co_linearray; /* array of line offsets */ \
94
+ int _co_firsttraceable; /* index of first traceable instruction */ \
95
+ /* Scratch space for extra data relating to the code object. \
96
+ Type is a void* to keep the format private in codeobject.c to force \
97
+ people to go through the proper APIs. */ \
98
+ void *co_extra; \
99
+ char co_code_adaptive[(SIZE)]; \
100
+ }
101
+
102
+ /* Bytecode object */
103
+ struct PyCodeObject _PyCode_DEF(1);
104
+
105
+ /* Masks for co_flags above */
106
+ #define CO_OPTIMIZED 0x0001
107
+ #define CO_NEWLOCALS 0x0002
108
+ #define CO_VARARGS 0x0004
109
+ #define CO_VARKEYWORDS 0x0008
110
+ #define CO_NESTED 0x0010
111
+ #define CO_GENERATOR 0x0020
112
+
113
+ /* The CO_COROUTINE flag is set for coroutine functions (defined with
114
+ ``async def`` keywords) */
115
+ #define CO_COROUTINE 0x0080
116
+ #define CO_ITERABLE_COROUTINE 0x0100
117
+ #define CO_ASYNC_GENERATOR 0x0200
118
+
119
+ /* bpo-39562: These constant values are changed in Python 3.9
120
+ to prevent collision with compiler flags. CO_FUTURE_ and PyCF_
121
+ constants must be kept unique. PyCF_ constants can use bits from
122
+ 0x0100 to 0x10000. CO_FUTURE_ constants use bits starting at 0x20000. */
123
+ #define CO_FUTURE_DIVISION 0x20000
124
+ #define CO_FUTURE_ABSOLUTE_IMPORT 0x40000 /* do absolute imports by default */
125
+ #define CO_FUTURE_WITH_STATEMENT 0x80000
126
+ #define CO_FUTURE_PRINT_FUNCTION 0x100000
127
+ #define CO_FUTURE_UNICODE_LITERALS 0x200000
128
+
129
+ #define CO_FUTURE_BARRY_AS_BDFL 0x400000
130
+ #define CO_FUTURE_GENERATOR_STOP 0x800000
131
+ #define CO_FUTURE_ANNOTATIONS 0x1000000
132
+
133
+ /* This should be defined if a future statement modifies the syntax.
134
+ For example, when a keyword is added.
135
+ */
136
+ #define PY_PARSER_REQUIRES_FUTURE_KEYWORD
137
+
138
+ #define CO_MAXBLOCKS 20 /* Max static block nesting within a function */
139
+
140
+ PyAPI_DATA(PyTypeObject) PyCode_Type;
141
+
142
+ #define PyCode_Check(op) Py_IS_TYPE(op, &PyCode_Type)
143
+ #define PyCode_GetNumFree(op) ((op)->co_nfreevars)
144
+ #define _PyCode_CODE(CO) ((_Py_CODEUNIT *)(CO)->co_code_adaptive)
145
+ #define _PyCode_NBYTES(CO) (Py_SIZE(CO) * (Py_ssize_t)sizeof(_Py_CODEUNIT))
146
+
147
+ /* Public interface */
148
+ PyAPI_FUNC(PyCodeObject *) PyCode_New(
149
+ int, int, int, int, int, PyObject *, PyObject *,
150
+ PyObject *, PyObject *, PyObject *, PyObject *,
151
+ PyObject *, PyObject *, PyObject *, int, PyObject *,
152
+ PyObject *);
153
+
154
+ PyAPI_FUNC(PyCodeObject *) PyCode_NewWithPosOnlyArgs(
155
+ int, int, int, int, int, int, PyObject *, PyObject *,
156
+ PyObject *, PyObject *, PyObject *, PyObject *,
157
+ PyObject *, PyObject *, PyObject *, int, PyObject *,
158
+ PyObject *);
159
+ /* same as struct above */
160
+
161
+ /* Creates a new empty code object with the specified source location. */
162
+ PyAPI_FUNC(PyCodeObject *)
163
+ PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno);
164
+
165
+ /* Return the line number associated with the specified bytecode index
166
+ in this code object. If you just need the line number of a frame,
167
+ use PyFrame_GetLineNumber() instead. */
168
+ PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
169
+
170
+ PyAPI_FUNC(int) PyCode_Addr2Location(PyCodeObject *, int, int *, int *, int *, int *);
171
+
172
+ /* for internal use only */
173
+ struct _opaque {
174
+ int computed_line;
175
+ const uint8_t *lo_next;
176
+ const uint8_t *limit;
177
+ };
178
+
179
+ typedef struct _line_offsets {
180
+ int ar_start;
181
+ int ar_end;
182
+ int ar_line;
183
+ struct _opaque opaque;
184
+ } PyCodeAddressRange;
185
+
186
+ /* Update *bounds to describe the first and one-past-the-last instructions in the
187
+ same line as lasti. Return the number of that line.
188
+ */
189
+ PyAPI_FUNC(int) _PyCode_CheckLineNumber(int lasti, PyCodeAddressRange *bounds);
190
+
191
+ /* Create a comparable key used to compare constants taking in account the
192
+ * object type. It is used to make sure types are not coerced (e.g., float and
193
+ * complex) _and_ to distinguish 0.0 from -0.0 e.g. on IEEE platforms
194
+ *
195
+ * Return (type(obj), obj, ...): a tuple with variable size (at least 2 items)
196
+ * depending on the type and the value. The type is the first item to not
197
+ * compare bytes and str which can raise a BytesWarning exception. */
198
+ PyAPI_FUNC(PyObject*) _PyCode_ConstantKey(PyObject *obj);
199
+
200
+ PyAPI_FUNC(PyObject*) PyCode_Optimize(PyObject *code, PyObject* consts,
201
+ PyObject *names, PyObject *lnotab);
202
+
203
+
204
+ PyAPI_FUNC(int) _PyCode_GetExtra(PyObject *code, Py_ssize_t index,
205
+ void **extra);
206
+ PyAPI_FUNC(int) _PyCode_SetExtra(PyObject *code, Py_ssize_t index,
207
+ void *extra);
208
+
209
+ /* Equivalent to getattr(code, 'co_code') in Python.
210
+ Returns a strong reference to a bytes object. */
211
+ PyAPI_FUNC(PyObject *) PyCode_GetCode(PyCodeObject *code);
212
+ /* Equivalent to getattr(code, 'co_varnames') in Python. */
213
+ PyAPI_FUNC(PyObject *) PyCode_GetVarnames(PyCodeObject *code);
214
+ /* Equivalent to getattr(code, 'co_cellvars') in Python. */
215
+ PyAPI_FUNC(PyObject *) PyCode_GetCellvars(PyCodeObject *code);
216
+ /* Equivalent to getattr(code, 'co_freevars') in Python. */
217
+ PyAPI_FUNC(PyObject *) PyCode_GetFreevars(PyCodeObject *code);
218
+
219
+ typedef enum _PyCodeLocationInfoKind {
220
+ /* short forms are 0 to 9 */
221
+ PY_CODE_LOCATION_INFO_SHORT0 = 0,
222
+ /* one lineforms are 10 to 12 */
223
+ PY_CODE_LOCATION_INFO_ONE_LINE0 = 10,
224
+ PY_CODE_LOCATION_INFO_ONE_LINE1 = 11,
225
+ PY_CODE_LOCATION_INFO_ONE_LINE2 = 12,
226
+
227
+ PY_CODE_LOCATION_INFO_NO_COLUMNS = 13,
228
+ PY_CODE_LOCATION_INFO_LONG = 14,
229
+ PY_CODE_LOCATION_INFO_NONE = 15
230
+ } _PyCodeLocationInfoKind;
231
+
232
+ #ifdef __cplusplus
233
+ }
234
+ #endif
235
+ #endif // !Py_CODE_H
236
+ #endif // !Py_LIMITED_API
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/compile.h ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_COMPILE_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* Public interface */
6
+ #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
7
+ CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
8
+ CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL | \
9
+ CO_FUTURE_GENERATOR_STOP | CO_FUTURE_ANNOTATIONS)
10
+ #define PyCF_MASK_OBSOLETE (CO_NESTED)
11
+
12
+ /* bpo-39562: CO_FUTURE_ and PyCF_ constants must be kept unique.
13
+ PyCF_ constants can use bits from 0x0100 to 0x10000.
14
+ CO_FUTURE_ constants use bits starting at 0x20000. */
15
+ #define PyCF_SOURCE_IS_UTF8 0x0100
16
+ #define PyCF_DONT_IMPLY_DEDENT 0x0200
17
+ #define PyCF_ONLY_AST 0x0400
18
+ #define PyCF_IGNORE_COOKIE 0x0800
19
+ #define PyCF_TYPE_COMMENTS 0x1000
20
+ #define PyCF_ALLOW_TOP_LEVEL_AWAIT 0x2000
21
+ #define PyCF_ALLOW_INCOMPLETE_INPUT 0x4000
22
+ #define PyCF_COMPILE_MASK (PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT | \
23
+ PyCF_TYPE_COMMENTS | PyCF_DONT_IMPLY_DEDENT | \
24
+ PyCF_ALLOW_INCOMPLETE_INPUT)
25
+
26
+ typedef struct {
27
+ int cf_flags; /* bitmask of CO_xxx flags relevant to future */
28
+ int cf_feature_version; /* minor Python version (PyCF_ONLY_AST) */
29
+ } PyCompilerFlags;
30
+
31
+ #define _PyCompilerFlags_INIT \
32
+ (PyCompilerFlags){.cf_flags = 0, .cf_feature_version = PY_MINOR_VERSION}
33
+
34
+ /* Future feature support */
35
+
36
+ typedef struct {
37
+ int ff_features; /* flags set by future statements */
38
+ int ff_lineno; /* line number of last future statement */
39
+ } PyFutureFeatures;
40
+
41
+ #define FUTURE_NESTED_SCOPES "nested_scopes"
42
+ #define FUTURE_GENERATORS "generators"
43
+ #define FUTURE_DIVISION "division"
44
+ #define FUTURE_ABSOLUTE_IMPORT "absolute_import"
45
+ #define FUTURE_WITH_STATEMENT "with_statement"
46
+ #define FUTURE_PRINT_FUNCTION "print_function"
47
+ #define FUTURE_UNICODE_LITERALS "unicode_literals"
48
+ #define FUTURE_BARRY_AS_BDFL "barry_as_FLUFL"
49
+ #define FUTURE_GENERATOR_STOP "generator_stop"
50
+ #define FUTURE_ANNOTATIONS "annotations"
51
+
52
+ #define PY_INVALID_STACK_EFFECT INT_MAX
53
+ PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
54
+ PyAPI_FUNC(int) PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/complexobject.h ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_COMPLEXOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef struct {
6
+ double real;
7
+ double imag;
8
+ } Py_complex;
9
+
10
+ /* Operations on complex numbers from complexmodule.c */
11
+
12
+ PyAPI_FUNC(Py_complex) _Py_c_sum(Py_complex, Py_complex);
13
+ PyAPI_FUNC(Py_complex) _Py_c_diff(Py_complex, Py_complex);
14
+ PyAPI_FUNC(Py_complex) _Py_c_neg(Py_complex);
15
+ PyAPI_FUNC(Py_complex) _Py_c_prod(Py_complex, Py_complex);
16
+ PyAPI_FUNC(Py_complex) _Py_c_quot(Py_complex, Py_complex);
17
+ PyAPI_FUNC(Py_complex) _Py_c_pow(Py_complex, Py_complex);
18
+ PyAPI_FUNC(double) _Py_c_abs(Py_complex);
19
+
20
+ /* Complex object interface */
21
+
22
+ /*
23
+ PyComplexObject represents a complex number with double-precision
24
+ real and imaginary parts.
25
+ */
26
+ typedef struct {
27
+ PyObject_HEAD
28
+ Py_complex cval;
29
+ } PyComplexObject;
30
+
31
+ PyAPI_FUNC(PyObject *) PyComplex_FromCComplex(Py_complex);
32
+
33
+ PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op);
34
+
35
+ #ifdef Py_BUILD_CORE
36
+ /* Format the object based on the format_spec, as defined in PEP 3101
37
+ (Advanced String Formatting). */
38
+ extern int _PyComplex_FormatAdvancedWriter(
39
+ _PyUnicodeWriter *writer,
40
+ PyObject *obj,
41
+ PyObject *format_spec,
42
+ Py_ssize_t start,
43
+ Py_ssize_t end);
44
+ #endif // Py_BUILD_CORE
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/context.h ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_LIMITED_API
2
+ #ifndef Py_CONTEXT_H
3
+ #define Py_CONTEXT_H
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ PyAPI_DATA(PyTypeObject) PyContext_Type;
9
+ typedef struct _pycontextobject PyContext;
10
+
11
+ PyAPI_DATA(PyTypeObject) PyContextVar_Type;
12
+ typedef struct _pycontextvarobject PyContextVar;
13
+
14
+ PyAPI_DATA(PyTypeObject) PyContextToken_Type;
15
+ typedef struct _pycontexttokenobject PyContextToken;
16
+
17
+
18
+ #define PyContext_CheckExact(o) Py_IS_TYPE(o, &PyContext_Type)
19
+ #define PyContextVar_CheckExact(o) Py_IS_TYPE(o, &PyContextVar_Type)
20
+ #define PyContextToken_CheckExact(o) Py_IS_TYPE(o, &PyContextToken_Type)
21
+
22
+
23
+ PyAPI_FUNC(PyObject *) PyContext_New(void);
24
+ PyAPI_FUNC(PyObject *) PyContext_Copy(PyObject *);
25
+ PyAPI_FUNC(PyObject *) PyContext_CopyCurrent(void);
26
+
27
+ PyAPI_FUNC(int) PyContext_Enter(PyObject *);
28
+ PyAPI_FUNC(int) PyContext_Exit(PyObject *);
29
+
30
+
31
+ /* Create a new context variable.
32
+
33
+ default_value can be NULL.
34
+ */
35
+ PyAPI_FUNC(PyObject *) PyContextVar_New(
36
+ const char *name, PyObject *default_value);
37
+
38
+
39
+ /* Get a value for the variable.
40
+
41
+ Returns -1 if an error occurred during lookup.
42
+
43
+ Returns 0 if value either was or was not found.
44
+
45
+ If value was found, *value will point to it.
46
+ If not, it will point to:
47
+
48
+ - default_value, if not NULL;
49
+ - the default value of "var", if not NULL;
50
+ - NULL.
51
+
52
+ '*value' will be a new ref, if not NULL.
53
+ */
54
+ PyAPI_FUNC(int) PyContextVar_Get(
55
+ PyObject *var, PyObject *default_value, PyObject **value);
56
+
57
+
58
+ /* Set a new value for the variable.
59
+ Returns NULL if an error occurs.
60
+ */
61
+ PyAPI_FUNC(PyObject *) PyContextVar_Set(PyObject *var, PyObject *value);
62
+
63
+
64
+ /* Reset a variable to its previous value.
65
+ Returns 0 on success, -1 on error.
66
+ */
67
+ PyAPI_FUNC(int) PyContextVar_Reset(PyObject *var, PyObject *token);
68
+
69
+
70
+ /* This method is exposed only for CPython tests. Don not use it. */
71
+ PyAPI_FUNC(PyObject *) _PyContext_NewHamtForTests(void);
72
+
73
+
74
+ #ifdef __cplusplus
75
+ }
76
+ #endif
77
+ #endif /* !Py_CONTEXT_H */
78
+ #endif /* !Py_LIMITED_API */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/descrobject.h ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_DESCROBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef PyObject *(*wrapperfunc)(PyObject *self, PyObject *args,
6
+ void *wrapped);
7
+
8
+ typedef PyObject *(*wrapperfunc_kwds)(PyObject *self, PyObject *args,
9
+ void *wrapped, PyObject *kwds);
10
+
11
+ struct wrapperbase {
12
+ const char *name;
13
+ int offset;
14
+ void *function;
15
+ wrapperfunc wrapper;
16
+ const char *doc;
17
+ int flags;
18
+ PyObject *name_strobj;
19
+ };
20
+
21
+ /* Flags for above struct */
22
+ #define PyWrapperFlag_KEYWORDS 1 /* wrapper function takes keyword args */
23
+
24
+ /* Various kinds of descriptor objects */
25
+
26
+ typedef struct {
27
+ PyObject_HEAD
28
+ PyTypeObject *d_type;
29
+ PyObject *d_name;
30
+ PyObject *d_qualname;
31
+ } PyDescrObject;
32
+
33
+ #define PyDescr_COMMON PyDescrObject d_common
34
+
35
+ #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
36
+ #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
37
+
38
+ typedef struct {
39
+ PyDescr_COMMON;
40
+ PyMethodDef *d_method;
41
+ vectorcallfunc vectorcall;
42
+ } PyMethodDescrObject;
43
+
44
+ typedef struct {
45
+ PyDescr_COMMON;
46
+ PyMemberDef *d_member;
47
+ } PyMemberDescrObject;
48
+
49
+ typedef struct {
50
+ PyDescr_COMMON;
51
+ PyGetSetDef *d_getset;
52
+ } PyGetSetDescrObject;
53
+
54
+ typedef struct {
55
+ PyDescr_COMMON;
56
+ struct wrapperbase *d_base;
57
+ void *d_wrapped; /* This can be any function pointer */
58
+ } PyWrapperDescrObject;
59
+
60
+ PyAPI_DATA(PyTypeObject) _PyMethodWrapper_Type;
61
+
62
+ PyAPI_FUNC(PyObject *) PyDescr_NewWrapper(PyTypeObject *,
63
+ struct wrapperbase *, void *);
64
+ PyAPI_FUNC(int) PyDescr_IsData(PyObject *);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/dictobject.h ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_DICTOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef struct _dictkeysobject PyDictKeysObject;
6
+ typedef struct _dictvalues PyDictValues;
7
+
8
+ /* The ma_values pointer is NULL for a combined table
9
+ * or points to an array of PyObject* for a split table
10
+ */
11
+ typedef struct {
12
+ PyObject_HEAD
13
+
14
+ /* Number of items in the dictionary */
15
+ Py_ssize_t ma_used;
16
+
17
+ /* Dictionary version: globally unique, value change each time
18
+ the dictionary is modified */
19
+ uint64_t ma_version_tag;
20
+
21
+ PyDictKeysObject *ma_keys;
22
+
23
+ /* If ma_values is NULL, the table is "combined": keys and values
24
+ are stored in ma_keys.
25
+
26
+ If ma_values is not NULL, the table is split:
27
+ keys are stored in ma_keys and values are stored in ma_values */
28
+ PyDictValues *ma_values;
29
+ } PyDictObject;
30
+
31
+ PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,
32
+ Py_hash_t hash);
33
+ PyAPI_FUNC(PyObject *) _PyDict_GetItemWithError(PyObject *dp, PyObject *key);
34
+ PyAPI_FUNC(PyObject *) _PyDict_GetItemIdWithError(PyObject *dp,
35
+ _Py_Identifier *key);
36
+ PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *);
37
+ PyAPI_FUNC(PyObject *) PyDict_SetDefault(
38
+ PyObject *mp, PyObject *key, PyObject *defaultobj);
39
+ PyAPI_FUNC(int) _PyDict_SetItem_KnownHash(PyObject *mp, PyObject *key,
40
+ PyObject *item, Py_hash_t hash);
41
+ PyAPI_FUNC(int) _PyDict_DelItem_KnownHash(PyObject *mp, PyObject *key,
42
+ Py_hash_t hash);
43
+ PyAPI_FUNC(int) _PyDict_DelItemIf(PyObject *mp, PyObject *key,
44
+ int (*predicate)(PyObject *value));
45
+ PyAPI_FUNC(int) _PyDict_Next(
46
+ PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value, Py_hash_t *hash);
47
+
48
+ /* Get the number of items of a dictionary. */
49
+ #define PyDict_GET_SIZE(mp) (assert(PyDict_Check(mp)),((PyDictObject *)mp)->ma_used)
50
+ PyAPI_FUNC(int) _PyDict_Contains_KnownHash(PyObject *, PyObject *, Py_hash_t);
51
+ PyAPI_FUNC(int) _PyDict_ContainsId(PyObject *, _Py_Identifier *);
52
+ PyAPI_FUNC(PyObject *) _PyDict_NewPresized(Py_ssize_t minused);
53
+ PyAPI_FUNC(void) _PyDict_MaybeUntrack(PyObject *mp);
54
+ PyAPI_FUNC(int) _PyDict_HasOnlyStringKeys(PyObject *mp);
55
+ PyAPI_FUNC(Py_ssize_t) _PyDict_SizeOf(PyDictObject *);
56
+ PyAPI_FUNC(PyObject *) _PyDict_Pop(PyObject *, PyObject *, PyObject *);
57
+ #define _PyDict_HasSplitTable(d) ((d)->ma_values != NULL)
58
+
59
+ /* Like PyDict_Merge, but override can be 0, 1 or 2. If override is 0,
60
+ the first occurrence of a key wins, if override is 1, the last occurrence
61
+ of a key wins, if override is 2, a KeyError with conflicting key as
62
+ argument is raised.
63
+ */
64
+ PyAPI_FUNC(int) _PyDict_MergeEx(PyObject *mp, PyObject *other, int override);
65
+ PyAPI_FUNC(int) _PyDict_SetItemId(PyObject *dp, _Py_Identifier *key, PyObject *item);
66
+
67
+ PyAPI_FUNC(int) _PyDict_DelItemId(PyObject *mp, _Py_Identifier *key);
68
+ PyAPI_FUNC(void) _PyDict_DebugMallocStats(FILE *out);
69
+
70
+ /* _PyDictView */
71
+
72
+ typedef struct {
73
+ PyObject_HEAD
74
+ PyDictObject *dv_dict;
75
+ } _PyDictViewObject;
76
+
77
+ PyAPI_FUNC(PyObject *) _PyDictView_New(PyObject *, PyTypeObject *);
78
+ PyAPI_FUNC(PyObject *) _PyDictView_Intersect(PyObject* self, PyObject *other);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/fileobject.h ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_FILEOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
6
+ PyAPI_FUNC(char *) _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*);
7
+
8
+ /* The std printer acts as a preliminary sys.stderr until the new io
9
+ infrastructure is in place. */
10
+ PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int);
11
+ PyAPI_DATA(PyTypeObject) PyStdPrinter_Type;
12
+
13
+ typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *);
14
+
15
+ PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path);
16
+ PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path);
17
+ PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData);
18
+
19
+ PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/fileutils.h ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_FILEUTILS_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ // Used by _testcapi which must not use the internal C API
6
+ PyAPI_FUNC(FILE*) _Py_fopen_obj(
7
+ PyObject *path,
8
+ const char *mode);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/floatobject.h ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_FLOATOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef struct {
6
+ PyObject_HEAD
7
+ double ob_fval;
8
+ } PyFloatObject;
9
+
10
+ // Macro version of PyFloat_AsDouble() trading safety for speed.
11
+ // It doesn't check if op is a double object.
12
+ #define PyFloat_AS_DOUBLE(op) (((PyFloatObject *)(op))->ob_fval)
13
+
14
+
15
+ PyAPI_FUNC(int) PyFloat_Pack2(double x, char *p, int le);
16
+ PyAPI_FUNC(int) PyFloat_Pack4(double x, char *p, int le);
17
+ PyAPI_FUNC(int) PyFloat_Pack8(double x, char *p, int le);
18
+
19
+ PyAPI_FUNC(double) PyFloat_Unpack2(const char *p, int le);
20
+ PyAPI_FUNC(double) PyFloat_Unpack4(const char *p, int le);
21
+ PyAPI_FUNC(double) PyFloat_Unpack8(const char *p, int le);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/frameobject.h ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Frame object interface */
2
+
3
+ #ifndef Py_CPYTHON_FRAMEOBJECT_H
4
+ # error "this header file must not be included directly"
5
+ #endif
6
+
7
+ /* Standard object interface */
8
+
9
+ PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
10
+ PyObject *, PyObject *);
11
+
12
+ /* The rest of the interface is specific for frame objects */
13
+
14
+ /* Conversions between "fast locals" and locals in dictionary */
15
+
16
+ PyAPI_FUNC(void) PyFrame_LocalsToFast(PyFrameObject *, int);
17
+
18
+ /* -- Caveat emptor --
19
+ * The concept of entry frames is an implementation detail of the CPython
20
+ * interpreter. This API is considered unstable and is provided for the
21
+ * convenience of debuggers, profilers and state-inspecting tools. Notice that
22
+ * this API can be changed in future minor versions if the underlying frame
23
+ * mechanism change or the concept of an 'entry frame' or its semantics becomes
24
+ * obsolete or outdated. */
25
+
26
+ PyAPI_FUNC(int) _PyFrame_IsEntryFrame(PyFrameObject *frame);
27
+
28
+ PyAPI_FUNC(int) PyFrame_FastToLocalsWithError(PyFrameObject *f);
29
+ PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/funcobject.h ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Function object interface */
2
+
3
+ #ifndef Py_LIMITED_API
4
+ #ifndef Py_FUNCOBJECT_H
5
+ #define Py_FUNCOBJECT_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+
11
+ #define COMMON_FIELDS(PREFIX) \
12
+ PyObject *PREFIX ## globals; \
13
+ PyObject *PREFIX ## builtins; \
14
+ PyObject *PREFIX ## name; \
15
+ PyObject *PREFIX ## qualname; \
16
+ PyObject *PREFIX ## code; /* A code object, the __code__ attribute */ \
17
+ PyObject *PREFIX ## defaults; /* NULL or a tuple */ \
18
+ PyObject *PREFIX ## kwdefaults; /* NULL or a dict */ \
19
+ PyObject *PREFIX ## closure; /* NULL or a tuple of cell objects */
20
+
21
+ typedef struct {
22
+ COMMON_FIELDS(fc_)
23
+ } PyFrameConstructor;
24
+
25
+ /* Function objects and code objects should not be confused with each other:
26
+ *
27
+ * Function objects are created by the execution of the 'def' statement.
28
+ * They reference a code object in their __code__ attribute, which is a
29
+ * purely syntactic object, i.e. nothing more than a compiled version of some
30
+ * source code lines. There is one code object per source code "fragment",
31
+ * but each code object can be referenced by zero or many function objects
32
+ * depending only on how many times the 'def' statement in the source was
33
+ * executed so far.
34
+ */
35
+
36
+ typedef struct {
37
+ PyObject_HEAD
38
+ COMMON_FIELDS(func_)
39
+ PyObject *func_doc; /* The __doc__ attribute, can be anything */
40
+ PyObject *func_dict; /* The __dict__ attribute, a dict or NULL */
41
+ PyObject *func_weakreflist; /* List of weak references */
42
+ PyObject *func_module; /* The __module__ attribute, can be anything */
43
+ PyObject *func_annotations; /* Annotations, a dict or NULL */
44
+ vectorcallfunc vectorcall;
45
+ /* Version number for use by specializer.
46
+ * Can set to non-zero when we want to specialize.
47
+ * Will be set to zero if any of these change:
48
+ * defaults
49
+ * kwdefaults (only if the object changes, not the contents of the dict)
50
+ * code
51
+ * annotations */
52
+ uint32_t func_version;
53
+
54
+ /* Invariant:
55
+ * func_closure contains the bindings for func_code->co_freevars, so
56
+ * PyTuple_Size(func_closure) == PyCode_GetNumFree(func_code)
57
+ * (func_closure may be NULL if PyCode_GetNumFree(func_code) == 0).
58
+ */
59
+ } PyFunctionObject;
60
+
61
+ PyAPI_DATA(PyTypeObject) PyFunction_Type;
62
+
63
+ #define PyFunction_Check(op) Py_IS_TYPE(op, &PyFunction_Type)
64
+
65
+ PyAPI_FUNC(PyObject *) PyFunction_New(PyObject *, PyObject *);
66
+ PyAPI_FUNC(PyObject *) PyFunction_NewWithQualName(PyObject *, PyObject *, PyObject *);
67
+ PyAPI_FUNC(PyObject *) PyFunction_GetCode(PyObject *);
68
+ PyAPI_FUNC(PyObject *) PyFunction_GetGlobals(PyObject *);
69
+ PyAPI_FUNC(PyObject *) PyFunction_GetModule(PyObject *);
70
+ PyAPI_FUNC(PyObject *) PyFunction_GetDefaults(PyObject *);
71
+ PyAPI_FUNC(int) PyFunction_SetDefaults(PyObject *, PyObject *);
72
+ PyAPI_FUNC(PyObject *) PyFunction_GetKwDefaults(PyObject *);
73
+ PyAPI_FUNC(int) PyFunction_SetKwDefaults(PyObject *, PyObject *);
74
+ PyAPI_FUNC(PyObject *) PyFunction_GetClosure(PyObject *);
75
+ PyAPI_FUNC(int) PyFunction_SetClosure(PyObject *, PyObject *);
76
+ PyAPI_FUNC(PyObject *) PyFunction_GetAnnotations(PyObject *);
77
+ PyAPI_FUNC(int) PyFunction_SetAnnotations(PyObject *, PyObject *);
78
+
79
+ PyAPI_FUNC(PyObject *) _PyFunction_Vectorcall(
80
+ PyObject *func,
81
+ PyObject *const *stack,
82
+ size_t nargsf,
83
+ PyObject *kwnames);
84
+
85
+ /* Macros for direct access to these values. Type checks are *not*
86
+ done, so use with care. */
87
+ #define PyFunction_GET_CODE(func) \
88
+ (((PyFunctionObject *)func) -> func_code)
89
+ #define PyFunction_GET_GLOBALS(func) \
90
+ (((PyFunctionObject *)func) -> func_globals)
91
+ #define PyFunction_GET_MODULE(func) \
92
+ (((PyFunctionObject *)func) -> func_module)
93
+ #define PyFunction_GET_DEFAULTS(func) \
94
+ (((PyFunctionObject *)func) -> func_defaults)
95
+ #define PyFunction_GET_KW_DEFAULTS(func) \
96
+ (((PyFunctionObject *)func) -> func_kwdefaults)
97
+ #define PyFunction_GET_CLOSURE(func) \
98
+ (((PyFunctionObject *)func) -> func_closure)
99
+ #define PyFunction_GET_ANNOTATIONS(func) \
100
+ (((PyFunctionObject *)func) -> func_annotations)
101
+
102
+ /* The classmethod and staticmethod types lives here, too */
103
+ PyAPI_DATA(PyTypeObject) PyClassMethod_Type;
104
+ PyAPI_DATA(PyTypeObject) PyStaticMethod_Type;
105
+
106
+ PyAPI_FUNC(PyObject *) PyClassMethod_New(PyObject *);
107
+ PyAPI_FUNC(PyObject *) PyStaticMethod_New(PyObject *);
108
+
109
+ #ifdef __cplusplus
110
+ }
111
+ #endif
112
+ #endif /* !Py_FUNCOBJECT_H */
113
+ #endif /* Py_LIMITED_API */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/genobject.h ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Generator object interface */
2
+
3
+ #ifndef Py_LIMITED_API
4
+ #ifndef Py_GENOBJECT_H
5
+ #define Py_GENOBJECT_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ /* --- Generators --------------------------------------------------------- */
11
+
12
+ /* _PyGenObject_HEAD defines the initial segment of generator
13
+ and coroutine objects. */
14
+ #define _PyGenObject_HEAD(prefix) \
15
+ PyObject_HEAD \
16
+ /* The code object backing the generator */ \
17
+ PyCodeObject *prefix##_code; \
18
+ /* List of weak reference. */ \
19
+ PyObject *prefix##_weakreflist; \
20
+ /* Name of the generator. */ \
21
+ PyObject *prefix##_name; \
22
+ /* Qualified name of the generator. */ \
23
+ PyObject *prefix##_qualname; \
24
+ _PyErr_StackItem prefix##_exc_state; \
25
+ PyObject *prefix##_origin_or_finalizer; \
26
+ char prefix##_hooks_inited; \
27
+ char prefix##_closed; \
28
+ char prefix##_running_async; \
29
+ /* The frame */ \
30
+ int8_t prefix##_frame_state; \
31
+ PyObject *prefix##_iframe[1];
32
+
33
+ typedef struct {
34
+ /* The gi_ prefix is intended to remind of generator-iterator. */
35
+ _PyGenObject_HEAD(gi)
36
+ } PyGenObject;
37
+
38
+ PyAPI_DATA(PyTypeObject) PyGen_Type;
39
+
40
+ #define PyGen_Check(op) PyObject_TypeCheck(op, &PyGen_Type)
41
+ #define PyGen_CheckExact(op) Py_IS_TYPE(op, &PyGen_Type)
42
+
43
+ PyAPI_FUNC(PyObject *) PyGen_New(PyFrameObject *);
44
+ PyAPI_FUNC(PyObject *) PyGen_NewWithQualName(PyFrameObject *,
45
+ PyObject *name, PyObject *qualname);
46
+ PyAPI_FUNC(int) _PyGen_SetStopIterationValue(PyObject *);
47
+ PyAPI_FUNC(int) _PyGen_FetchStopIterationValue(PyObject **);
48
+ PyAPI_FUNC(void) _PyGen_Finalize(PyObject *self);
49
+
50
+
51
+ /* --- PyCoroObject ------------------------------------------------------- */
52
+
53
+ typedef struct {
54
+ _PyGenObject_HEAD(cr)
55
+ } PyCoroObject;
56
+
57
+ PyAPI_DATA(PyTypeObject) PyCoro_Type;
58
+ PyAPI_DATA(PyTypeObject) _PyCoroWrapper_Type;
59
+
60
+ #define PyCoro_CheckExact(op) Py_IS_TYPE(op, &PyCoro_Type)
61
+ PyAPI_FUNC(PyObject *) PyCoro_New(PyFrameObject *,
62
+ PyObject *name, PyObject *qualname);
63
+
64
+
65
+ /* --- Asynchronous Generators -------------------------------------------- */
66
+
67
+ typedef struct {
68
+ _PyGenObject_HEAD(ag)
69
+ } PyAsyncGenObject;
70
+
71
+ PyAPI_DATA(PyTypeObject) PyAsyncGen_Type;
72
+ PyAPI_DATA(PyTypeObject) _PyAsyncGenASend_Type;
73
+ PyAPI_DATA(PyTypeObject) _PyAsyncGenWrappedValue_Type;
74
+ PyAPI_DATA(PyTypeObject) _PyAsyncGenAThrow_Type;
75
+
76
+ PyAPI_FUNC(PyObject *) PyAsyncGen_New(PyFrameObject *,
77
+ PyObject *name, PyObject *qualname);
78
+
79
+ #define PyAsyncGen_CheckExact(op) Py_IS_TYPE(op, &PyAsyncGen_Type)
80
+
81
+
82
+ #undef _PyGenObject_HEAD
83
+
84
+ #ifdef __cplusplus
85
+ }
86
+ #endif
87
+ #endif /* !Py_GENOBJECT_H */
88
+ #endif /* Py_LIMITED_API */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/import.h ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_IMPORT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ PyMODINIT_FUNC PyInit__imp(void);
6
+
7
+ PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
8
+
9
+ PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(_Py_Identifier *name);
10
+ PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);
11
+ PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
12
+
13
+ PyAPI_FUNC(void) _PyImport_AcquireLock(void);
14
+ PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
15
+
16
+ PyAPI_FUNC(int) _PyImport_FixupBuiltin(
17
+ PyObject *mod,
18
+ const char *name, /* UTF-8 encoded string */
19
+ PyObject *modules
20
+ );
21
+ PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *,
22
+ PyObject *, PyObject *);
23
+
24
+ struct _inittab {
25
+ const char *name; /* ASCII encoded string */
26
+ PyObject* (*initfunc)(void);
27
+ };
28
+ PyAPI_DATA(struct _inittab *) PyImport_Inittab;
29
+ PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
30
+
31
+ struct _frozen {
32
+ const char *name; /* ASCII encoded string */
33
+ const unsigned char *code;
34
+ int size;
35
+ int is_package;
36
+ PyObject *(*get_code)(void);
37
+ };
38
+
39
+ /* Embedding apps may change this pointer to point to their favorite
40
+ collection of frozen modules: */
41
+
42
+ PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;
43
+
44
+ PyAPI_DATA(PyObject *) _PyImport_GetModuleAttr(PyObject *, PyObject *);
45
+ PyAPI_DATA(PyObject *) _PyImport_GetModuleAttrString(const char *, const char *);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/initconfig.h ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_PYCORECONFIG_H
2
+ #define Py_PYCORECONFIG_H
3
+ #ifndef Py_LIMITED_API
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ /* --- PyStatus ----------------------------------------------- */
9
+
10
+ typedef struct {
11
+ enum {
12
+ _PyStatus_TYPE_OK=0,
13
+ _PyStatus_TYPE_ERROR=1,
14
+ _PyStatus_TYPE_EXIT=2
15
+ } _type;
16
+ const char *func;
17
+ const char *err_msg;
18
+ int exitcode;
19
+ } PyStatus;
20
+
21
+ PyAPI_FUNC(PyStatus) PyStatus_Ok(void);
22
+ PyAPI_FUNC(PyStatus) PyStatus_Error(const char *err_msg);
23
+ PyAPI_FUNC(PyStatus) PyStatus_NoMemory(void);
24
+ PyAPI_FUNC(PyStatus) PyStatus_Exit(int exitcode);
25
+ PyAPI_FUNC(int) PyStatus_IsError(PyStatus err);
26
+ PyAPI_FUNC(int) PyStatus_IsExit(PyStatus err);
27
+ PyAPI_FUNC(int) PyStatus_Exception(PyStatus err);
28
+
29
+ /* --- PyWideStringList ------------------------------------------------ */
30
+
31
+ typedef struct {
32
+ /* If length is greater than zero, items must be non-NULL
33
+ and all items strings must be non-NULL */
34
+ Py_ssize_t length;
35
+ wchar_t **items;
36
+ } PyWideStringList;
37
+
38
+ PyAPI_FUNC(PyStatus) PyWideStringList_Append(PyWideStringList *list,
39
+ const wchar_t *item);
40
+ PyAPI_FUNC(PyStatus) PyWideStringList_Insert(PyWideStringList *list,
41
+ Py_ssize_t index,
42
+ const wchar_t *item);
43
+
44
+
45
+ /* --- PyPreConfig ----------------------------------------------- */
46
+
47
+ typedef struct PyPreConfig {
48
+ int _config_init; /* _PyConfigInitEnum value */
49
+
50
+ /* Parse Py_PreInitializeFromBytesArgs() arguments?
51
+ See PyConfig.parse_argv */
52
+ int parse_argv;
53
+
54
+ /* If greater than 0, enable isolated mode: sys.path contains
55
+ neither the script's directory nor the user's site-packages directory.
56
+
57
+ Set to 1 by the -I command line option. If set to -1 (default), inherit
58
+ Py_IsolatedFlag value. */
59
+ int isolated;
60
+
61
+ /* If greater than 0: use environment variables.
62
+ Set to 0 by -E command line option. If set to -1 (default), it is
63
+ set to !Py_IgnoreEnvironmentFlag. */
64
+ int use_environment;
65
+
66
+ /* Set the LC_CTYPE locale to the user preferred locale? If equals to 0,
67
+ set coerce_c_locale and coerce_c_locale_warn to 0. */
68
+ int configure_locale;
69
+
70
+ /* Coerce the LC_CTYPE locale if it's equal to "C"? (PEP 538)
71
+
72
+ Set to 0 by PYTHONCOERCECLOCALE=0. Set to 1 by PYTHONCOERCECLOCALE=1.
73
+ Set to 2 if the user preferred LC_CTYPE locale is "C".
74
+
75
+ If it is equal to 1, LC_CTYPE locale is read to decide if it should be
76
+ coerced or not (ex: PYTHONCOERCECLOCALE=1). Internally, it is set to 2
77
+ if the LC_CTYPE locale must be coerced.
78
+
79
+ Disable by default (set to 0). Set it to -1 to let Python decide if it
80
+ should be enabled or not. */
81
+ int coerce_c_locale;
82
+
83
+ /* Emit a warning if the LC_CTYPE locale is coerced?
84
+
85
+ Set to 1 by PYTHONCOERCECLOCALE=warn.
86
+
87
+ Disable by default (set to 0). Set it to -1 to let Python decide if it
88
+ should be enabled or not. */
89
+ int coerce_c_locale_warn;
90
+
91
+ #ifdef MS_WINDOWS
92
+ /* If greater than 1, use the "mbcs" encoding instead of the UTF-8
93
+ encoding for the filesystem encoding.
94
+
95
+ Set to 1 if the PYTHONLEGACYWINDOWSFSENCODING environment variable is
96
+ set to a non-empty string. If set to -1 (default), inherit
97
+ Py_LegacyWindowsFSEncodingFlag value.
98
+
99
+ See PEP 529 for more details. */
100
+ int legacy_windows_fs_encoding;
101
+ #endif
102
+
103
+ /* Enable UTF-8 mode? (PEP 540)
104
+
105
+ Disabled by default (equals to 0).
106
+
107
+ Set to 1 by "-X utf8" and "-X utf8=1" command line options.
108
+ Set to 1 by PYTHONUTF8=1 environment variable.
109
+
110
+ Set to 0 by "-X utf8=0" and PYTHONUTF8=0.
111
+
112
+ If equals to -1, it is set to 1 if the LC_CTYPE locale is "C" or
113
+ "POSIX", otherwise it is set to 0. Inherit Py_UTF8Mode value value. */
114
+ int utf8_mode;
115
+
116
+ /* If non-zero, enable the Python Development Mode.
117
+
118
+ Set to 1 by the -X dev command line option. Set by the PYTHONDEVMODE
119
+ environment variable. */
120
+ int dev_mode;
121
+
122
+ /* Memory allocator: PYTHONMALLOC env var.
123
+ See PyMemAllocatorName for valid values. */
124
+ int allocator;
125
+ } PyPreConfig;
126
+
127
+ PyAPI_FUNC(void) PyPreConfig_InitPythonConfig(PyPreConfig *config);
128
+ PyAPI_FUNC(void) PyPreConfig_InitIsolatedConfig(PyPreConfig *config);
129
+
130
+
131
+ /* --- PyConfig ---------------------------------------------- */
132
+
133
+ /* This structure is best documented in the Doc/c-api/init_config.rst file. */
134
+ typedef struct PyConfig {
135
+ int _config_init; /* _PyConfigInitEnum value */
136
+
137
+ int isolated;
138
+ int use_environment;
139
+ int dev_mode;
140
+ int install_signal_handlers;
141
+ int use_hash_seed;
142
+ unsigned long hash_seed;
143
+ int faulthandler;
144
+ int tracemalloc;
145
+ int import_time;
146
+ int code_debug_ranges;
147
+ int show_ref_count;
148
+ int dump_refs;
149
+ wchar_t *dump_refs_file;
150
+ int malloc_stats;
151
+ wchar_t *filesystem_encoding;
152
+ wchar_t *filesystem_errors;
153
+ wchar_t *pycache_prefix;
154
+ int parse_argv;
155
+ PyWideStringList orig_argv;
156
+ PyWideStringList argv;
157
+ PyWideStringList xoptions;
158
+ PyWideStringList warnoptions;
159
+ int site_import;
160
+ int bytes_warning;
161
+ int warn_default_encoding;
162
+ int inspect;
163
+ int interactive;
164
+ int optimization_level;
165
+ int parser_debug;
166
+ int write_bytecode;
167
+ int verbose;
168
+ int quiet;
169
+ int user_site_directory;
170
+ int configure_c_stdio;
171
+ int buffered_stdio;
172
+ wchar_t *stdio_encoding;
173
+ wchar_t *stdio_errors;
174
+ #ifdef MS_WINDOWS
175
+ int legacy_windows_stdio;
176
+ #endif
177
+ wchar_t *check_hash_pycs_mode;
178
+ int use_frozen_modules;
179
+ int safe_path;
180
+
181
+ /* --- Path configuration inputs ------------ */
182
+ int pathconfig_warnings;
183
+ wchar_t *program_name;
184
+ wchar_t *pythonpath_env;
185
+ wchar_t *home;
186
+ wchar_t *platlibdir;
187
+
188
+ /* --- Path configuration outputs ----------- */
189
+ int module_search_paths_set;
190
+ PyWideStringList module_search_paths;
191
+ wchar_t *stdlib_dir;
192
+ wchar_t *executable;
193
+ wchar_t *base_executable;
194
+ wchar_t *prefix;
195
+ wchar_t *base_prefix;
196
+ wchar_t *exec_prefix;
197
+ wchar_t *base_exec_prefix;
198
+
199
+ /* --- Parameter only used by Py_Main() ---------- */
200
+ int skip_source_first_line;
201
+ wchar_t *run_command;
202
+ wchar_t *run_module;
203
+ wchar_t *run_filename;
204
+
205
+ /* --- Private fields ---------------------------- */
206
+
207
+ // Install importlib? If equals to 0, importlib is not initialized at all.
208
+ // Needed by freeze_importlib.
209
+ int _install_importlib;
210
+
211
+ // If equal to 0, stop Python initialization before the "main" phase.
212
+ int _init_main;
213
+
214
+ // If non-zero, disallow threads, subprocesses, and fork.
215
+ // Default: 0.
216
+ int _isolated_interpreter;
217
+
218
+ // If non-zero, we believe we're running from a source tree.
219
+ int _is_python_build;
220
+ } PyConfig;
221
+
222
+ PyAPI_FUNC(void) PyConfig_InitPythonConfig(PyConfig *config);
223
+ PyAPI_FUNC(void) PyConfig_InitIsolatedConfig(PyConfig *config);
224
+ PyAPI_FUNC(void) PyConfig_Clear(PyConfig *);
225
+ PyAPI_FUNC(PyStatus) PyConfig_SetString(
226
+ PyConfig *config,
227
+ wchar_t **config_str,
228
+ const wchar_t *str);
229
+ PyAPI_FUNC(PyStatus) PyConfig_SetBytesString(
230
+ PyConfig *config,
231
+ wchar_t **config_str,
232
+ const char *str);
233
+ PyAPI_FUNC(PyStatus) PyConfig_Read(PyConfig *config);
234
+ PyAPI_FUNC(PyStatus) PyConfig_SetBytesArgv(
235
+ PyConfig *config,
236
+ Py_ssize_t argc,
237
+ char * const *argv);
238
+ PyAPI_FUNC(PyStatus) PyConfig_SetArgv(PyConfig *config,
239
+ Py_ssize_t argc,
240
+ wchar_t * const *argv);
241
+ PyAPI_FUNC(PyStatus) PyConfig_SetWideStringList(PyConfig *config,
242
+ PyWideStringList *list,
243
+ Py_ssize_t length, wchar_t **items);
244
+
245
+
246
+ /* --- Helper functions --------------------------------------- */
247
+
248
+ /* Get the original command line arguments, before Python modified them.
249
+
250
+ See also PyConfig.orig_argv. */
251
+ PyAPI_FUNC(void) Py_GetArgcArgv(int *argc, wchar_t ***argv);
252
+
253
+ #ifdef __cplusplus
254
+ }
255
+ #endif
256
+ #endif /* !Py_LIMITED_API */
257
+ #endif /* !Py_PYCORECONFIG_H */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/listobject.h ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_LISTOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef struct {
6
+ PyObject_VAR_HEAD
7
+ /* Vector of pointers to list elements. list[0] is ob_item[0], etc. */
8
+ PyObject **ob_item;
9
+
10
+ /* ob_item contains space for 'allocated' elements. The number
11
+ * currently in use is ob_size.
12
+ * Invariants:
13
+ * 0 <= ob_size <= allocated
14
+ * len(list) == ob_size
15
+ * ob_item == NULL implies ob_size == allocated == 0
16
+ * list.sort() temporarily sets allocated to -1 to detect mutations.
17
+ *
18
+ * Items must normally not be NULL, except during construction when
19
+ * the list is not yet visible outside the function that builds it.
20
+ */
21
+ Py_ssize_t allocated;
22
+ } PyListObject;
23
+
24
+ PyAPI_FUNC(PyObject *) _PyList_Extend(PyListObject *, PyObject *);
25
+ PyAPI_FUNC(void) _PyList_DebugMallocStats(FILE *out);
26
+
27
+ /* Cast argument to PyListObject* type. */
28
+ #define _PyList_CAST(op) \
29
+ (assert(PyList_Check(op)), _Py_CAST(PyListObject*, (op)))
30
+
31
+ // Macros and static inline functions, trading safety for speed
32
+
33
+ static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) {
34
+ PyListObject *list = _PyList_CAST(op);
35
+ return Py_SIZE(list);
36
+ }
37
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
38
+ # define PyList_GET_SIZE(op) PyList_GET_SIZE(_PyObject_CAST(op))
39
+ #endif
40
+
41
+ #define PyList_GET_ITEM(op, index) (_PyList_CAST(op)->ob_item[index])
42
+
43
+ static inline void
44
+ PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) {
45
+ PyListObject *list = _PyList_CAST(op);
46
+ list->ob_item[index] = value;
47
+ }
48
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
49
+ #define PyList_SET_ITEM(op, index, value) \
50
+ PyList_SET_ITEM(_PyObject_CAST(op), index, _PyObject_CAST(value))
51
+ #endif
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/longintrepr.h ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_LIMITED_API
2
+ #ifndef Py_LONGINTREPR_H
3
+ #define Py_LONGINTREPR_H
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+
9
+ /* This is published for the benefit of "friends" marshal.c and _decimal.c. */
10
+
11
+ /* Parameters of the integer representation. There are two different
12
+ sets of parameters: one set for 30-bit digits, stored in an unsigned 32-bit
13
+ integer type, and one set for 15-bit digits with each digit stored in an
14
+ unsigned short. The value of PYLONG_BITS_IN_DIGIT, defined either at
15
+ configure time or in pyport.h, is used to decide which digit size to use.
16
+
17
+ Type 'digit' should be able to hold 2*PyLong_BASE-1, and type 'twodigits'
18
+ should be an unsigned integer type able to hold all integers up to
19
+ PyLong_BASE*PyLong_BASE-1. x_sub assumes that 'digit' is an unsigned type,
20
+ and that overflow is handled by taking the result modulo 2**N for some N >
21
+ PyLong_SHIFT. The majority of the code doesn't care about the precise
22
+ value of PyLong_SHIFT, but there are some notable exceptions:
23
+
24
+ - PyLong_{As,From}ByteArray require that PyLong_SHIFT be at least 8
25
+
26
+ - long_hash() requires that PyLong_SHIFT is *strictly* less than the number
27
+ of bits in an unsigned long, as do the PyLong <-> long (or unsigned long)
28
+ conversion functions
29
+
30
+ - the Python int <-> size_t/Py_ssize_t conversion functions expect that
31
+ PyLong_SHIFT is strictly less than the number of bits in a size_t
32
+
33
+ - the marshal code currently expects that PyLong_SHIFT is a multiple of 15
34
+
35
+ - NSMALLNEGINTS and NSMALLPOSINTS should be small enough to fit in a single
36
+ digit; with the current values this forces PyLong_SHIFT >= 9
37
+
38
+ The values 15 and 30 should fit all of the above requirements, on any
39
+ platform.
40
+ */
41
+
42
+ #if PYLONG_BITS_IN_DIGIT == 30
43
+ typedef uint32_t digit;
44
+ typedef int32_t sdigit; /* signed variant of digit */
45
+ typedef uint64_t twodigits;
46
+ typedef int64_t stwodigits; /* signed variant of twodigits */
47
+ #define PyLong_SHIFT 30
48
+ #define _PyLong_DECIMAL_SHIFT 9 /* max(e such that 10**e fits in a digit) */
49
+ #define _PyLong_DECIMAL_BASE ((digit)1000000000) /* 10 ** DECIMAL_SHIFT */
50
+ #elif PYLONG_BITS_IN_DIGIT == 15
51
+ typedef unsigned short digit;
52
+ typedef short sdigit; /* signed variant of digit */
53
+ typedef unsigned long twodigits;
54
+ typedef long stwodigits; /* signed variant of twodigits */
55
+ #define PyLong_SHIFT 15
56
+ #define _PyLong_DECIMAL_SHIFT 4 /* max(e such that 10**e fits in a digit) */
57
+ #define _PyLong_DECIMAL_BASE ((digit)10000) /* 10 ** DECIMAL_SHIFT */
58
+ #else
59
+ #error "PYLONG_BITS_IN_DIGIT should be 15 or 30"
60
+ #endif
61
+ #define PyLong_BASE ((digit)1 << PyLong_SHIFT)
62
+ #define PyLong_MASK ((digit)(PyLong_BASE - 1))
63
+
64
+ /* Long integer representation.
65
+ The absolute value of a number is equal to
66
+ SUM(for i=0 through abs(ob_size)-1) ob_digit[i] * 2**(SHIFT*i)
67
+ Negative numbers are represented with ob_size < 0;
68
+ zero is represented by ob_size == 0.
69
+ In a normalized number, ob_digit[abs(ob_size)-1] (the most significant
70
+ digit) is never zero. Also, in all cases, for all valid i,
71
+ 0 <= ob_digit[i] <= MASK.
72
+ The allocation function takes care of allocating extra memory
73
+ so that ob_digit[0] ... ob_digit[abs(ob_size)-1] are actually available.
74
+ We always allocate memory for at least one digit, so accessing ob_digit[0]
75
+ is always safe. However, in the case ob_size == 0, the contents of
76
+ ob_digit[0] may be undefined.
77
+
78
+ CAUTION: Generic code manipulating subtypes of PyVarObject has to
79
+ aware that ints abuse ob_size's sign bit.
80
+ */
81
+
82
+ struct _longobject {
83
+ PyObject_VAR_HEAD
84
+ digit ob_digit[1];
85
+ };
86
+
87
+ PyAPI_FUNC(PyLongObject *) _PyLong_New(Py_ssize_t);
88
+
89
+ /* Return a copy of src. */
90
+ PyAPI_FUNC(PyObject *) _PyLong_Copy(PyLongObject *src);
91
+
92
+ #ifdef __cplusplus
93
+ }
94
+ #endif
95
+ #endif /* !Py_LONGINTREPR_H */
96
+ #endif /* Py_LIMITED_API */
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/longobject.h ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_LONGOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ PyAPI_FUNC(int) _PyLong_AsInt(PyObject *);
6
+
7
+ PyAPI_FUNC(int) _PyLong_UnsignedShort_Converter(PyObject *, void *);
8
+ PyAPI_FUNC(int) _PyLong_UnsignedInt_Converter(PyObject *, void *);
9
+ PyAPI_FUNC(int) _PyLong_UnsignedLong_Converter(PyObject *, void *);
10
+ PyAPI_FUNC(int) _PyLong_UnsignedLongLong_Converter(PyObject *, void *);
11
+ PyAPI_FUNC(int) _PyLong_Size_t_Converter(PyObject *, void *);
12
+
13
+ /* _PyLong_Frexp returns a double x and an exponent e such that the
14
+ true value is approximately equal to x * 2**e. e is >= 0. x is
15
+ 0.0 if and only if the input is 0 (in which case, e and x are both
16
+ zeroes); otherwise, 0.5 <= abs(x) < 1.0. On overflow, which is
17
+ possible if the number of bits doesn't fit into a Py_ssize_t, sets
18
+ OverflowError and returns -1.0 for x, 0 for e. */
19
+ PyAPI_FUNC(double) _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e);
20
+
21
+ PyAPI_FUNC(PyObject *) PyLong_FromUnicodeObject(PyObject *u, int base);
22
+ PyAPI_FUNC(PyObject *) _PyLong_FromBytes(const char *, Py_ssize_t, int);
23
+
24
+ /* _PyLong_Sign. Return 0 if v is 0, -1 if v < 0, +1 if v > 0.
25
+ v must not be NULL, and must be a normalized long.
26
+ There are no error cases.
27
+ */
28
+ PyAPI_FUNC(int) _PyLong_Sign(PyObject *v);
29
+
30
+ /* _PyLong_NumBits. Return the number of bits needed to represent the
31
+ absolute value of a long. For example, this returns 1 for 1 and -1, 2
32
+ for 2 and -2, and 2 for 3 and -3. It returns 0 for 0.
33
+ v must not be NULL, and must be a normalized long.
34
+ (size_t)-1 is returned and OverflowError set if the true result doesn't
35
+ fit in a size_t.
36
+ */
37
+ PyAPI_FUNC(size_t) _PyLong_NumBits(PyObject *v);
38
+
39
+ /* _PyLong_DivmodNear. Given integers a and b, compute the nearest
40
+ integer q to the exact quotient a / b, rounding to the nearest even integer
41
+ in the case of a tie. Return (q, r), where r = a - q*b. The remainder r
42
+ will satisfy abs(r) <= abs(b)/2, with equality possible only if q is
43
+ even.
44
+ */
45
+ PyAPI_FUNC(PyObject *) _PyLong_DivmodNear(PyObject *, PyObject *);
46
+
47
+ /* _PyLong_FromByteArray: View the n unsigned bytes as a binary integer in
48
+ base 256, and return a Python int with the same numeric value.
49
+ If n is 0, the integer is 0. Else:
50
+ If little_endian is 1/true, bytes[n-1] is the MSB and bytes[0] the LSB;
51
+ else (little_endian is 0/false) bytes[0] is the MSB and bytes[n-1] the
52
+ LSB.
53
+ If is_signed is 0/false, view the bytes as a non-negative integer.
54
+ If is_signed is 1/true, view the bytes as a 2's-complement integer,
55
+ non-negative if bit 0x80 of the MSB is clear, negative if set.
56
+ Error returns:
57
+ + Return NULL with the appropriate exception set if there's not
58
+ enough memory to create the Python int.
59
+ */
60
+ PyAPI_FUNC(PyObject *) _PyLong_FromByteArray(
61
+ const unsigned char* bytes, size_t n,
62
+ int little_endian, int is_signed);
63
+
64
+ /* _PyLong_AsByteArray: Convert the least-significant 8*n bits of long
65
+ v to a base-256 integer, stored in array bytes. Normally return 0,
66
+ return -1 on error.
67
+ If little_endian is 1/true, store the MSB at bytes[n-1] and the LSB at
68
+ bytes[0]; else (little_endian is 0/false) store the MSB at bytes[0] and
69
+ the LSB at bytes[n-1].
70
+ If is_signed is 0/false, it's an error if v < 0; else (v >= 0) n bytes
71
+ are filled and there's nothing special about bit 0x80 of the MSB.
72
+ If is_signed is 1/true, bytes is filled with the 2's-complement
73
+ representation of v's value. Bit 0x80 of the MSB is the sign bit.
74
+ Error returns (-1):
75
+ + is_signed is 0 and v < 0. TypeError is set in this case, and bytes
76
+ isn't altered.
77
+ + n isn't big enough to hold the full mathematical value of v. For
78
+ example, if is_signed is 0 and there are more digits in the v than
79
+ fit in n; or if is_signed is 1, v < 0, and n is just 1 bit shy of
80
+ being large enough to hold a sign bit. OverflowError is set in this
81
+ case, but bytes holds the least-significant n bytes of the true value.
82
+ */
83
+ PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
84
+ unsigned char* bytes, size_t n,
85
+ int little_endian, int is_signed);
86
+
87
+ /* _PyLong_Format: Convert the long to a string object with given base,
88
+ appending a base prefix of 0[box] if base is 2, 8 or 16. */
89
+ PyAPI_FUNC(PyObject *) _PyLong_Format(PyObject *obj, int base);
90
+
91
+ /* For use by the gcd function in mathmodule.c */
92
+ PyAPI_FUNC(PyObject *) _PyLong_GCD(PyObject *, PyObject *);
93
+
94
+ PyAPI_FUNC(PyObject *) _PyLong_Rshift(PyObject *, size_t);
95
+ PyAPI_FUNC(PyObject *) _PyLong_Lshift(PyObject *, size_t);
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/methodobject.h ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_METHODOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ // PyCFunctionObject structure
6
+
7
+ typedef struct {
8
+ PyObject_HEAD
9
+ PyMethodDef *m_ml; /* Description of the C function to call */
10
+ PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */
11
+ PyObject *m_module; /* The __module__ attribute, can be anything */
12
+ PyObject *m_weakreflist; /* List of weak references */
13
+ vectorcallfunc vectorcall;
14
+ } PyCFunctionObject;
15
+
16
+ #define _PyCFunctionObject_CAST(func) \
17
+ (assert(PyCFunction_Check(func)), \
18
+ _Py_CAST(PyCFunctionObject*, (func)))
19
+
20
+
21
+ // PyCMethodObject structure
22
+
23
+ typedef struct {
24
+ PyCFunctionObject func;
25
+ PyTypeObject *mm_class; /* Class that defines this method */
26
+ } PyCMethodObject;
27
+
28
+ #define _PyCMethodObject_CAST(func) \
29
+ (assert(PyCMethod_Check(func)), \
30
+ _Py_CAST(PyCMethodObject*, (func)))
31
+
32
+ PyAPI_DATA(PyTypeObject) PyCMethod_Type;
33
+
34
+ #define PyCMethod_CheckExact(op) Py_IS_TYPE(op, &PyCMethod_Type)
35
+ #define PyCMethod_Check(op) PyObject_TypeCheck(op, &PyCMethod_Type)
36
+
37
+
38
+ /* Static inline functions for direct access to these values.
39
+ Type checks are *not* done, so use with care. */
40
+ static inline PyCFunction PyCFunction_GET_FUNCTION(PyObject *func) {
41
+ return _PyCFunctionObject_CAST(func)->m_ml->ml_meth;
42
+ }
43
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
44
+ # define PyCFunction_GET_FUNCTION(func) PyCFunction_GET_FUNCTION(_PyObject_CAST(func))
45
+ #endif
46
+
47
+ static inline PyObject* PyCFunction_GET_SELF(PyObject *func_obj) {
48
+ PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj);
49
+ if (func->m_ml->ml_flags & METH_STATIC) {
50
+ return _Py_NULL;
51
+ }
52
+ return func->m_self;
53
+ }
54
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
55
+ # define PyCFunction_GET_SELF(func) PyCFunction_GET_SELF(_PyObject_CAST(func))
56
+ #endif
57
+
58
+ static inline int PyCFunction_GET_FLAGS(PyObject *func) {
59
+ return _PyCFunctionObject_CAST(func)->m_ml->ml_flags;
60
+ }
61
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
62
+ # define PyCFunction_GET_FLAGS(func) PyCFunction_GET_FLAGS(_PyObject_CAST(func))
63
+ #endif
64
+
65
+ static inline PyTypeObject* PyCFunction_GET_CLASS(PyObject *func_obj) {
66
+ PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj);
67
+ if (func->m_ml->ml_flags & METH_METHOD) {
68
+ return _PyCMethodObject_CAST(func)->mm_class;
69
+ }
70
+ return _Py_NULL;
71
+ }
72
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
73
+ # define PyCFunction_GET_CLASS(func) PyCFunction_GET_CLASS(_PyObject_CAST(func))
74
+ #endif
ComfyUI-Easy-Install-Windows/Helper-CEI-NEXT/ComfyUI-Easy-Install/python_embeded_3.11/include/cpython/modsupport.h ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_MODSUPPORT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier
6
+ to mean Py_ssize_t */
7
+ #ifdef PY_SSIZE_T_CLEAN
8
+ #define _Py_VaBuildStack _Py_VaBuildStack_SizeT
9
+ #else
10
+ PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);
11
+ PyAPI_FUNC(PyObject **) _Py_VaBuildStack_SizeT(
12
+ PyObject **small_stack,
13
+ Py_ssize_t small_stack_len,
14
+ const char *format,
15
+ va_list va,
16
+ Py_ssize_t *p_nargs);
17
+ #endif
18
+
19
+ PyAPI_FUNC(int) _PyArg_UnpackStack(
20
+ PyObject *const *args,
21
+ Py_ssize_t nargs,
22
+ const char *name,
23
+ Py_ssize_t min,
24
+ Py_ssize_t max,
25
+ ...);
26
+
27
+ PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kwargs);
28
+ PyAPI_FUNC(int) _PyArg_NoKwnames(const char *funcname, PyObject *kwnames);
29
+ PyAPI_FUNC(int) _PyArg_NoPositional(const char *funcname, PyObject *args);
30
+ #define _PyArg_NoKeywords(funcname, kwargs) \
31
+ ((kwargs) == NULL || _PyArg_NoKeywords((funcname), (kwargs)))
32
+ #define _PyArg_NoKwnames(funcname, kwnames) \
33
+ ((kwnames) == NULL || _PyArg_NoKwnames((funcname), (kwnames)))
34
+ #define _PyArg_NoPositional(funcname, args) \
35
+ ((args) == NULL || _PyArg_NoPositional((funcname), (args)))
36
+
37
+ PyAPI_FUNC(void) _PyArg_BadArgument(const char *, const char *, const char *, PyObject *);
38
+ PyAPI_FUNC(int) _PyArg_CheckPositional(const char *, Py_ssize_t,
39
+ Py_ssize_t, Py_ssize_t);
40
+ #define _PyArg_CheckPositional(funcname, nargs, min, max) \
41
+ ((!ANY_VARARGS(max) && (min) <= (nargs) && (nargs) <= (max)) \
42
+ || _PyArg_CheckPositional((funcname), (nargs), (min), (max)))
43
+
44
+ PyAPI_FUNC(PyObject **) _Py_VaBuildStack(
45
+ PyObject **small_stack,
46
+ Py_ssize_t small_stack_len,
47
+ const char *format,
48
+ va_list va,
49
+ Py_ssize_t *p_nargs);
50
+
51
+ typedef struct _PyArg_Parser {
52
+ const char *format;
53
+ const char * const *keywords;
54
+ const char *fname;
55
+ const char *custom_msg;
56
+ int pos; /* number of positional-only arguments */
57
+ int min; /* minimal number of arguments */
58
+ int max; /* maximal number of positional arguments */
59
+ PyObject *kwtuple; /* tuple of keyword parameter names */
60
+ struct _PyArg_Parser *next;
61
+ } _PyArg_Parser;
62
+
63
+ #ifdef PY_SSIZE_T_CLEAN
64
+ #define _PyArg_ParseTupleAndKeywordsFast _PyArg_ParseTupleAndKeywordsFast_SizeT
65
+ #define _PyArg_ParseStack _PyArg_ParseStack_SizeT
66
+ #define _PyArg_ParseStackAndKeywords _PyArg_ParseStackAndKeywords_SizeT
67
+ #define _PyArg_VaParseTupleAndKeywordsFast _PyArg_VaParseTupleAndKeywordsFast_SizeT
68
+ #endif
69
+
70
+ PyAPI_FUNC(int) _PyArg_ParseTupleAndKeywordsFast(PyObject *, PyObject *,
71
+ struct _PyArg_Parser *, ...);
72
+ PyAPI_FUNC(int) _PyArg_ParseStack(
73
+ PyObject *const *args,
74
+ Py_ssize_t nargs,
75
+ const char *format,
76
+ ...);
77
+ PyAPI_FUNC(int) _PyArg_ParseStackAndKeywords(
78
+ PyObject *const *args,
79
+ Py_ssize_t nargs,
80
+ PyObject *kwnames,
81
+ struct _PyArg_Parser *,
82
+ ...);
83
+ PyAPI_FUNC(int) _PyArg_VaParseTupleAndKeywordsFast(PyObject *, PyObject *,
84
+ struct _PyArg_Parser *, va_list);
85
+ PyAPI_FUNC(PyObject * const *) _PyArg_UnpackKeywords(
86
+ PyObject *const *args, Py_ssize_t nargs,
87
+ PyObject *kwargs, PyObject *kwnames,
88
+ struct _PyArg_Parser *parser,
89
+ int minpos, int maxpos, int minkw,
90
+ PyObject **buf);
91
+
92
+ PyAPI_FUNC(PyObject * const *) _PyArg_UnpackKeywordsWithVararg(
93
+ PyObject *const *args, Py_ssize_t nargs,
94
+ PyObject *kwargs, PyObject *kwnames,
95
+ struct _PyArg_Parser *parser,
96
+ int minpos, int maxpos, int minkw,
97
+ int vararg, PyObject **buf);
98
+
99
+ #define _PyArg_UnpackKeywords(args, nargs, kwargs, kwnames, parser, minpos, maxpos, minkw, buf) \
100
+ (((minkw) == 0 && (kwargs) == NULL && (kwnames) == NULL && \
101
+ (minpos) <= (nargs) && (nargs) <= (maxpos) && args != NULL) ? (args) : \
102
+ _PyArg_UnpackKeywords((args), (nargs), (kwargs), (kwnames), (parser), \
103
+ (minpos), (maxpos), (minkw), (buf)))
104
+
105
+ PyAPI_FUNC(PyObject *) _PyModule_CreateInitialized(PyModuleDef*, int apiver);
106
+ PyAPI_FUNC(int) _PyModule_Add(PyObject *, const char *, PyObject *);
107
+
108
+ PyAPI_DATA(const char *) _Py_PackageContext;