Nuitka-winsvc 1.8.6__cp312-cp312-win_amd64.whl → 1.9.3__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. {Nuitka_winsvc-1.8.6.dist-info → Nuitka_winsvc-1.9.3.dist-info}/METADATA +1 -1
  2. {Nuitka_winsvc-1.8.6.dist-info → Nuitka_winsvc-1.9.3.dist-info}/RECORD +212 -203
  3. {Nuitka_winsvc-1.8.6.dist-info → Nuitka_winsvc-1.9.3.dist-info}/WHEEL +1 -1
  4. nuitka/BytecodeCaching.py +4 -1
  5. nuitka/HardImportRegistry.py +348 -0
  6. nuitka/MainControl.py +45 -25
  7. nuitka/OptionParsing.py +31 -20
  8. nuitka/Options.py +47 -16
  9. nuitka/Progress.py +32 -2
  10. nuitka/PythonFlavors.py +1 -1
  11. nuitka/PythonVersions.py +61 -0
  12. nuitka/Tracing.py +25 -12
  13. nuitka/TreeXML.py +5 -5
  14. nuitka/Variables.py +15 -24
  15. nuitka/Version.py +16 -6
  16. nuitka/__main__.py +15 -0
  17. nuitka/__past__.py +15 -17
  18. nuitka/build/Backend.scons +44 -35
  19. nuitka/build/CCompilerVersion.scons +10 -9
  20. nuitka/build/Onefile.scons +11 -26
  21. nuitka/build/SconsCaching.py +2 -0
  22. nuitka/build/SconsCompilerSettings.py +72 -22
  23. nuitka/build/SconsHacks.py +1 -0
  24. nuitka/build/SconsInterface.py +5 -0
  25. nuitka/build/SconsSpawn.py +16 -3
  26. nuitka/build/SconsUtils.py +11 -12
  27. nuitka/build/include/nuitka/checksum_tools.h +0 -4
  28. nuitka/build/include/nuitka/compiled_asyncgen.h +1 -1
  29. nuitka/build/include/nuitka/compiled_coroutine.h +1 -1
  30. nuitka/build/include/nuitka/compiled_frame.h +7 -4
  31. nuitka/build/include/nuitka/compiled_function.h +13 -3
  32. nuitka/build/include/nuitka/compiled_generator.h +1 -1
  33. nuitka/build/include/nuitka/constants.h +2 -0
  34. nuitka/build/include/nuitka/environment_variables.h +45 -0
  35. nuitka/build/include/nuitka/exceptions.h +32 -4
  36. nuitka/build/include/nuitka/filesystem_paths.h +6 -1
  37. nuitka/build/include/nuitka/freelists.h +11 -1
  38. nuitka/build/include/nuitka/helper/dictionaries.h +1 -1
  39. nuitka/build/include/nuitka/helper/import_hard.h +3 -0
  40. nuitka/build/include/nuitka/helpers.h +2 -0
  41. nuitka/build/include/nuitka/importing.h +3 -0
  42. nuitka/build/include/nuitka/prelude.h +17 -6
  43. nuitka/build/include/nuitka/unfreezing.h +1 -1
  44. nuitka/build/inline_copy/bin/scons.py +14 -0
  45. nuitka/build/inline_copy/tqdm/tqdm/__init__.py +2 -2
  46. nuitka/build/inline_copy/tqdm/tqdm/utils.py +14 -8
  47. nuitka/build/inline_copy/zlib/LICENSE +22 -0
  48. nuitka/build/inline_copy/zlib/crc32.c +1049 -0
  49. nuitka/build/inline_copy/zlib/crc32.h +9446 -0
  50. nuitka/build/inline_copy/zlib/zconf.h +551 -0
  51. nuitka/build/inline_copy/zlib/zlib.h +1938 -0
  52. nuitka/build/inline_copy/zlib/zutil.h +275 -0
  53. nuitka/build/static_src/CompiledAsyncgenType.c +41 -41
  54. nuitka/build/static_src/CompiledCodeHelpers.c +14 -7
  55. nuitka/build/static_src/CompiledCoroutineType.c +60 -51
  56. nuitka/build/static_src/CompiledFrameType.c +12 -12
  57. nuitka/build/static_src/CompiledFunctionType.c +149 -28
  58. nuitka/build/static_src/CompiledGeneratorType.c +64 -65
  59. nuitka/build/static_src/CompiledGeneratorTypeUncompiledIntegration.c +1 -1
  60. nuitka/build/static_src/CompiledMethodType.c +5 -3
  61. nuitka/build/static_src/HelperEnvironmentVariables.c +120 -0
  62. nuitka/build/static_src/HelpersAttributes.c +1 -1
  63. nuitka/build/static_src/HelpersBuiltin.c +1 -1
  64. nuitka/build/static_src/HelpersChecksumTools.c +19 -4
  65. nuitka/build/static_src/HelpersComparisonEq.c +4 -4
  66. nuitka/build/static_src/HelpersComparisonNe.c +4 -4
  67. nuitka/build/static_src/HelpersConstantsBlob.c +40 -23
  68. nuitka/build/static_src/HelpersDictionaries.c +3 -1
  69. nuitka/build/static_src/HelpersDictionariesGenerated.c +9 -9
  70. nuitka/build/static_src/HelpersFilesystemPaths.c +12 -2
  71. nuitka/build/static_src/HelpersImport.c +29 -1
  72. nuitka/build/static_src/HelpersImportHard.c +19 -0
  73. nuitka/build/static_src/HelpersOperationInplaceAddUtils.c +5 -4
  74. nuitka/build/static_src/HelpersPythonPgo.c +5 -5
  75. nuitka/build/static_src/HelpersSafeStrings.c +2 -1
  76. nuitka/build/static_src/HelpersStrings.c +12 -10
  77. nuitka/build/static_src/HelpersTypes.c +1 -1
  78. nuitka/build/static_src/InspectPatcher.c +3 -2
  79. nuitka/build/static_src/MainProgram.c +182 -214
  80. nuitka/build/static_src/MetaPathBasedLoader.c +36 -23
  81. nuitka/build/static_src/MetaPathBasedLoaderImportlibMetadataDistribution.c +4 -2
  82. nuitka/build/static_src/MetaPathBasedLoaderResourceReaderFiles.c +38 -2
  83. nuitka/build/static_src/OnefileBootstrap.c +124 -93
  84. nuitka/code_generation/CodeGeneration.py +4 -2
  85. nuitka/code_generation/CodeObjectCodes.py +5 -1
  86. nuitka/code_generation/ConstantCodes.py +4 -0
  87. nuitka/code_generation/Contexts.py +111 -3
  88. nuitka/code_generation/DictCodes.py +5 -5
  89. nuitka/code_generation/FunctionCodes.py +4 -2
  90. nuitka/code_generation/GlobalConstants.py +10 -0
  91. nuitka/code_generation/ImportCodes.py +69 -33
  92. nuitka/code_generation/ModuleCodes.py +4 -1
  93. nuitka/code_generation/Namify.py +6 -5
  94. nuitka/code_generation/YieldCodes.py +3 -3
  95. nuitka/code_generation/templates/CodeTemplatesModules.py +61 -95
  96. nuitka/code_generation/templates_c/HelperDictionaryCopy.c.j2 +3 -3
  97. nuitka/code_generation/templates_c/HelperOperationComparisonUnicode.c.j2 +2 -2
  98. nuitka/distutils/DistutilCommands.py +3 -0
  99. nuitka/finalizations/FinalizeMarkups.py +1 -1
  100. nuitka/freezer/DependsExe.py +2 -1
  101. nuitka/freezer/DllDependenciesPosix.py +11 -1
  102. nuitka/freezer/IncludedEntryPoints.py +54 -16
  103. nuitka/freezer/Onefile.py +7 -3
  104. nuitka/freezer/Standalone.py +39 -17
  105. nuitka/importing/Importing.py +195 -62
  106. nuitka/importing/PreloadedPackages.py +2 -1
  107. nuitka/importing/Recursion.py +98 -27
  108. nuitka/importing/StandardLibrary.py +7 -4
  109. nuitka/nodes/BuiltinOpenNodes.py +28 -1
  110. nuitka/nodes/BuiltinRangeNodes.py +2 -2
  111. nuitka/nodes/BuiltinSumNodes.py +1 -1
  112. nuitka/nodes/ChildrenHavingMixins.py +326 -2
  113. nuitka/nodes/HardImportNodesGenerated.py +141 -38
  114. nuitka/nodes/ImportHardNodes.py +0 -8
  115. nuitka/nodes/ImportNodes.py +267 -361
  116. nuitka/nodes/IterationHandles.py +36 -17
  117. nuitka/nodes/LocalsScopes.py +3 -1
  118. nuitka/nodes/NodeBases.py +8 -14
  119. nuitka/nodes/OperatorNodes.py +9 -9
  120. nuitka/nodes/OutlineNodes.py +3 -3
  121. nuitka/nodes/PackageMetadataNodes.py +19 -9
  122. nuitka/nodes/SliceNodes.py +1 -1
  123. nuitka/nodes/VariableAssignNodes.py +25 -15
  124. nuitka/nodes/VariableRefNodes.py +7 -7
  125. nuitka/nodes/YieldNodes.py +2 -2
  126. nuitka/nodes/shapes/BuiltinTypeShapes.py +81 -6
  127. nuitka/nodes/shapes/ShapeMixins.py +21 -0
  128. nuitka/nodes/shapes/StandardShapes.py +9 -3
  129. nuitka/optimizations/OptimizeBuiltinCalls.py +1 -1
  130. nuitka/optimizations/TraceCollections.py +75 -0
  131. nuitka/pgo/PGO.py +14 -6
  132. nuitka/plugins/PluginBase.py +83 -11
  133. nuitka/plugins/Plugins.py +78 -35
  134. nuitka/plugins/standard/AntiBloatPlugin.py +46 -1
  135. nuitka/plugins/standard/ConsiderPyLintAnnotationsPlugin.py +1 -1
  136. nuitka/plugins/standard/DelvewheelPlugin.py +2 -1
  137. nuitka/plugins/standard/DillPlugin.py +3 -99
  138. nuitka/plugins/standard/DllFilesPlugin.py +45 -0
  139. nuitka/plugins/standard/GiPlugin.py +23 -10
  140. nuitka/plugins/standard/GlfwPlugin.py +1 -0
  141. nuitka/plugins/standard/ImplicitImports.py +267 -15
  142. nuitka/plugins/standard/KivyPlugin.py +1 -0
  143. nuitka/plugins/standard/MatplotlibPlugin.py +43 -25
  144. nuitka/plugins/standard/OptionsNannyPlugin.py +5 -6
  145. nuitka/plugins/standard/PkgResourcesPlugin.py +1 -1
  146. nuitka/plugins/standard/PmwPlugin.py +1 -1
  147. nuitka/plugins/standard/PySidePyQtPlugin.py +37 -20
  148. nuitka/plugins/standard/TkinterPlugin.py +44 -30
  149. nuitka/plugins/standard/TransformersPlugin.py +3 -1
  150. nuitka/plugins/standard/standard.nuitka-package.config.yml +522 -86
  151. nuitka/plugins/standard/stdlib3.nuitka-package.config.yml +8 -1
  152. nuitka/reports/CompilationReportReader.py +53 -0
  153. nuitka/reports/LicenseReport.rst.j2 +4 -4
  154. nuitka/reports/Reports.py +129 -47
  155. nuitka/specs/HardImportSpecs.py +6 -0
  156. nuitka/tools/data_composer/DataComposer.py +29 -17
  157. nuitka/tools/onefile_compressor/OnefileCompressor.py +173 -110
  158. nuitka/tools/podman/__main__.py +17 -2
  159. nuitka/tools/scanning/DisplayPackageDLLs.py +11 -2
  160. nuitka/tools/scanning/DisplayPackageData.py +1 -1
  161. nuitka/tools/specialize/CTypeDescriptions.py +36 -27
  162. nuitka/tools/specialize/SpecializeC.py +1 -1
  163. nuitka/tools/specialize/SpecializePython.py +16 -0
  164. nuitka/tools/testing/Common.py +3 -4
  165. nuitka/tools/testing/OutputComparison.py +23 -0
  166. nuitka/tools/testing/SearchModes.py +2 -2
  167. nuitka/tools/testing/compare_with_cpython/__main__.py +13 -4
  168. nuitka/tools/testing/measure_construct_performance/__main__.py +2 -5
  169. nuitka/tools/watch/__main__.py +194 -56
  170. nuitka/tree/Building.py +8 -2
  171. nuitka/tree/ComplexCallHelperFunctions.py +45 -15
  172. nuitka/tree/ReformulationAssignmentStatements.py +18 -12
  173. nuitka/tree/ReformulationCallExpressions.py +1 -1
  174. nuitka/tree/ReformulationClasses.py +11 -5
  175. nuitka/tree/ReformulationClasses3.py +30 -12
  176. nuitka/tree/ReformulationComparisonExpressions.py +4 -2
  177. nuitka/tree/ReformulationContractionExpressions.py +19 -11
  178. nuitka/tree/ReformulationDictionaryCreation.py +9 -3
  179. nuitka/tree/ReformulationExecStatements.py +6 -6
  180. nuitka/tree/ReformulationForLoopStatements.py +5 -5
  181. nuitka/tree/ReformulationFunctionStatements.py +6 -2
  182. nuitka/tree/ReformulationImportStatements.py +7 -2
  183. nuitka/tree/ReformulationLambdaExpressions.py +1 -1
  184. nuitka/tree/ReformulationMatchStatements.py +3 -1
  185. nuitka/tree/ReformulationNamespacePackages.py +7 -3
  186. nuitka/tree/ReformulationPrintStatements.py +1 -1
  187. nuitka/tree/ReformulationSequenceCreation.py +18 -6
  188. nuitka/tree/ReformulationWithStatements.py +8 -8
  189. nuitka/tree/ReformulationYieldExpressions.py +2 -2
  190. nuitka/tree/SourceHandling.py +27 -5
  191. nuitka/tree/VariableClosure.py +11 -1
  192. nuitka/utils/AppDirs.py +2 -2
  193. nuitka/utils/CStrings.py +39 -3
  194. nuitka/utils/CommandLineOptions.py +42 -1
  195. nuitka/utils/Distributions.py +305 -38
  196. nuitka/utils/Download.py +27 -8
  197. nuitka/utils/FileOperations.py +103 -20
  198. nuitka/utils/Hashing.py +2 -3
  199. nuitka/utils/Importing.py +60 -3
  200. nuitka/utils/InstalledPythons.py +31 -36
  201. nuitka/utils/Jinja2.py +11 -5
  202. nuitka/utils/ModuleNames.py +11 -3
  203. nuitka/utils/ReExecute.py +7 -0
  204. nuitka/utils/SharedLibraries.py +38 -14
  205. nuitka/utils/SlotMetaClasses.py +55 -0
  206. nuitka/utils/Utils.py +10 -0
  207. nuitka/utils/Yaml.py +9 -1
  208. nuitka/build/inline_copy/tqdm/tqdm/_tqdm_gui.py +0 -9
  209. nuitka/build/inline_copy/tqdm/tqdm/gui.py +0 -191
  210. {Nuitka_winsvc-1.8.6.data → Nuitka_winsvc-1.9.3.data}/scripts/nuitka-run.bat +0 -0
  211. {Nuitka_winsvc-1.8.6.data → Nuitka_winsvc-1.9.3.data}/scripts/nuitka.bat +0 -0
  212. {Nuitka_winsvc-1.8.6.dist-info → Nuitka_winsvc-1.9.3.dist-info}/LICENSE.txt +0 -0
  213. {Nuitka_winsvc-1.8.6.dist-info → Nuitka_winsvc-1.9.3.dist-info}/entry_points.txt +0 -0
  214. {Nuitka_winsvc-1.8.6.dist-info → Nuitka_winsvc-1.9.3.dist-info}/top_level.txt +0 -0
