Nuitka-winsvc 2.3.11__cp311-cp311-win_amd64.whl → 2.4.1__cp311-cp311-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.
Potentially problematic release.
This version of Nuitka-winsvc might be problematic. Click here for more details.
- Nuitka_winsvc-2.3.11.data/scripts/nuitka-run.bat → Nuitka_winsvc-2.4.1.data/scripts/nuitka-run.cmd +1 -1
- {Nuitka_winsvc-2.3.11.dist-info → Nuitka_winsvc-2.4.1.dist-info}/METADATA +1 -1
- {Nuitka_winsvc-2.3.11.dist-info → Nuitka_winsvc-2.4.1.dist-info}/RECORD +210 -207
- {Nuitka_winsvc-2.3.11.dist-info → Nuitka_winsvc-2.4.1.dist-info}/WHEEL +1 -1
- nuitka/CacheCleanup.py +6 -1
- nuitka/HardImportRegistry.py +29 -2
- nuitka/MainControl.py +62 -35
- nuitka/ModuleRegistry.py +11 -3
- nuitka/OptionParsing.py +78 -39
- nuitka/Options.py +142 -35
- nuitka/OutputDirectories.py +5 -0
- nuitka/PostProcessing.py +23 -14
- nuitka/PythonFlavors.py +22 -4
- nuitka/PythonVersions.py +18 -0
- nuitka/TreeXML.py +6 -3
- nuitka/Version.py +1 -1
- nuitka/__main__.py +55 -10
- nuitka/build/Backend.scons +6 -1
- nuitka/build/CCompilerVersion.scons +1 -0
- nuitka/build/Onefile.scons +4 -0
- nuitka/build/SconsCaching.py +1 -0
- nuitka/build/SconsCompilerSettings.py +1 -0
- nuitka/build/SconsHacks.py +5 -1
- nuitka/build/SconsInterface.py +2 -0
- nuitka/build/SconsUtils.py +4 -1
- nuitka/build/include/nuitka/allocator.h +27 -5
- nuitka/build/include/nuitka/calling.h +1 -1
- nuitka/build/include/nuitka/compiled_frame.h +23 -23
- nuitka/build/include/nuitka/compiled_method.h +1 -1
- nuitka/build/include/nuitka/exception_groups.h +0 -2
- nuitka/build/include/nuitka/helper/attributes.h +7 -1
- nuitka/build/include/nuitka/helper/subscripts.h +1 -1
- nuitka/build/include/nuitka/helpers.h +7 -4
- nuitka/build/include/nuitka/prelude.h +6 -10
- nuitka/build/include/nuitka/printing.h +2 -0
- nuitka/build/include/nuitka/unfreezing.h +5 -5
- nuitka/build/inline_copy/tqdm/tqdm/_monitor.py +4 -1
- nuitka/build/static_src/CompiledAsyncgenType.c +2 -4
- nuitka/build/static_src/CompiledCellType.c +7 -7
- nuitka/build/static_src/CompiledCodeHelpers.c +49 -36
- nuitka/build/static_src/CompiledCoroutineType.c +2 -4
- nuitka/build/static_src/CompiledFrameType.c +109 -82
- nuitka/build/static_src/CompiledFunctionType.c +36 -9
- nuitka/build/static_src/CompiledGeneratorType.c +12 -10
- nuitka/build/static_src/CompiledGeneratorTypeUncompiledIntegration.c +2 -2
- nuitka/build/static_src/CompiledMethodType.c +14 -13
- nuitka/build/static_src/HelpersAttributes.c +13 -15
- nuitka/build/static_src/HelpersBuiltin.c +16 -7
- nuitka/build/static_src/HelpersCalling.c +13 -13
- nuitka/build/static_src/HelpersCallingGenerated.c +22 -22
- nuitka/build/static_src/HelpersComparisonEq.c +110 -110
- nuitka/build/static_src/HelpersComparisonEqUtils.c +1 -1
- nuitka/build/static_src/HelpersComparisonGe.c +110 -110
- nuitka/build/static_src/HelpersComparisonGt.c +110 -110
- nuitka/build/static_src/HelpersComparisonLe.c +110 -110
- nuitka/build/static_src/HelpersComparisonLt.c +110 -110
- nuitka/build/static_src/HelpersComparisonNe.c +110 -110
- nuitka/build/static_src/HelpersConstantsBlob.c +480 -481
- nuitka/build/static_src/HelpersDictionaries.c +9 -0
- nuitka/build/static_src/HelpersFiles.c +2 -2
- nuitka/build/static_src/HelpersFilesystemPaths.c +28 -13
- nuitka/build/static_src/HelpersImport.c +1 -1
- nuitka/build/static_src/HelpersLists.c +5 -1
- nuitka/build/static_src/HelpersMatching.c +95 -35
- nuitka/build/static_src/HelpersOperationInplaceAdd.c +23 -23
- nuitka/build/static_src/HelpersOperationInplaceAddUtils.c +1 -0
- nuitka/build/static_src/HelpersOperationInplaceBitand.c +11 -11
- nuitka/build/static_src/HelpersOperationInplaceBitor.c +11 -11
- nuitka/build/static_src/HelpersOperationInplaceBitxor.c +11 -11
- nuitka/build/static_src/HelpersOperationInplaceFloordiv.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceLshift.c +9 -9
- nuitka/build/static_src/HelpersOperationInplaceMatmult.c +10 -10
- nuitka/build/static_src/HelpersOperationInplaceMod.c +47 -47
- nuitka/build/static_src/HelpersOperationInplaceMult.c +28 -28
- nuitka/build/static_src/HelpersOperationInplaceOlddiv.c +17 -17
- nuitka/build/static_src/HelpersOperationInplacePow.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceRshift.c +9 -9
- nuitka/build/static_src/HelpersOperationInplaceSub.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceTruediv.c +17 -17
- nuitka/build/static_src/HelpersSequences.c +1 -1
- nuitka/build/static_src/HelpersTypes.c +8 -4
- nuitka/build/static_src/MainProgram.c +28 -9
- nuitka/build/static_src/MetaPathBasedLoader.c +124 -108
- nuitka/build/static_src/MetaPathBasedLoaderImportlibMetadataDistribution.c +13 -4
- nuitka/build/static_src/MetaPathBasedLoaderResourceReaderFiles.c +1 -1
- nuitka/build/static_src/OnefileBootstrap.c +34 -6
- nuitka/code_generation/AttributeCodes.py +12 -10
- nuitka/code_generation/CodeGeneration.py +6 -7
- nuitka/code_generation/ConstantCodes.py +53 -10
- nuitka/code_generation/GlobalConstants.py +6 -6
- nuitka/code_generation/Indentation.py +3 -4
- nuitka/code_generation/LoaderCodes.py +3 -0
- nuitka/code_generation/LocalsDictCodes.py +36 -14
- nuitka/code_generation/MatchCodes.py +23 -4
- nuitka/code_generation/ModuleCodes.py +0 -7
- nuitka/code_generation/Namify.py +2 -0
- nuitka/code_generation/PackageResourceCodes.py +5 -1
- nuitka/code_generation/templates/CodeTemplatesConstants.py +6 -4
- nuitka/code_generation/templates/CodeTemplatesLoader.py +1 -1
- nuitka/code_generation/templates/CodeTemplatesModules.py +3 -3
- nuitka/code_generation/templates/CodeTemplatesVariables.py +16 -2
- nuitka/code_generation/templates_c/CodeTemplateCallsMethodPositional.c.j2 +2 -2
- nuitka/code_generation/templates_c/HelperOperationBinary.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationInplace.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsBinary.c.j2 +7 -7
- nuitka/freezer/DependsExe.py +3 -1
- nuitka/freezer/DllDependenciesMacOS.py +5 -12
- nuitka/freezer/IncludedDataFiles.py +12 -3
- nuitka/freezer/IncludedEntryPoints.py +8 -2
- nuitka/freezer/Onefile.py +6 -1
- nuitka/freezer/Standalone.py +9 -2
- nuitka/importing/Importing.py +14 -5
- nuitka/importing/Recursion.py +3 -0
- nuitka/nodes/AttributeNodesGenerated.py +21 -12
- nuitka/nodes/BuiltinOpenNodes.py +5 -0
- nuitka/nodes/BuiltinOperationNodeBasesGenerated.py +11 -11
- nuitka/nodes/BuiltinRefNodes.py +41 -1
- nuitka/nodes/ChildrenHavingMixins.py +143 -355
- nuitka/nodes/ClassNodes.py +30 -12
- nuitka/nodes/CodeObjectSpecs.py +9 -0
- nuitka/nodes/ExpressionBasesGenerated.py +11 -11
- nuitka/nodes/FunctionNodes.py +7 -11
- nuitka/nodes/FutureSpecs.py +16 -3
- nuitka/nodes/GeneratorNodes.py +2 -2
- nuitka/nodes/HardImportNodesGenerated.py +11 -134
- nuitka/nodes/LocalsScopes.py +19 -23
- nuitka/nodes/MatchNodes.py +18 -7
- nuitka/nodes/ModuleAttributeNodes.py +1 -20
- nuitka/nodes/ModuleNodes.py +23 -6
- nuitka/nodes/NodeBases.py +3 -2
- nuitka/nodes/NodeMetaClasses.py +26 -10
- nuitka/nodes/ReturnNodes.py +1 -1
- nuitka/nodes/StatementBasesGenerated.py +11 -11
- nuitka/nodes/SubscriptNodes.py +4 -4
- nuitka/nodes/VariableAssignNodes.py +1 -1
- nuitka/nodes/VariableRefNodes.py +28 -2
- nuitka/optimizations/FunctionInlining.py +3 -6
- nuitka/optimizations/Optimization.py +13 -12
- nuitka/optimizations/TraceCollections.py +19 -4
- nuitka/plugins/PluginBase.py +121 -133
- nuitka/plugins/Plugins.py +91 -3
- nuitka/plugins/YamlPluginBase.py +121 -0
- nuitka/plugins/standard/AntiBloatPlugin.py +87 -28
- nuitka/plugins/standard/DataFilesPlugin.py +15 -6
- nuitka/plugins/standard/DelvewheelPlugin.py +7 -3
- nuitka/plugins/standard/DllFilesPlugin.py +5 -3
- nuitka/plugins/standard/ImplicitImports.py +34 -20
- nuitka/plugins/standard/MatplotlibPlugin.py +3 -1
- nuitka/plugins/standard/MultiprocessingPlugin.py +2 -2
- nuitka/plugins/standard/OptionsNannyPlugin.py +1 -1
- nuitka/plugins/standard/PySidePyQtPlugin.py +11 -12
- nuitka/plugins/standard/SpacyPlugin.py +136 -0
- nuitka/plugins/standard/standard.nuitka-package.config.yml +462 -179
- nuitka/plugins/standard/stdlib3.nuitka-package.config.yml +6 -0
- nuitka/reports/Reports.py +53 -5
- nuitka/specs/BuiltinParameterSpecs.py +1 -1
- nuitka/specs/HardImportSpecs.py +0 -6
- nuitka/tools/data_composer/DataComposer.py +29 -27
- nuitka/tools/environments/CreateEnvironment.py +1 -0
- nuitka/tools/environments/Virtualenv.py +25 -11
- nuitka/tools/general/find_module/FindModuleCode.py +13 -3
- nuitka/tools/onefile_compressor/OnefileCompressor.py +21 -4
- nuitka/tools/scanning/DisplayPackageDLLs.py +17 -3
- nuitka/tools/specialize/CTypeDescriptions.py +13 -7
- nuitka/tools/specialize/SpecializePython.py +18 -1
- nuitka/tools/testing/Common.py +19 -6
- nuitka/tools/testing/check_reference_counts/__main__.py +1 -1
- nuitka/tools/testing/run_nuitka_tests/__main__.py +0 -20
- nuitka/tools/watch/AutoStage.py +144 -0
- nuitka/tools/watch/__main__.py +79 -32
- nuitka/tree/Building.py +105 -104
- nuitka/tree/ComplexCallHelperFunctions.py +16 -26
- nuitka/tree/InternalModule.py +8 -0
- nuitka/tree/ReformulationAssignmentStatements.py +29 -59
- nuitka/tree/ReformulationClasses.py +10 -17
- nuitka/tree/ReformulationClasses3.py +69 -43
- nuitka/tree/ReformulationComparisonExpressions.py +6 -16
- nuitka/tree/ReformulationContractionExpressions.py +14 -23
- nuitka/tree/ReformulationDictionaryCreation.py +6 -10
- nuitka/tree/ReformulationExecStatements.py +10 -10
- nuitka/tree/ReformulationForLoopStatements.py +6 -12
- nuitka/tree/ReformulationFunctionStatements.py +21 -28
- nuitka/tree/ReformulationImportStatements.py +8 -10
- nuitka/tree/ReformulationLambdaExpressions.py +3 -6
- nuitka/tree/ReformulationMatchStatements.py +166 -60
- nuitka/tree/ReformulationMultidist.py +3 -1
- nuitka/tree/ReformulationNamespacePackages.py +1 -1
- nuitka/tree/ReformulationPrintStatements.py +3 -6
- nuitka/tree/ReformulationSequenceCreation.py +13 -26
- nuitka/tree/ReformulationTryFinallyStatements.py +15 -0
- nuitka/tree/ReformulationWithStatements.py +12 -16
- nuitka/tree/SourceHandling.py +13 -8
- nuitka/tree/VariableClosure.py +5 -21
- nuitka/utils/Distributions.py +80 -11
- nuitka/utils/Download.py +38 -31
- nuitka/utils/Execution.py +13 -2
- nuitka/utils/FileOperations.py +55 -28
- nuitka/utils/Images.py +6 -1
- nuitka/utils/Importing.py +1 -1
- nuitka/utils/ModuleNames.py +11 -5
- nuitka/utils/ReExecute.py +17 -13
- nuitka/utils/SharedLibraries.py +32 -8
- nuitka/utils/Signing.py +3 -1
- nuitka/utils/StaticLibraries.py +51 -41
- nuitka/utils/Timing.py +1 -1
- nuitka/utils/Utils.py +29 -7
- /Nuitka_winsvc-2.3.11.data/scripts/nuitka.bat → /Nuitka_winsvc-2.4.1.data/scripts/nuitka.cmd +0 -0
- {Nuitka_winsvc-2.3.11.dist-info → Nuitka_winsvc-2.4.1.dist-info}/LICENSE.txt +0 -0
- {Nuitka_winsvc-2.3.11.dist-info → Nuitka_winsvc-2.4.1.dist-info}/entry_points.txt +0 -0
- {Nuitka_winsvc-2.3.11.dist-info → Nuitka_winsvc-2.4.1.dist-info}/top_level.txt +0 -0
|
@@ -1433,7 +1433,7 @@ class NuitkaPluginNoQt(NuitkaPluginBase):
|
|
|
1433
1433
|
"""This is a plugins for suppression of all Qt binding plugins."""
|
|
1434
1434
|
|
|
1435
1435
|
plugin_name = "no-qt"
|
|
1436
|
-
plugin_desc = "Disable all Qt bindings
|
|
1436
|
+
plugin_desc = "Disable inclusion of all Qt bindings."
|
|
1437
1437
|
|
|
1438
1438
|
warned_about = set()
|
|
1439
1439
|
|
|
@@ -1442,22 +1442,21 @@ class NuitkaPluginNoQt(NuitkaPluginBase):
|
|
|
1442
1442
|
):
|
|
1443
1443
|
top_package_name = module_name.getTopLevelPackageName()
|
|
1444
1444
|
|
|
1445
|
-
if
|
|
1446
|
-
if top_package_name in
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
"""\
|
|
1445
|
+
if top_package_name in getQtBindingNames():
|
|
1446
|
+
if isStandaloneMode() and top_package_name not in self.warned_about:
|
|
1447
|
+
self.info(
|
|
1448
|
+
"""\
|
|
1450
1449
|
Unwanted import of '%(unwanted)s' that is forbidden encountered, preventing \
|
|
1451
1450
|
its use. As a result an "ImportError" might be given at run time. Uninstall \
|
|
1452
1451
|
it for full compatible behavior with the uncompiled code to debug it."""
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1452
|
+
% {
|
|
1453
|
+
"unwanted": top_package_name,
|
|
1454
|
+
}
|
|
1455
|
+
)
|
|
1457
1456
|
|
|
1458
|
-
|
|
1457
|
+
self.warned_about.add(top_package_name)
|
|
1459
1458
|
|
|
1460
|
-
|
|
1459
|
+
return (False, "Not included due to all Qt bindings disallowed.")
|
|
1461
1460
|
|
|
1462
1461
|
def getEvaluationConditionControlTags(self):
|
|
1463
1462
|
return {"use_noqt": True}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
""" Plugin for spacy.
|
|
5
|
+
|
|
6
|
+
spell-checker: ignore spacy
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from nuitka.code_generation.ConstantCodes import addDistributionMetadataValue
|
|
10
|
+
from nuitka.containers.OrderedSets import OrderedSet
|
|
11
|
+
from nuitka.Options import isStandaloneMode
|
|
12
|
+
from nuitka.plugins.PluginBase import NuitkaPluginBase
|
|
13
|
+
from nuitka.utils.Distributions import getEntryPointGroup
|
|
14
|
+
from nuitka.utils.ModuleNames import ModuleName
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class NuitkaPluginSpacy(NuitkaPluginBase):
|
|
18
|
+
"""This class represents the main logic of the plugin."""
|
|
19
|
+
|
|
20
|
+
plugin_name = "spacy"
|
|
21
|
+
plugin_desc = "Required by 'spacy' package."
|
|
22
|
+
|
|
23
|
+
def __init__(self, include_language_models):
|
|
24
|
+
self.include_language_models = tuple(
|
|
25
|
+
ModuleName(include_language_model)
|
|
26
|
+
for include_language_model in include_language_models
|
|
27
|
+
)
|
|
28
|
+
self.available_language_models = None
|
|
29
|
+
|
|
30
|
+
self.used_language_model_names = None
|
|
31
|
+
|
|
32
|
+
@staticmethod
|
|
33
|
+
def isAlwaysEnabled():
|
|
34
|
+
return True
|
|
35
|
+
|
|
36
|
+
@staticmethod
|
|
37
|
+
def isRelevant():
|
|
38
|
+
return isStandaloneMode()
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def addPluginCommandLineOptions(cls, group):
|
|
42
|
+
group.add_option(
|
|
43
|
+
"--spacy-language-model",
|
|
44
|
+
action="append",
|
|
45
|
+
dest="include_language_models",
|
|
46
|
+
default=[],
|
|
47
|
+
help="""\
|
|
48
|
+
Spacy language models to use. Can be specified multiple times. Use 'all' to
|
|
49
|
+
include all downloaded models.""",
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
def _getInstalledSpaceLanguageModels(self):
|
|
53
|
+
if self.available_language_models is None:
|
|
54
|
+
self.available_language_models = tuple(
|
|
55
|
+
entry_point.module_name
|
|
56
|
+
for entry_point in sorted(getEntryPointGroup("spacy_models"))
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
return self.available_language_models
|
|
60
|
+
|
|
61
|
+
def getImplicitImports(self, module):
|
|
62
|
+
if module.getFullName() == "spacy":
|
|
63
|
+
self.used_language_model_names = OrderedSet()
|
|
64
|
+
|
|
65
|
+
if "all" in self.include_language_models:
|
|
66
|
+
self.used_language_model_names.update(
|
|
67
|
+
self._getInstalledSpaceLanguageModels()
|
|
68
|
+
)
|
|
69
|
+
else:
|
|
70
|
+
for include_language_model_name in self.include_language_models:
|
|
71
|
+
if (
|
|
72
|
+
include_language_model_name
|
|
73
|
+
in self._getInstalledSpaceLanguageModels()
|
|
74
|
+
):
|
|
75
|
+
self.used_language_model_names.add(include_language_model_name)
|
|
76
|
+
else:
|
|
77
|
+
self.sysexit(
|
|
78
|
+
"""\
|
|
79
|
+
Error, requested to include language model '%s' that was \
|
|
80
|
+
not found, the list of installed ones is '%s'."""
|
|
81
|
+
% (
|
|
82
|
+
include_language_model_name,
|
|
83
|
+
",".join(self._getInstalledSpaceLanguageModels()),
|
|
84
|
+
)
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
if not self.used_language_model_names:
|
|
88
|
+
self.warning(
|
|
89
|
+
"""\
|
|
90
|
+
No language models included. Use the option '--spacy-language-model=language_model_name' to \
|
|
91
|
+
include one. Use 'all' to include all downloaded ones, or select from the list of installed \
|
|
92
|
+
ones: %s"""
|
|
93
|
+
% ",".join(self._getInstalledSpaceLanguageModels())
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
for used_language_model_name in self.used_language_model_names:
|
|
97
|
+
yield used_language_model_name
|
|
98
|
+
|
|
99
|
+
def considerDataFiles(self, module):
|
|
100
|
+
if module.getFullName() == "spacy":
|
|
101
|
+
# Do not use it accidentally for anything else
|
|
102
|
+
del module
|
|
103
|
+
|
|
104
|
+
for used_language_model_name in self.used_language_model_names:
|
|
105
|
+
# Meta data is required for language models to be accepted.
|
|
106
|
+
addDistributionMetadataValue(
|
|
107
|
+
distribution_name=used_language_model_name.asString(),
|
|
108
|
+
distribution=None,
|
|
109
|
+
reason="for 'spacy' to locate the language model",
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
module_folder = self.locateModule(used_language_model_name)
|
|
113
|
+
|
|
114
|
+
yield self.makeIncludedDataDirectory(
|
|
115
|
+
source_path=module_folder,
|
|
116
|
+
dest_path=used_language_model_name.asPath(),
|
|
117
|
+
reason="model data for %r" % (used_language_model_name.asString()),
|
|
118
|
+
tags="spacy",
|
|
119
|
+
raw=True,
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
124
|
+
# integrates with CPython, but also works on its own.
|
|
125
|
+
#
|
|
126
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
127
|
+
# you may not use this file except in compliance with the License.
|
|
128
|
+
# You may obtain a copy of the License at
|
|
129
|
+
#
|
|
130
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
131
|
+
#
|
|
132
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
133
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
134
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
135
|
+
# See the License for the specific language governing permissions and
|
|
136
|
+
# limitations under the License.
|