@@ -44,6 +44,46 @@
44
44
  dirs:
45
45
  - 'lib'
46
46
 
47
+ - module-name: 'altair'
48
+ anti-bloat:
49
+ - description: 'remove IPython reference'
50
+ change_function:
51
+ 'load_ipython_extension': 'un-callable'
52
+ when: 'not use_ipython'
53
+
54
+ - module-name: 'altair.utils.core'
55
+ anti-bloat:
56
+ - description: 'remove IPython reference'
57
+ no-auto-follow:
58
+ 'IPython': 'ignore'
59
+ when: 'not use_ipython'
60
+
61
+ - module-name: 'altair.utils.v5.display'
62
+ anti-bloat:
63
+ - description: 'remove IPython reference'
64
+ no-auto-follow:
65
+ 'IPython': 'ignore'
66
+ when: 'not use_ipython'
67
+
68
+ - module-name: 'altair.vegalite.v5.api'
69
+ anti-bloat:
70
+ - description: 'remove IPython reference'
71
+ no-auto-follow:
72
+ 'IPython': 'ignore'
73
+ when: 'not use_ipython'
74
+
75
+ - module-name: 'altair.vegalite.v5.display'
76
+ anti-bloat:
77
+ - description: 'remove IPython reference'
78
+ no-auto-follow:
79
+ 'IPython': 'ignore'
80
+ when: 'not use_ipython'
81
+
82
+ - module-name: 'altair.vegalite.v5.schema'
83
+ data-files:
84
+ patterns:
85
+ - '*.json'
86
+
47
87
  - module-name: 'androguard.core.resources'
48
88
  data-files:
49
89
  patterns:
@@ -157,6 +197,14 @@
157
197
  support_info: 'warning'
158
198
  when: 'version("attrs") < (23,1)'
159
199
 
200
+ - module-name: 'autoit'
201
+ dlls:
202
+ - from_filenames:
203
+ relative_path: 'lib'
204
+ prefixes:
205
+ - 'AutoIt'
206
+ when: 'win32'
207
+
160
208
  - module-name: 'av.audio.frame'
161
209
  implicit-imports:
162
210
  - depends:
@@ -278,6 +326,57 @@
278
326
  change_function:
279
327
  'test': 'un-callable'
280
328
 
329
+ - module-name: 'bitsandbytes.cextension'
330
+ dlls:
331
+ - from_filenames:
332
+ prefixes:
333
+ - 'libbitsandbytes_'
334
+ suffixes:
335
+ # Applies currently to all OSes in bitsandbytes wheels.
336
+ - 'so'
337
+
338
+ - module-name: 'bitsandbytes.triton.dequantize_rowwise'
339
+ anti-bloat:
340
+ - description: 'remove setuptools usage via triton'
341
+ replacements_plain:
342
+ 'is_triton_available()': 'False'
343
+ when: 'not use_setuptools'
344
+
345
+ - module-name: 'bitsandbytes.triton.int8_matmul_mixed_dequanitze'
346
+ anti-bloat:
347
+ - description: 'remove setuptools usage via triton'
348
+ replacements_plain:
349
+ 'is_triton_available()': 'False'
350
+ when: 'not use_setuptools'
351
+
352
+ - module-name: 'bitsandbytes.triton.int8_matmul_rowwise_dequantize'
353
+ anti-bloat:
354
+ - description: 'remove setuptools usage via triton'
355
+ replacements_plain:
356
+ 'is_triton_available()': 'False'
357
+ when: 'not use_setuptools'
358
+
359
+ - module-name: 'bitsandbytes.triton.quantize_columnwise_and_transpose'
360
+ anti-bloat:
361
+ - description: 'remove setuptools usage via triton'
362
+ replacements_plain:
363
+ 'is_triton_available()': 'False'
364
+ when: 'not use_setuptools'
365
+
366
+ - module-name: 'bitsandbytes.triton.quantize_global'
367
+ anti-bloat:
368
+ - description: 'remove setuptools usage via triton'
369
+ replacements_plain:
370
+ 'is_triton_available()': 'False'
371
+ when: 'not use_setuptools'
372
+
373
+ - module-name: 'bitsandbytes.triton.quantize_rowwise'
374
+ anti-bloat:
375
+ - description: 'remove setuptools usage via triton'
376
+ replacements_plain:
377
+ 'is_triton_available()': 'False'
378
+ when: 'not use_setuptools'
379
+
281
380
  - module-name: 'boto3'
282
381
  data-files:
283
382
  dirs:
@@ -460,6 +559,7 @@
460
559
  implicit-imports:
461
560
  - depends:
462
561
  - 'chromadb.telemetry.posthog'
562
+ - 'chromadb.telemetry.product.posthog'
463
563
  - 'chromadb.api.local'
464
564
  - 'chromadb.db.duckdb'
465
565
  - 'chromadb.db.impl.sqlite'
@@ -470,6 +570,7 @@
470
570
  - 'chromadb.migrations.embeddings_queue'
471
571
  - 'chromadb.migrations.sysdb'
472
572
  - 'chromadb.migrations.metadb'
573
+ - 'chromadb.ingest.impl.simple_policy'
473
574
 
474
575
  - module-name: 'chromadb.migrations.embeddings_queue'
475
576
  data-files:
@@ -511,6 +612,12 @@
511
612
  replacements_plain:
512
613
  '__version__ = get_distribution(__name__).version': 'raise DistributionNotFound'
513
614
 
615
+ - module-name: 'cmsis_pack_manager.cmsis_pack_manager'
616
+ dlls:
617
+ - from_filenames:
618
+ prefixes:
619
+ - 'native'
620
+
514
621
  - module-name: 'connexion'
515
622
  data-files:
516
623
  dirs:
@@ -600,7 +707,7 @@
600
707
  checks:
601
708
  - description: 'OpenCV2 is best supported with 4.6 or later'
602
709
  support_info: 'warning'
603
- when: 'version("opencv-python") < (4,6)'
710
+ when: 'version(get_dist_name("cv2")) < (4,6)'
604
711
 
605
712
  - module-name: 'cvxpy.utilities.key_utils'
606
713
  anti-bloat:
@@ -665,12 +772,63 @@
665
772
  'import IPython.display as display': 'raise ImportError'
666
773
  when: 'not use_ipython'
667
774
 
775
+ - module-name: 'datasets.packaged_modules'
776
+ anti-bloat:
777
+ - description: 'workaround dependency source code usages'
778
+ context:
779
+ - 'import datasets.packaged_modules'
780
+ replacements_re:
781
+ 'inspect\.getsource\((.*?)\)': '""'
782
+ append_result: '"_PACKAGED_DATASETS_MODULES = %r" % datasets.packaged_modules._PACKAGED_DATASETS_MODULES'
783
+
668
784
  - module-name: 'datatree'
669
785
  anti-bloat:
670
786
  - description: 'remove useless metadata usage'
671
787
  replacements_plain:
672
788
  '__version__ = get_distribution(__name__).version': 'raise DistributionNotFound'
673
789
 
790
+ - module-name: 'delphifmx'
791
+ dlls:
792
+ - from_filenames:
793
+ relative_path: 'Win32'
794
+ prefixes:
795
+ - 'DelphiFMX'
796
+ suffixes:
797
+ - 'pyd'
798
+ when: 'win32 and arch_x86'
799
+ - from_filenames:
800
+ relative_path: 'Win64'
801
+ prefixes:
802
+ - 'DelphiFMX'
803
+ suffixes:
804
+ - 'pyd'
805
+ when: 'win32 and arch_amd64'
806
+ - from_filenames:
807
+ relative_path: 'Linux64'
808
+ prefixes:
809
+ - 'libDelphiFMX'
810
+ when: 'linux and not android'
811
+ - from_filenames:
812
+ relative_path: 'Android64'
813
+ prefixes:
814
+ - 'libDelphiFMX'
815
+ when: 'android64'
816
+ - from_filenames:
817
+ relative_path: 'Android'
818
+ prefixes:
819
+ - 'libDelphiFMX'
820
+ when: 'android32'
821
+ - from_filenames:
822
+ relative_path: 'OSX64'
823
+ prefixes:
824
+ - 'libDelphiFMX'
825
+ when: 'macos and arch_amd64'
826
+ - from_filenames:
827
+ relative_path: 'OSXARM64'
828
+ prefixes:
829
+ - 'libDelphiFMX'
830
+ when: 'macos and arch_arm64'
831
+
674
832
  - module-name: 'dependency_injector._cwiring'
675
833
  implicit-imports:
676
834
  - depends:
@@ -693,6 +851,13 @@
693
851
  replacements_plain:
694
852
  'from .testing import setup_test': ''
695
853
 
854
+ - module-name: 'distributed.client'
855
+ anti-bloat:
856
+ - description: 'remove IPython reference'
857
+ no-auto-follow:
858
+ 'IPython': 'ignore'
859
+ when: 'not use_ipython'
860
+
696
861
  - module-name: 'distributed.config'
697
862
  data-files:
698
863
  patterns:
@@ -705,6 +870,13 @@
705
870
  'from IPython.display import display': 'raise ImportError'
706
871
  when: 'not use_ipython'
707
872
 
873
+ - module-name: 'distributed.diagnostics.progressbar'
874
+ anti-bloat:
875
+ - description: 'remove IPython reference'
876
+ no-auto-follow:
877
+ 'IPython': 'ignore'
878
+ when: 'not use_ipython'
879
+
708
880
  - module-name: 'distributed.scheduler'
709
881
  anti-bloat:
710
882
  - description: 'remove cython support'
@@ -713,6 +885,13 @@
713
885
  'from cython import compiled': 'raise ImportError'
714
886
  'if compiled:': 'if False:'
715
887
 
888
+ - module-name: 'distributed.utils'
889
+ anti-bloat:
890
+ - description: 'remove IPython reference'
891
+ change_function:
892
+ 'is_kernel': "'(lambda : False)'"
893
+ when: 'not use_ipython'
894
+
716
895
  - module-name: 'dns.rdtypes'
717
896
  implicit-imports:
718
897
  - depends:
@@ -786,6 +965,12 @@
786
965
  - depends:
787
966
  - 'Equation.equation_*'
788
967
 
968
+ - module-name: 'evaluate.config'
969
+ anti-bloat:
970
+ - description: 'workaround python version test not compile time recognized'
971
+ replacements:
972
+ 'PY_VERSION < version.parse("3.8")': 'str(__import__("sys").version_info < (3,8))'
973
+
789
974
  - module-name: 'exchangelib'
790
975
  implicit-imports:
791
976
  - depends:
@@ -874,6 +1059,19 @@
874
1059
  - 'jinja2.ext.autoescape'
875
1060
  - 'jinja2.ext.with_'
876
1061
 
1062
+ - module-name: 'flask_restx'
1063
+ data-files:
1064
+ dirs:
1065
+ - 'static'
1066
+ - 'schemas'
1067
+
1068
+ - module-name: 'flask_restx.swagger'
1069
+ # Templates are put on application level for flask to find it.
1070
+ data-files:
1071
+ dest_path: '.'
1072
+ dirs:
1073
+ - 'templates'
1074
+
877
1075
  - module-name: 'folium'
878
1076
  data-files:
879
1077
  dirs:
@@ -1096,6 +1294,47 @@
1096
1294
  - 'languages'
1097
1295
  - 'images'
1098
1296
 
1297
+ - module-name: 'gradio'
1298
+ data-files:
1299
+ dirs:
1300
+ - 'templates'
1301
+ - 'node'
1302
+ - '_frontend_code'
1303
+ patterns:
1304
+ - '*.json'
1305
+
1306
+ - module-name: 'gradio.blocks'
1307
+ anti-bloat:
1308
+ - description: 'remove IPython reference'
1309
+ no-auto-follow:
1310
+ 'IPython': 'ignore'
1311
+ when: 'not use_ipython'
1312
+
1313
+ - module-name: 'gradio.component_meta'
1314
+ anti-bloat:
1315
+ - description: 'workaround attempt to create .pyi files during execution'
1316
+ change_function:
1317
+ 'create_or_modify_pyi': "'(lambda *args, **kwargs: None)'"
1318
+
1319
+ - module-name: 'gradio.ipython_ext'
1320
+ anti-bloat:
1321
+ - description: 'remove IPython reference'
1322
+ no-auto-follow:
1323
+ 'IPython': 'ignore'
1324
+ when: 'not use_ipython'
1325
+
1326
+ - module-name: 'gradio.utils'
1327
+ anti-bloat:
1328
+ - description: 'remove IPython reference'
1329
+ no-auto-follow:
1330
+ 'IPython': 'ignore'
1331
+ when: 'not use_ipython'
1332
+
1333
+ - module-name: 'gradio_client'
1334
+ data-files:
1335
+ patterns:
1336
+ - '*.json'
1337
+
1099
1338
  - module-name: 'grpc'
1100
1339
  data-files:
1101
1340
  patterns:
@@ -1117,6 +1356,19 @@
1117
1356
  - 'cairo'
1118
1357
  - 'gtk'
1119
1358
 
1359
+ - module-name: 'gymnasium.envs.registration'
1360
+ anti-bloat:
1361
+ - description: 'better error message for environment backends'
1362
+ replacements_plain:
1363
+ ' mod = importlib.import_module(mod_name)': |
1364
+ #
1365
+ try:
1366
+ mod = importlib.import_module(mod_name)
1367
+ except ModuleNotFoundError:
1368
+ import sys
1369
+ sys.exit("Nuitka: For this environment to load, need to use this as an option to compile with '--include-module=%s'." % mod_name)
1370
+ when: 'not deployment'
1371
+
1120
1372
  - module-name: 'h5py'
1121
1373
  anti-bloat:
1122
1374
  - description: 'remove IPython reference'
@@ -1215,13 +1467,6 @@
1215
1467
  - depends:
1216
1468
  - 'jarowinkler._initialize_cpp'
1217
1469
 
1218
- - module-name: 'joblib'
1219
- options:
1220
- checks:
1221
- - description: 'joblib beyond 1.2 is not yet supported, downgrade to "joblib==1.2.0"'
1222
- support_info: 'error'
1223
- when: 'version("joblib") >= (1,3) and win32'
1224
-
1225
1470
  - module-name: 'joblib._dask'
1226
1471
  anti-bloat:
1227
1472
  - description: 'remove optional dask usage'
@@ -1257,6 +1502,15 @@
1257
1502
  if __name__ == "__main__": main()
1258
1503
  when: 'not win32'
1259
1504
 
1505
+ - module-name: 'joblib.externals.loky.backend.popen_loky_win32'
1506
+ anti-bloat:
1507
+ - description: 'workaround for forking itself'
1508
+ replacements_plain:
1509
+ "getattr(sys, 'frozen', False)": 'False'
1510
+ 'getattr(sys, "frozen", False)': 'False'
1511
+ 'assert is_forking(sys.argv), "Not forking"': ''
1512
+ when: 'win32'
1513
+
1260
1514
  - module-name: 'joblib.externals.loky.backend.resource_tracker'
1261
1515
  anti-bloat:
1262
1516
  - description: 'workaround incorrect warning'
@@ -1404,6 +1658,14 @@
1404
1658
  - 'llvmlite'
1405
1659
  - 'libllvmlite'
1406
1660
 
1661
+ - module-name: 'loguru._colorama'
1662
+ anti-bloat:
1663
+ - description: 'remove IPython reference'
1664
+ no-auto-follow:
1665
+ 'ipykernel': 'ignore'
1666
+ 'IPython': 'ignore'
1667
+ when: 'not use_ipython'
1668
+
1407
1669
  - module-name: 'lxml'
1408
1670
  implicit-imports:
1409
1671
  - depends:
@@ -1578,6 +1840,22 @@
1578
1840
  '_get_extension': "'(lambda: None, None, None)'"
1579
1841
  'is_rocm_pytorch': "'(lambda: False)'"
1580
1842
  '_get_cuda_home': 'un-callable'
1843
+ when: 'not use_setuptools'
1844
+
1845
+ - module-name: 'mmengine.utils.dl_utils.collect_env'
1846
+ anti-bloat:
1847
+ - description: 'remove torch.utils.cpp_extension usage'
1848
+ change_function:
1849
+ '_get_cuda_home': 'un-callable'
1850
+
1851
+ - module-name: 'mmengine.utils.dl_utils.parrots_wrapper'
1852
+ anti-bloat:
1853
+ - description: 'remove torch.utils.cpp_extension usage'
1854
+ change_function:
1855
+ '_get_extension': "'(lambda: None, None, None)'"
1856
+ 'is_rocm_pytorch': "'(lambda: False)'"
1857
+ '_get_cuda_home': 'un-callable'
1858
+ when: 'not use_setuptools'
1581
1859
 
1582
1860
  - module-name: 'mnemonic'
1583
1861
  data-files:
@@ -1625,6 +1903,13 @@
1625
1903
  'runtests': 'un-callable'
1626
1904
  when: 'not use_pytest'
1627
1905
 
1906
+ - module-name: 'multiprocess.util'
1907
+ anti-bloat:
1908
+ - description: 'remove unittest reference'
1909
+ change_function:
1910
+ '_cleanup_tests': 'un-callable'
1911
+ when: 'not use_unittest'
1912
+
1628
1913
  - module-name: 'multiprocessing.util'
1629
1914
  anti-bloat:
1630
1915
  - description: 'remove unittest reference'
@@ -1650,6 +1935,13 @@
1650
1935
  'os.environ.get("NETWORKX_GRAPH_CONVERT")': 'None'
1651
1936
  when: 'not use_pytest'
1652
1937
 
1938
+ - module-name: 'networkx.utils.backends'
1939
+ anti-bloat:
1940
+ - description: 'remove pytest reference'
1941
+ no-auto-follow:
1942
+ 'pytest': 'ignore'
1943
+ when: 'not use_pytest'
1944
+
1653
1945
  - module-name: 'networkx.utils.decorators'
1654
1946
  anti-bloat:
1655
1947
  - description: 'required for decorator compatibility'
@@ -1682,7 +1974,7 @@
1682
1974
  'test': 'un-callable'
1683
1975
  options:
1684
1976
  checks:
1685
- - description: "Numba is not yet working with Nuitka standalone, recommended to use '--noinclude-numba-mode'"
1977
+ - description: "Numba is not yet working with Nuitka standalone, try to use '--noinclude-numba-mode', but it may fail."
1686
1978
  support_info: 'warning'
1687
1979
  when: 'not use_numba and standalone'
1688
1980
 
@@ -1739,6 +2031,9 @@
1739
2031
  dest_path: '.'
1740
2032
  when: 'is_conda_package("numpy")'
1741
2033
 
2034
+ anti-bloat:
2035
+ - replacements_plain:
2036
+ 'https://': ''
1742
2037
  implicit-imports:
1743
2038
  - depends:
1744
2039
  - 'numpy._mklinit'
@@ -2868,6 +3163,12 @@
2868
3163
  - depends:
2869
3164
  - 'pymssql._mssql'
2870
3165
 
3166
+ - module-name: 'pyocd'
3167
+ data-files:
3168
+ patterns:
3169
+ - 'debug/sequences/*.lark'
3170
+ - 'debug/svd/*.zip'
3171
+
2871
3172
  - module-name: 'pyodbc'
2872
3173
  implicit-imports:
2873
3174
  - depends:
@@ -2893,6 +3194,11 @@
2893
3194
  anti-bloat:
2894
3195
  - description: 'remove doctest usage'
2895
3196
 
3197
+ - module-name: 'pyproj'
3198
+ data-files:
3199
+ dirs:
3200
+ - 'proj_dir'
3201
+
2896
3202
  - module-name: 'PyQt5'
2897
3203
  data-files:
2898
3204
  empty_dirs:
@@ -2924,6 +3230,13 @@
2924
3230
  - 'colors'
2925
3231
  - 'icons'
2926
3232
 
3233
+ - module-name: 'pyqtgraph.util.numba_helper'
3234
+ anti-bloat:
3235
+ - description: 'remove numba reference'
3236
+ replacements_plain:
3237
+ 'getConfigOption("useNumba")': 'False'
3238
+ when: 'not use_numba'
3239
+
2927
3240
  - module-name: 'pyqtlet2'
2928
3241
  data-files:
2929
3242
  dirs:
@@ -3059,18 +3372,17 @@
3059
3372
  implicit-imports:
3060
3373
  - post-import-code:
3061
3374
  - |
3062
- def patched_connect(self, receiver, type=None):
3063
- type = type or QtCore.Qt.ConnectionType.AutoConnection
3375
+ def patched_disconnect(self, receiver):
3064
3376
  if hasattr(receiver, "im_func"):
3065
3377
  if hasattr(receiver.im_func, "__compiled__"):
3066
- patched_connect._protected = getattr(patched_connect, "_protected", [])
3067
- patched_connect._protected.append(receiver)
3378
+ patched_disconnect._protected = getattr(patched_disconnect, "_protected", [])
3379
+ patched_disconnect._protected.append(receiver)
3068
3380
 
3069
- return orig_connect(self, receiver, type)
3381
+ return orig_disconnect(self, receiver)
3070
3382
 
3071
3383
  from PySide2 import QtCore
3072
- orig_connect = QtCore.SignalInstance.connect
3073
- QtCore.SignalInstance.connect = patched_connect
3384
+ orig_disconnect = QtCore.SignalInstance.disconnect
3385
+ QtCore.SignalInstance.disconnect = patched_disconnect
3074
3386
 
3075
3387
  options:
3076
3388
  checks:
@@ -3085,6 +3397,22 @@
3085
3397
  - 'shiboken2'
3086
3398
 
3087
3399
  - module-name: 'PySide6'
3400
+ implicit-imports:
3401
+ - post-import-code:
3402
+ - |
3403
+ def patched_disconnect(self, receiver):
3404
+ if hasattr(receiver, "im_func"):
3405
+ if hasattr(receiver.im_func, "__compiled__"):
3406
+ patched_disconnect._protected = getattr(patched_disconnect, "_protected", [])
3407
+ patched_disconnect._protected.append(receiver)
3408
+
3409
+ return orig_disconnect(self, receiver)
3410
+
3411
+ from PySide6 import QtCore
3412
+ orig_disconnect = QtCore.SignalInstance.disconnect
3413
+ QtCore.SignalInstance.disconnect = patched_disconnect
3414
+ when: 'version("PySide6") < (6,6)'
3415
+
3088
3416
  options:
3089
3417
  checks:
3090
3418
  - description: 'PySide6 is a GUI framework'
@@ -3106,20 +3434,6 @@
3106
3434
  implicit-imports:
3107
3435
  - depends:
3108
3436
  - 'PySide6.support.deprecated'
3109
- - post-import-code:
3110
- - |
3111
- def patched_connect(self, receiver, type=None):
3112
- type = type or QtCore.Qt.ConnectionType.AutoConnection
3113
- if hasattr(receiver, "im_func"):
3114
- if hasattr(receiver.im_func, "__compiled__"):
3115
- patched_connect._protected = getattr(patched_connect, "_protected", [])
3116
- patched_connect._protected.append(receiver)
3117
-
3118
- return orig_connect(self, receiver, type)
3119
-
3120
- from PySide6 import QtCore
3121
- orig_connect = QtCore.SignalInstance.connect
3122
- QtCore.SignalInstance.connect = patched_connect
3123
3437
 
3124
3438
  - module-name: 'pysnmp.smi'
3125
3439
  data-files:
@@ -3257,6 +3571,11 @@
3257
3571
  - 'libiconv'
3258
3572
  - 'libzbar'
3259
3573
 
3574
+ - module-name: 'qtawesome'
3575
+ data-files:
3576
+ dirs:
3577
+ - 'fonts'
3578
+
3260
3579
  - module-name: 'rapidfuzz'
3261
3580
  implicit-imports:
3262
3581
  - depends:
@@ -3762,8 +4081,8 @@
3762
4081
  data-files:
3763
4082
  dirs:
3764
4083
  - 'data'
3765
- include-pyi-file: 'yes'
3766
4084
 
4085
+ # TODO: Our lazy loader support may mean these are not really necessary anymore.
3767
4086
  - module-name: 'skimage._shared'
3768
4087
  implicit-imports:
3769
4088
  - depends:
@@ -3779,13 +4098,7 @@
3779
4098
  def __init__(self, name):
3780
4099
  pass
3781
4100
 
3782
- - module-name: 'skimage.color'
3783
- data-files:
3784
- include-pyi-file: 'yes'
3785
-
3786
4101
  - module-name: 'skimage.data'
3787
- data-files:
3788
- include-pyi-file: 'yes'
3789
4102
  implicit-imports:
3790
4103
  - depends:
3791
4104
  - '._fetchers'
@@ -3798,16 +4111,10 @@
3798
4111
  when: 'not use_pytest'
3799
4112
 
3800
4113
  - module-name: 'skimage.draw'
3801
- data-files:
3802
- include-pyi-file: 'yes'
3803
4114
  implicit-imports:
3804
4115
  - depends:
3805
4116
  - 'skimage.draw._draw'
3806
4117
 
3807
- - module-name: 'skimage.exposure'
3808
- data-files:
3809
- include-pyi-file: 'yes'
3810
-
3811
4118
  - module-name: 'skimage.external.tifffile'
3812
4119
  implicit-imports:
3813
4120
  - depends:
@@ -3836,10 +4143,6 @@
3836
4143
  - depends:
3837
4144
  - 'skimage.feature._orb_descriptor_positions'
3838
4145
 
3839
- - module-name: 'skimage.filters'
3840
- data-files:
3841
- include-pyi-file: 'yes'
3842
-
3843
4146
  - module-name: 'skimage.filters.rank'
3844
4147
  implicit-imports:
3845
4148
  - depends:
@@ -3849,10 +4152,6 @@
3849
4152
  - 'skimage.filters.rank.generic_cy'
3850
4153
  - 'skimage.filters.rank.percentile_cy'
3851
4154
 
3852
- - module-name: 'skimage.future'
3853
- data-files:
3854
- include-pyi-file: 'yes'
3855
-
3856
4155
  - module-name: 'skimage.future.graph'
3857
4156
  implicit-imports:
3858
4157
  - depends:
@@ -3927,6 +4226,13 @@
3927
4226
  - 'skimage.restoration._unwrap_2d'
3928
4227
  - 'skimage.restoration._unwrap_3d'
3929
4228
 
4229
+ - module-name: 'skimage.restoration._cycle_spin'
4230
+ anti-bloat:
4231
+ - description: 'remove optional dask usage'
4232
+ replacements_plain:
4233
+ 'import dask': 'raise ImportError'
4234
+ when: 'not use_dask'
4235
+
3930
4236
  - module-name: 'skimage.segmentation'
3931
4237
  implicit-imports:
3932
4238
  - depends:
@@ -4262,7 +4568,7 @@
4262
4568
  - module-name: 'sparse'
4263
4569
  options:
4264
4570
  checks:
4265
- - description: "Numba (via sparse) is not yet working with Nuitka standalone, recommended to use '--noinclude-numba-mode'"
4571
+ - description: "Numba (via sparse) is not yet working with Nuitka standalone, recommended to use '--noinclude-numba-mode'."
4266
4572
  support_info: 'warning'
4267
4573
  when: 'not use_numba and standalone'
4268
4574
 
@@ -5213,6 +5519,30 @@
5213
5519
  change_function:
5214
5520
  'main': 'un-callable'
5215
5521
 
5522
+ - module-name: 'timm'
5523
+ implicit-imports:
5524
+ - pre-import-code:
5525
+ - |
5526
+ import os
5527
+ if os.environ.get('PYTORCH_JIT') is not None:
5528
+ os.environ['PYTORCH_JIT_OLD'] = os.environ.get('PYTORCH_JIT')
5529
+ os.environ['PYTORCH_JIT'] = "0"
5530
+ when: 'standalone'
5531
+ - post-import-code:
5532
+ - |
5533
+ import os
5534
+ if os.environ.get('PYTORCH_JIT_OLD') is None:
5535
+ del os.environ['PYTORCH_JIT']
5536
+ else:
5537
+ os.environ['PYTORCH_JIT'] = os.environ['PYTORCH_JIT_OLD']
5538
+ del os.environ['PYTORCH_JIT_OLD']
5539
+ when: 'standalone'
5540
+
5541
+ - module-name: 'timm.models.hrnet'
5542
+ anti-bloat:
5543
+ - replacements_plain:
5544
+ '@torch.jit.interface': ''
5545
+
5216
5546
  - module-name: 'timm.models.layers.config'
5217
5547
  anti-bloat:
5218
5548
  - description: 'remove torchscript JIT usage'
@@ -5220,19 +5550,6 @@
5220
5550
  '_NO_JIT = False': '_NO_JIT = True'
5221
5551
  '_NO_ACTIVATION_JIT = False': '_NO_ACTIVATION_JIT = True'
5222
5552
 
5223
- - module-name: 'timm.models.layers.create_act'
5224
- anti-bloat:
5225
- - description: 'remove TorchScript JIT usage'
5226
- replacements_plain:
5227
- 'from .activations_jit import *': ''
5228
- 'from .activations_me import *': ''
5229
- '_ACT_FN_JIT =': 'if False: _ACT_FN_JIT ='
5230
- '_ACT_FN_ME =': 'if False: _ACT_FN_ME ='
5231
- '_ACT_FNS = (_ACT_FN_ME, _ACT_FN_JIT, _ACT_FN_DEFAULT)': '_ACT_FNS = (_ACT_FN_DEFAULT,)'
5232
- '_ACT_LAYER_JIT =': 'if False: _ACT_LAYER_JIT ='
5233
- '_ACT_LAYER_ME =': 'if False: _ACT_LAYER_ME ='
5234
- '_ACT_LAYERS = (_ACT_LAYER_ME, _ACT_LAYER_JIT, _ACT_LAYER_DEFAULT)': '_ACT_LAYERS = (_ACT_LAYER_DEFAULT,)'
5235
-
5236
5553
  - module-name: 'tinycss2'
5237
5554
  data-files:
5238
5555
  patterns:
@@ -5316,14 +5633,27 @@
5316
5633
  relative_path: 'lib'
5317
5634
  prefixes:
5318
5635
  - ''
5636
+ anti-bloat:
5637
+ - description: 'allow unittest inside of torch, too dependent to remove'
5638
+ bloat-mode-overrides:
5639
+ 'unittest': 'allow'
5640
+ when: 'not use_unittest'
5319
5641
 
5320
- - module-name: 'torch._dynamo.config_utils'
5642
+ - module-name: 'torch._dynamo.logging'
5321
5643
  anti-bloat:
5322
- - description: 'remove unittest reference'
5644
+ - description: 'remove setuptools usage via triton'
5645
+ no-auto-follow:
5646
+ 'triton': ''
5647
+ when: 'not use_setuptools'
5648
+
5649
+ - module-name: 'torch._dynamo.skipfiles'
5650
+ anti-bloat:
5651
+ # When calling inspect.getfile() on Nuitka's loader, it will yield
5652
+ # "__module__" as "__nuitka__" but that's not in "sys.modules" and won't
5653
+ # have a "__file__" value, so make sure to ignore it.
5654
+ - description: "work around our '__loader__' failing check"
5323
5655
  replacements_plain:
5324
- 'import unittest': ''
5325
- 'issubclass(func, unittest.TestCase)': 'False'
5326
- when: 'not use_unittest'
5656
+ 'if inspect.isclass(obj)': 'if inspect.isclass(obj) and obj is not __loader__'
5327
5657
 
5328
5658
  - module-name: 'torch._inductor.codecache'
5329
5659
  anti-bloat:
@@ -5332,6 +5662,16 @@
5332
5662
  'from torch.utils import cpp_extension': ''
5333
5663
  change_function:
5334
5664
  'get_include_and_linking_paths': 'un-callable'
5665
+ no-auto-follow:
5666
+ 'triton': 'ignore'
5667
+ when: 'not use_setuptools'
5668
+
5669
+ - module-name: 'torch._inductor.codegen.autotuner'
5670
+ anti-bloat:
5671
+ - description: 'remove setuptools usage'
5672
+ no-auto-follow:
5673
+ 'triton': 'ignore'
5674
+ when: 'not use_setuptools'
5335
5675
 
5336
5676
  - module-name: 'torch._inductor.codegen.common'
5337
5677
  anti-bloat:
@@ -5341,6 +5681,34 @@
5341
5681
  'from .cpp import DTYPE_TO_CPP': 'raise ImportError'
5342
5682
  when: 'not use_setuptools'
5343
5683
 
5684
+ - module-name: 'torch._inductor.codegen.triton'
5685
+ anti-bloat:
5686
+ - description: 'remove setuptools usage'
5687
+ no-auto-follow:
5688
+ 'triton': 'ignore'
5689
+ when: 'not use_setuptools'
5690
+
5691
+ - module-name: 'torch._inductor.codegen.triton_utils'
5692
+ anti-bloat:
5693
+ - description: 'remove setuptools usage'
5694
+ no-auto-follow:
5695
+ 'triton': 'ignore'
5696
+ when: 'not use_setuptools'
5697
+
5698
+ - module-name: 'torch._inductor.coordinate_descent_tuner'
5699
+ anti-bloat:
5700
+ - description: 'remove setuptools usage via triton'
5701
+ replacements_plain:
5702
+ 'if has_triton()': 'if False'
5703
+ when: 'not use_setuptools'
5704
+
5705
+ - module-name: 'torch._inductor.decomposition'
5706
+ anti-bloat:
5707
+ - description: 'remove setuptools usage via triton'
5708
+ change_function:
5709
+ 'should_pad_bench': 'un-callable'
5710
+ when: 'not use_setuptools'
5711
+
5344
5712
  - module-name: 'torch._inductor.graph'
5345
5713
  anti-bloat:
5346
5714
  - description: 'remove setuptools usage'
@@ -5372,6 +5740,13 @@
5372
5740
  'from .codegen.wrapper import pexpr': 'raise ImportError'
5373
5741
  when: 'not use_setuptools'
5374
5742
 
5743
+ - module-name: 'torch._inductor.triton_heuristics'
5744
+ anti-bloat:
5745
+ - description: 'remove setuptools usage via triton'
5746
+ replacements_plain:
5747
+ 'if has_triton()': 'if False'
5748
+ when: 'not use_setuptools'
5749
+
5375
5750
  - module-name: 'torch._inductor.triton_ops.autotune'
5376
5751
  anti-bloat:
5377
5752
  - description: 'remove setuptools usage'
@@ -5379,6 +5754,45 @@
5379
5754
  'from ..codecache import cache_dir': ''
5380
5755
  'cache_dir()': '__nuitka_binary_dir, ".cache"'
5381
5756
  when: 'not use_setuptools'
5757
+ - description: 'remove setuptools usage via triton'
5758
+ no-auto-follow:
5759
+ 'triton': 'ignore'
5760
+ when: 'not use_setuptools'
5761
+
5762
+ - module-name: 'torch._inductor.triton_ops.conv'
5763
+ anti-bloat:
5764
+ - description: 'remove setuptools usage via triton'
5765
+ replacements_plain:
5766
+ 'has_triton()': 'False'
5767
+ when: 'not use_setuptools'
5768
+
5769
+ - module-name: 'torch._inductor.triton_ops.conv1x1'
5770
+ anti-bloat:
5771
+ - description: 'remove setuptools usage via triton'
5772
+ replacements_plain:
5773
+ 'has_triton()': 'False'
5774
+ when: 'not use_setuptools'
5775
+
5776
+ - module-name: 'torch._inductor.triton_ops.conv_perf_model'
5777
+ anti-bloat:
5778
+ - description: 'remove setuptools usage via triton'
5779
+ no-auto-follow:
5780
+ 'triton': 'ignore'
5781
+ when: 'not use_setuptools'
5782
+
5783
+ - module-name: 'torch._inductor.utils'
5784
+ anti-bloat:
5785
+ - description: 'remove setuptools usage via triton'
5786
+ replacements_plain:
5787
+ 'if _has_triton()': 'if False'
5788
+ change_function:
5789
+ 'has_triton': "'(lambda: False)'"
5790
+ 'do_bench': 'un-callable'
5791
+ 'get_device_tflops': 'un-callable'
5792
+ 'get_gpu_dram_gbps': 'un-callable'
5793
+ no-auto-follow:
5794
+ 'triton': 'ignore'
5795
+ when: 'not use_setuptools'
5382
5796
 
5383
5797
  - module-name: 'torch._jit_internal'
5384
5798
  anti-bloat:
@@ -5393,14 +5807,6 @@
5393
5807
  "f.f_code.co_name != '<module>'": "not f.f_code.co_name.startswith('<module')"
5394
5808
  'f.f_code.co_name != "<module>"': "not f.f_code.co_name.startswith('<module')"
5395
5809
 
5396
- - module-name: 'torch.jit._state'
5397
- implicit-imports:
5398
- - pre-import-code:
5399
- - |
5400
- import os
5401
- os.environ['PYTORCH_JIT'] = "0"
5402
- when: 'standalone'
5403
-
5404
5810
  - module-name: 'torch.onnx.symbolic_registry'
5405
5811
  implicit-imports:
5406
5812
  - depends:
@@ -5409,6 +5815,23 @@
5409
5815
  - 'torch.onnx.symbolic_opset14'
5410
5816
  - 'torch.onnx.symbolic_opset15'
5411
5817
 
5818
+ - module-name: 'torch.sparse._triton_ops'
5819
+ anti-bloat:
5820
+ - description: 'remove setuptools usage via triton'
5821
+ replacements_plain:
5822
+ 'if _has_triton()': 'if False'
5823
+ change_function:
5824
+ '_has_triton': "'(lambda: False)'"
5825
+ when: 'not use_setuptools'
5826
+
5827
+ - module-name: 'torch.testing._internal.common_utils'
5828
+ anti-bloat:
5829
+ - description: 'remove pytest reference'
5830
+ change_function:
5831
+ 'run_tests': 'un-callable'
5832
+ 'get_pytest_test_cases': 'un-callable'
5833
+ when: 'not use_pytest'
5834
+
5412
5835
  - module-name: 'torch.utils.data._typing'
5413
5836
  anti-bloat:
5414
5837
  - description: 'compatibility workaround'
@@ -5519,11 +5942,24 @@
5519
5942
  - module-name: 'transformers'
5520
5943
  data-files:
5521
5944
  include-metadata:
5522
- - 'torch'
5945
+ - 'accelerate'
5946
+ - 'bitsandbytes'
5947
+ - 'datasets'
5523
5948
  - 'flax'
5949
+ - 'ftfy'
5950
+ - 'jinja2'
5951
+ - 'pandas'
5952
+ - 'peft'
5953
+ - 'psutil'
5524
5954
  - 'tensorflow'
5955
+ - 'torch'
5525
5956
  - 'tokenizers'
5957
+ - 'torchvision'
5958
+ - 'scipy'
5959
+ - 'safetensors'
5526
5960
  - 'sentencepiece'
5961
+ - 'timm'
5962
+ - 'openai'
5527
5963
 
5528
5964
  - module-name: 'transformers.integrations'
5529
5965
  anti-bloat:
@@ -5688,13 +6124,6 @@
5688
6124
  replacements_plain:
5689
6125
  'coro.cr_frame.f_locals.setdefault(LOCALS_KEY_KI_PROTECTION_ENABLED, system_task)': ''
5690
6126
 
5691
- - module-name: 'triton.compiler'
5692
- anti-bloat:
5693
- - description: 'remove setuptools usage'
5694
- replacements_plain:
5695
- 'import setuptools': ''
5696
- when: 'not use_setuptools'
5697
-
5698
6127
  - module-name: 'tsfresh.feature_extraction.data'
5699
6128
  anti-bloat:
5700
6129
  - description: 'remove dask reference via distributed module'
@@ -6161,6 +6590,12 @@
6161
6590
  dirs:
6162
6591
  - 'schemas'
6163
6592
 
6593
+ - module-name: 'yapf_third_party._ylib2to3'
6594
+ data-files:
6595
+ patterns:
6596
+ - 'Grammar.txt'
6597
+ - 'PatternGrammar.txt'
6598
+
6164
6599
  - module-name: 'zmq'
6165
6600
  dlls:
6166
6601
  # Do not look at this one, using dest_path and suffixes is not
@@ -6183,6 +6618,7 @@
6183
6618
  anti-bloat:
6184
6619
  - description: 'remove unittest reference'
6185
6620
  change_function:
6621
+ # TODO: For a decorator, this looks breaking
6186
6622
  '_skip_under_py2': "'(lambda test_method: None)'"
6187
6623
  '_skip_under_py3k': "'(lambda test_method: None)'"
6188
6624
  when: 'not use_unittest'