Nuitka-winsvc 2.1.5__cp311-cp311-win_amd64.whl → 2.2.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.1.5.dist-info → Nuitka_winsvc-2.2.1.dist-info}/METADATA +1 -1
- {Nuitka_winsvc-2.1.5.dist-info → Nuitka_winsvc-2.2.1.dist-info}/RECORD +234 -225
- nuitka/Errors.py +4 -0
- nuitka/HardImportRegistry.py +18 -1
- nuitka/MainControl.py +27 -30
- nuitka/OptionParsing.py +32 -30
- nuitka/Options.py +26 -13
- nuitka/OutputDirectories.py +7 -4
- nuitka/PostProcessing.py +9 -7
- nuitka/Progress.py +3 -3
- nuitka/PythonVersions.py +2 -2
- nuitka/TreeXML.py +1 -1
- nuitka/Version.py +1 -1
- nuitka/build/Backend.scons +2 -1
- nuitka/build/DataComposerInterface.py +1 -0
- nuitka/build/Onefile.scons +2 -1
- nuitka/build/SconsCaching.py +64 -46
- nuitka/build/SconsCompilerSettings.py +19 -6
- nuitka/build/SconsHacks.py +0 -1
- nuitka/build/SconsInterface.py +84 -5
- nuitka/build/SconsProgress.py +0 -1
- nuitka/build/SconsUtils.py +9 -5
- nuitka/build/include/nuitka/allocator.h +8 -3
- nuitka/build/include/nuitka/compiled_cell.h +8 -0
- nuitka/build/include/nuitka/constants.h +2 -0
- nuitka/build/include/nuitka/exceptions.h +554 -179
- nuitka/build/include/nuitka/helper/dictionaries.h +1 -1
- nuitka/build/include/nuitka/helper/import_hard.h +3 -0
- nuitka/build/include/nuitka/helper/ints.h +15 -2
- nuitka/build/include/nuitka/helper/lists.h +4 -1
- nuitka/build/include/nuitka/helper/raising.h +12 -0
- nuitka/build/include/nuitka/helper/tuples.h +5 -1
- nuitka/build/include/nuitka/helpers.h +5 -0
- nuitka/build/include/nuitka/importing.h +3 -4
- nuitka/build/include/nuitka/jit_sources.h +25 -0
- nuitka/build/include/nuitka/prelude.h +38 -11
- nuitka/build/include/nuitka/printing.h +3 -0
- nuitka/build/include/nuitka/threading.h +2 -6
- nuitka/build/include/nuitka/type_aliases.h +27 -0
- nuitka/build/inline_copy/pkg_resources/pkg_resources/__init__.py +0 -3
- nuitka/build/inline_copy/tqdm/tqdm/version.py +1 -4
- nuitka/build/static_src/CompiledAsyncgenType.c +99 -114
- nuitka/build/static_src/CompiledCodeHelpers.c +24 -14
- nuitka/build/static_src/CompiledCoroutineType.c +96 -114
- nuitka/build/static_src/CompiledFrameType.c +14 -11
- nuitka/build/static_src/CompiledFunctionType.c +34 -7
- nuitka/build/static_src/CompiledGeneratorType.c +248 -142
- nuitka/build/static_src/CompiledGeneratorTypeUncompiledIntegration.c +60 -70
- nuitka/build/static_src/CompiledMethodType.c +8 -7
- nuitka/build/static_src/HelpersAttributes.c +2 -19
- nuitka/build/static_src/HelpersBuiltin.c +2 -1
- nuitka/build/static_src/HelpersComparisonEq.c +32 -18
- nuitka/build/static_src/HelpersComparisonGe.c +50 -36
- nuitka/build/static_src/HelpersComparisonGt.c +50 -36
- nuitka/build/static_src/HelpersComparisonLe.c +50 -36
- nuitka/build/static_src/HelpersComparisonLt.c +50 -36
- nuitka/build/static_src/HelpersComparisonNe.c +32 -18
- nuitka/build/static_src/HelpersDeepcopy.c +6 -8
- nuitka/build/static_src/HelpersDictionaries.c +8 -3
- nuitka/build/static_src/HelpersExceptions.c +36 -22
- nuitka/build/static_src/HelpersFiles.c +9 -0
- nuitka/build/static_src/HelpersFilesystemPaths.c +7 -7
- nuitka/build/static_src/HelpersImportHard.c +15 -0
- nuitka/build/static_src/HelpersJitSources.c +46 -0
- nuitka/build/static_src/HelpersLists.c +40 -0
- nuitka/build/static_src/HelpersOperationBinaryAdd.c +66 -66
- nuitka/build/static_src/HelpersOperationBinaryAddUtils.c +80 -33
- nuitka/build/static_src/HelpersOperationBinaryMultUtils.c +16 -13
- nuitka/build/static_src/HelpersOperationBinarySub.c +39 -39
- nuitka/build/static_src/HelpersOperationInplaceAdd.c +54 -54
- nuitka/build/static_src/HelpersOperationInplaceAddUtils.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceSub.c +50 -50
- nuitka/build/static_src/HelpersProfiling.c +3 -4
- nuitka/build/static_src/HelpersRaising.c +62 -1
- nuitka/build/static_src/HelpersStrings.c +203 -8
- nuitka/build/static_src/HelpersTypes.c +42 -0
- nuitka/build/static_src/MainProgram.c +1 -1
- nuitka/build/static_src/MetaPathBasedLoader.c +2 -1
- nuitka/build/static_src/OnefileBootstrap.c +3 -3
- nuitka/code_generation/BinaryOperationHelperDefinitions.py +5 -3
- nuitka/code_generation/BuiltinCodes.py +1 -0
- nuitka/code_generation/CodeGeneration.py +11 -0
- nuitka/code_generation/CodeHelpers.py +5 -3
- nuitka/code_generation/CodeObjectCodes.py +10 -6
- nuitka/code_generation/ComparisonCodes.py +19 -3
- nuitka/code_generation/ConstantCodes.py +5 -0
- nuitka/code_generation/Contexts.py +22 -6
- nuitka/code_generation/Emission.py +1 -0
- nuitka/code_generation/ErrorCodes.py +8 -16
- nuitka/code_generation/EvalCodes.py +5 -3
- nuitka/code_generation/ExceptionCodes.py +8 -1
- nuitka/code_generation/ExpressionCTypeSelectionHelpers.py +1 -0
- nuitka/code_generation/FrameCodes.py +5 -3
- nuitka/code_generation/FunctionCodes.py +0 -1
- nuitka/code_generation/GeneratorCodes.py +3 -3
- nuitka/code_generation/GlobalConstants.py +1 -2
- nuitka/code_generation/ImportCodes.py +2 -0
- nuitka/code_generation/JitCodes.py +44 -0
- nuitka/code_generation/ListCodes.py +11 -17
- nuitka/code_generation/MatchCodes.py +0 -1
- nuitka/code_generation/ModuleCodes.py +2 -1
- nuitka/code_generation/Namify.py +0 -1
- nuitka/code_generation/NetworkxCodes.py +51 -0
- nuitka/code_generation/OperationCodes.py +8 -6
- nuitka/code_generation/PackageResourceCodes.py +7 -5
- nuitka/code_generation/TensorflowCodes.py +54 -0
- nuitka/code_generation/TypeAliasCodes.py +71 -0
- nuitka/code_generation/VariableCodes.py +7 -5
- nuitka/code_generation/VariableDeclarations.py +1 -0
- nuitka/code_generation/c_types/CTypeCLongs.py +0 -1
- nuitka/code_generation/c_types/CTypeNuitkaInts.py +0 -1
- nuitka/code_generation/c_types/CTypeVoids.py +1 -0
- nuitka/code_generation/templates/CodeTemplatesConstants.py +15 -0
- nuitka/code_generation/templates/CodeTemplatesExceptions.py +1 -1
- nuitka/code_generation/templates/CodeTemplatesIterators.py +0 -1
- nuitka/code_generation/templates/CodeTemplatesLoader.py +0 -1
- nuitka/code_generation/templates/CodeTemplatesModules.py +4 -1
- nuitka/code_generation/templates/CodeTemplatesVariables.py +8 -8
- nuitka/code_generation/templates/TemplateDebugWrapper.py +0 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonUnicode.c.j2 +4 -0
- nuitka/code_generation/templates_c/HelperSlotsLong.c.j2 +9 -7
- nuitka/containers/Namedtuples.py +0 -1
- nuitka/finalizations/Finalization.py +1 -0
- nuitka/finalizations/FinalizeMarkups.py +0 -1
- nuitka/freezer/DllDependenciesMacOS.py +60 -13
- nuitka/freezer/DllDependenciesPosix.py +0 -1
- nuitka/freezer/IncludedDataFiles.py +46 -15
- nuitka/freezer/IncludedEntryPoints.py +5 -3
- nuitka/freezer/Standalone.py +6 -1
- nuitka/importing/ImportCache.py +2 -2
- nuitka/importing/ImportResolving.py +80 -78
- nuitka/importing/Importing.py +34 -1
- nuitka/nodes/AttributeNodesGenerated.py +21 -6
- nuitka/nodes/BuiltinComplexNodes.py +1 -0
- nuitka/nodes/BuiltinFormatNodes.py +1 -0
- nuitka/nodes/BuiltinIteratorNodes.py +5 -3
- nuitka/nodes/BuiltinOperationNodeBasesGenerated.py +21 -6
- nuitka/nodes/BuiltinRefNodes.py +8 -1
- nuitka/nodes/BuiltinVarsNodes.py +0 -1
- nuitka/nodes/ChildrenHavingMixins.py +906 -186
- nuitka/nodes/CodeObjectSpecs.py +1 -1
- nuitka/nodes/ConstantRefNodes.py +38 -0
- nuitka/nodes/CtypesNodes.py +0 -1
- nuitka/nodes/DictionaryNodes.py +0 -1
- nuitka/nodes/ExceptionNodes.py +10 -0
- nuitka/nodes/ExpressionBases.py +15 -9
- nuitka/nodes/ExpressionBasesGenerated.py +32 -15
- nuitka/nodes/FunctionNodes.py +50 -5
- nuitka/nodes/HardImportNodesGenerated.py +245 -60
- nuitka/nodes/ImportHardNodes.py +27 -13
- nuitka/nodes/ImportNodes.py +90 -70
- nuitka/nodes/InjectCNodes.py +0 -1
- nuitka/nodes/ModuleNodes.py +10 -5
- nuitka/nodes/NetworkxNodes.py +45 -0
- nuitka/nodes/OperatorNodesUnary.py +1 -0
- nuitka/nodes/OsSysNodes.py +0 -1
- nuitka/nodes/PackageMetadataNodes.py +0 -1
- nuitka/nodes/PackageResourceNodes.py +10 -6
- nuitka/nodes/StatementBasesGenerated.py +107 -60
- nuitka/nodes/StringConcatenationNodes.py +1 -0
- nuitka/nodes/TensorflowNodes.py +38 -0
- nuitka/nodes/TypeNodes.py +21 -0
- nuitka/nodes/VariableRefNodes.py +1 -0
- nuitka/nodes/shapes/BuiltinTypeShapes.py +25 -15
- nuitka/optimizations/Optimization.py +7 -6
- nuitka/optimizations/OptimizeBuiltinCalls.py +11 -9
- nuitka/optimizations/Tags.py +0 -1
- nuitka/optimizations/TraceCollections.py +6 -55
- nuitka/optimizations/ValueTraces.py +49 -1
- nuitka/plugins/PluginBase.py +26 -4
- nuitka/plugins/Plugins.py +49 -12
- nuitka/plugins/standard/AntiBloatPlugin.py +12 -2
- nuitka/plugins/standard/ConsiderPyLintAnnotationsPlugin.py +0 -1
- nuitka/plugins/standard/DataFilesPlugin.py +2 -6
- nuitka/plugins/standard/DillPlugin.py +3 -3
- nuitka/plugins/standard/DllFilesPlugin.py +29 -23
- nuitka/plugins/standard/GiPlugin.py +1 -0
- nuitka/plugins/standard/ImplicitImports.py +9 -7
- nuitka/plugins/standard/MatplotlibPlugin.py +1 -0
- nuitka/plugins/standard/OptionsNannyPlugin.py +3 -7
- nuitka/plugins/standard/PkgResourcesPlugin.py +0 -1
- nuitka/plugins/standard/PmwPlugin.py +10 -9
- nuitka/plugins/standard/PySidePyQtPlugin.py +0 -28
- nuitka/plugins/standard/TensorflowPlugin.py +1 -0
- nuitka/plugins/standard/TorchPlugin.py +1 -0
- nuitka/plugins/standard/TrioPlugin.py +1 -0
- nuitka/plugins/standard/standard.nuitka-package.config.yml +242 -54
- nuitka/reports/CompilationReportReader.py +0 -1
- nuitka/reports/Reports.py +49 -5
- nuitka/specs/BuiltinParameterSpecs.py +10 -2
- nuitka/specs/BuiltinStrOperationSpecs.py +1 -1
- nuitka/specs/BuiltinTypeOperationSpecs.py +0 -1
- nuitka/specs/HardImportSpecs.py +34 -1
- nuitka/specs/ParameterSpecs.py +11 -9
- nuitka/tools/environments/Virtualenv.py +0 -1
- nuitka/tools/specialize/CTypeDescriptions.py +15 -11
- nuitka/tools/specialize/SpecializeC.py +11 -9
- nuitka/tools/specialize/SpecializePython.py +57 -30
- nuitka/tools/testing/Common.py +24 -7
- nuitka/tools/testing/OutputComparison.py +4 -0
- nuitka/tools/testing/Pythons.py +0 -1
- nuitka/tools/testing/compare_with_cpython/__main__.py +0 -4
- nuitka/tools/watch/GitHub.py +4 -1
- nuitka/tools/watch/__main__.py +22 -1
- nuitka/tree/Building.py +3 -0
- nuitka/tree/InternalModule.py +0 -1
- nuitka/tree/ReformulationAssertStatements.py +1 -0
- nuitka/tree/ReformulationAssignmentStatements.py +26 -3
- nuitka/tree/ReformulationClasses3.py +23 -26
- nuitka/tree/ReformulationContractionExpressions.py +5 -3
- nuitka/tree/ReformulationDictionaryCreation.py +6 -5
- nuitka/tree/ReformulationExecStatements.py +8 -6
- nuitka/tree/ReformulationFunctionStatements.py +10 -6
- nuitka/tree/SourceHandling.py +8 -0
- nuitka/tree/TreeHelpers.py +6 -3
- nuitka/utils/AppDirs.py +6 -2
- nuitka/utils/CStrings.py +1 -1
- nuitka/utils/CommandLineOptions.py +0 -1
- nuitka/utils/Distributions.py +3 -3
- nuitka/utils/Download.py +5 -1
- nuitka/utils/Execution.py +6 -3
- nuitka/utils/FileOperations.py +62 -35
- nuitka/utils/Importing.py +4 -4
- nuitka/utils/InstanceCounters.py +1 -0
- nuitka/utils/MacOSApp.py +1 -0
- nuitka/utils/Shebang.py +1 -0
- nuitka/utils/Utils.py +39 -1
- nuitka/utils/WindowsFileUsage.py +4 -3
- {Nuitka_winsvc-2.1.5.data → Nuitka_winsvc-2.2.1.data}/scripts/nuitka-run.bat +0 -0
- {Nuitka_winsvc-2.1.5.data → Nuitka_winsvc-2.2.1.data}/scripts/nuitka.bat +0 -0
- {Nuitka_winsvc-2.1.5.dist-info → Nuitka_winsvc-2.2.1.dist-info}/LICENSE.txt +0 -0
- {Nuitka_winsvc-2.1.5.dist-info → Nuitka_winsvc-2.2.1.dist-info}/WHEEL +0 -0
- {Nuitka_winsvc-2.1.5.dist-info → Nuitka_winsvc-2.2.1.dist-info}/entry_points.txt +0 -0
- {Nuitka_winsvc-2.1.5.dist-info → Nuitka_winsvc-2.2.1.dist-info}/top_level.txt +0 -0
|
@@ -2,18 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
# We are not avoiding these in generated code at all
|
|
5
|
-
# pylint: disable=I0021,too-many-lines
|
|
6
|
-
# pylint: disable=I0021,
|
|
7
|
-
# pylint: disable=I0021,too-many-instance-attributes
|
|
8
|
-
# pylint: disable=I0021,too-many-return-statements
|
|
5
|
+
# pylint: disable=I0021,line-too-long,too-many-instance-attributes,too-many-lines
|
|
6
|
+
# pylint: disable=I0021,too-many-arguments,too-many-return-statements,too-many-statements
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
"""Hard import nodes
|
|
12
10
|
|
|
13
11
|
WARNING, this code is GENERATED. Modify the template HardImportReferenceNode.py.j2 instead!
|
|
14
12
|
|
|
15
|
-
spell-checker: ignore append
|
|
16
|
-
spell-checker: ignore
|
|
13
|
+
spell-checker: ignore __prepare__ append args autograph buffering capitalize casefold
|
|
14
|
+
spell-checker: ignore center chars clear closefd copy count decode default delete dist
|
|
15
|
+
spell-checker: ignore distribution_name encode encoding end endswith errors exit_code
|
|
16
|
+
spell-checker: ignore expandtabs experimental_attributes experimental_autograph_options
|
|
17
|
+
spell-checker: ignore experimental_compile experimental_follow_type_hints
|
|
18
|
+
spell-checker: ignore experimental_implements experimental_relax_shapes extend file
|
|
19
|
+
spell-checker: ignore fillchar find format format_map formatmap fromkeys func get group
|
|
20
|
+
spell-checker: ignore handle has_key haskey index input_signature insert isalnum isalpha
|
|
21
|
+
spell-checker: ignore isascii isdecimal isdigit isidentifier islower isnumeric isprintable
|
|
22
|
+
spell-checker: ignore isspace istitle isupper item items iterable iteritems iterkeys
|
|
23
|
+
spell-checker: ignore itervalues jit_compile join keepends key keys kwargs ljust lower
|
|
24
|
+
spell-checker: ignore lstrip maketrans maxsplit mode name new newline old opener p package
|
|
25
|
+
spell-checker: ignore package_or_requirement pairs partition path pop popitem prefix
|
|
26
|
+
spell-checker: ignore prepare reduce_retracing remove replace resource resource_name
|
|
27
|
+
spell-checker: ignore reverse rfind rindex rjust rpartition rsplit rstrip s sep setdefault
|
|
28
|
+
spell-checker: ignore sort split splitlines start startswith stop strip sub suffix
|
|
29
|
+
spell-checker: ignore swapcase table tabsize title translate update upper use_errno
|
|
30
|
+
spell-checker: ignore use_last_error value values viewitems viewkeys viewvalues width
|
|
31
|
+
spell-checker: ignore winmode zfill
|
|
17
32
|
"""
|
|
18
33
|
import os
|
|
19
34
|
from abc import abstractmethod
|
|
@@ -56,6 +71,7 @@ from nuitka.specs.HardImportSpecs import (
|
|
|
56
71
|
pkg_resources_resource_string_spec,
|
|
57
72
|
pkgutil_get_data_spec,
|
|
58
73
|
sys_exit_spec,
|
|
74
|
+
tensorflow_function_spec,
|
|
59
75
|
)
|
|
60
76
|
|
|
61
77
|
from .ChildrenHavingMixins import (
|
|
@@ -70,6 +86,7 @@ from .ChildrenHavingMixins import (
|
|
|
70
86
|
ChildHavingRequirementsTupleMixin,
|
|
71
87
|
ChildHavingSMixin,
|
|
72
88
|
ChildrenHavingFileModeOptionalBufferingOptionalEncodingOptionalErrorsOptionalNewlineOptionalClosefdOptionalOpenerOptionalMixin,
|
|
89
|
+
ChildrenHavingFuncOptionalInputSignatureOptionalAutographOptionalJitCompileOptionalReduceRetracingOptionalExperimentalImplementsOptionalExperimentalAutographOptionsOptionalExperimentalAttributesOptionalExperimentalRelaxShapesOptionalExperimentalCompileOptionalExperimentalFollowTypeHintsOptionalMixin,
|
|
73
90
|
ChildrenHavingGroupNameOptionalMixin,
|
|
74
91
|
ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLastErrorOptionalMixin,
|
|
75
92
|
ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLastErrorOptionalWinmodeOptionalMixin,
|
|
@@ -162,6 +179,7 @@ class ExpressionBuiltinsOpenCallBase(
|
|
|
162
179
|
opener,
|
|
163
180
|
source_ref,
|
|
164
181
|
):
|
|
182
|
+
|
|
165
183
|
ChildrenHavingFileModeOptionalBufferingOptionalEncodingOptionalErrorsOptionalNewlineOptionalClosefdOptionalOpenerOptionalMixin.__init__(
|
|
166
184
|
self,
|
|
167
185
|
file=file,
|
|
@@ -289,6 +307,7 @@ class ExpressionCtypesCdllSince38CallBase(
|
|
|
289
307
|
def __init__(
|
|
290
308
|
self, name, mode, handle, use_errno, use_last_error, winmode, source_ref
|
|
291
309
|
):
|
|
310
|
+
|
|
292
311
|
ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLastErrorOptionalWinmodeOptionalMixin.__init__(
|
|
293
312
|
self,
|
|
294
313
|
name=name,
|
|
@@ -356,6 +375,7 @@ class ExpressionCtypesCdllBefore38CallBase(
|
|
|
356
375
|
spec = ctypes_cdll_before_38_spec
|
|
357
376
|
|
|
358
377
|
def __init__(self, name, mode, handle, use_errno, use_last_error, source_ref):
|
|
378
|
+
|
|
359
379
|
ChildrenHavingNameModeOptionalHandleOptionalUseErrnoOptionalUseLastErrorOptionalMixin.__init__(
|
|
360
380
|
self,
|
|
361
381
|
name=name,
|
|
@@ -435,9 +455,9 @@ class ExpressionImportlibMetadataBackportDistributionRef(
|
|
|
435
455
|
)
|
|
436
456
|
|
|
437
457
|
|
|
438
|
-
hard_import_node_classes[
|
|
439
|
-
|
|
440
|
-
|
|
458
|
+
hard_import_node_classes[ExpressionImportlibMetadataBackportDistributionRef] = (
|
|
459
|
+
importlib_metadata_backport_distribution_spec
|
|
460
|
+
)
|
|
441
461
|
|
|
442
462
|
|
|
443
463
|
class ExpressionImportlibMetadataBackportDistributionCallBase(
|
|
@@ -455,6 +475,7 @@ class ExpressionImportlibMetadataBackportDistributionCallBase(
|
|
|
455
475
|
spec = importlib_metadata_backport_distribution_spec
|
|
456
476
|
|
|
457
477
|
def __init__(self, distribution_name, source_ref):
|
|
478
|
+
|
|
458
479
|
ChildHavingDistributionNameMixin.__init__(
|
|
459
480
|
self,
|
|
460
481
|
distribution_name=distribution_name,
|
|
@@ -528,9 +549,9 @@ class ExpressionImportlibMetadataBackportEntryPointsRef(
|
|
|
528
549
|
)
|
|
529
550
|
|
|
530
551
|
|
|
531
|
-
hard_import_node_classes[
|
|
532
|
-
|
|
533
|
-
|
|
552
|
+
hard_import_node_classes[ExpressionImportlibMetadataBackportEntryPointsRef] = (
|
|
553
|
+
importlib_metadata_backport_entry_points_spec
|
|
554
|
+
)
|
|
534
555
|
|
|
535
556
|
|
|
536
557
|
class ExpressionImportlibMetadataBackportEntryPointsCallBase(
|
|
@@ -548,6 +569,7 @@ class ExpressionImportlibMetadataBackportEntryPointsCallBase(
|
|
|
548
569
|
spec = importlib_metadata_backport_entry_points_spec
|
|
549
570
|
|
|
550
571
|
def __init__(self, params, source_ref):
|
|
572
|
+
|
|
551
573
|
ChildHavingParamsTupleMixin.__init__(
|
|
552
574
|
self,
|
|
553
575
|
params=params,
|
|
@@ -621,9 +643,9 @@ class ExpressionImportlibMetadataBackportMetadataRef(
|
|
|
621
643
|
)
|
|
622
644
|
|
|
623
645
|
|
|
624
|
-
hard_import_node_classes[
|
|
625
|
-
|
|
626
|
-
|
|
646
|
+
hard_import_node_classes[ExpressionImportlibMetadataBackportMetadataRef] = (
|
|
647
|
+
importlib_metadata_backport_metadata_spec
|
|
648
|
+
)
|
|
627
649
|
|
|
628
650
|
|
|
629
651
|
class ExpressionImportlibMetadataBackportMetadataCallBase(
|
|
@@ -641,6 +663,7 @@ class ExpressionImportlibMetadataBackportMetadataCallBase(
|
|
|
641
663
|
spec = importlib_metadata_backport_metadata_spec
|
|
642
664
|
|
|
643
665
|
def __init__(self, distribution_name, source_ref):
|
|
666
|
+
|
|
644
667
|
ChildHavingDistributionNameMixin.__init__(
|
|
645
668
|
self,
|
|
646
669
|
distribution_name=distribution_name,
|
|
@@ -714,9 +737,9 @@ class ExpressionImportlibMetadataBackportVersionRef(
|
|
|
714
737
|
)
|
|
715
738
|
|
|
716
739
|
|
|
717
|
-
hard_import_node_classes[
|
|
718
|
-
|
|
719
|
-
|
|
740
|
+
hard_import_node_classes[ExpressionImportlibMetadataBackportVersionRef] = (
|
|
741
|
+
importlib_metadata_backport_version_spec
|
|
742
|
+
)
|
|
720
743
|
|
|
721
744
|
|
|
722
745
|
class ExpressionImportlibMetadataBackportVersionCallBase(
|
|
@@ -734,6 +757,7 @@ class ExpressionImportlibMetadataBackportVersionCallBase(
|
|
|
734
757
|
spec = importlib_metadata_backport_version_spec
|
|
735
758
|
|
|
736
759
|
def __init__(self, distribution_name, source_ref):
|
|
760
|
+
|
|
737
761
|
ChildHavingDistributionNameMixin.__init__(
|
|
738
762
|
self,
|
|
739
763
|
distribution_name=distribution_name,
|
|
@@ -807,9 +831,9 @@ class ExpressionImportlibMetadataDistributionRef(
|
|
|
807
831
|
)
|
|
808
832
|
|
|
809
833
|
|
|
810
|
-
hard_import_node_classes[
|
|
811
|
-
|
|
812
|
-
|
|
834
|
+
hard_import_node_classes[ExpressionImportlibMetadataDistributionRef] = (
|
|
835
|
+
importlib_metadata_distribution_spec
|
|
836
|
+
)
|
|
813
837
|
|
|
814
838
|
|
|
815
839
|
class ExpressionImportlibMetadataDistributionCallBase(
|
|
@@ -827,6 +851,7 @@ class ExpressionImportlibMetadataDistributionCallBase(
|
|
|
827
851
|
spec = importlib_metadata_distribution_spec
|
|
828
852
|
|
|
829
853
|
def __init__(self, distribution_name, source_ref):
|
|
854
|
+
|
|
830
855
|
ChildHavingDistributionNameMixin.__init__(
|
|
831
856
|
self,
|
|
832
857
|
distribution_name=distribution_name,
|
|
@@ -917,9 +942,9 @@ class ExpressionImportlibMetadataEntryPointsRef(
|
|
|
917
942
|
)
|
|
918
943
|
|
|
919
944
|
|
|
920
|
-
hard_import_node_classes[
|
|
921
|
-
|
|
922
|
-
|
|
945
|
+
hard_import_node_classes[ExpressionImportlibMetadataEntryPointsRef] = (
|
|
946
|
+
importlib_metadata_entry_points_since_310_spec
|
|
947
|
+
)
|
|
923
948
|
|
|
924
949
|
|
|
925
950
|
class ExpressionImportlibMetadataEntryPointsSince310CallBase(
|
|
@@ -939,6 +964,7 @@ class ExpressionImportlibMetadataEntryPointsSince310CallBase(
|
|
|
939
964
|
spec = importlib_metadata_entry_points_since_310_spec
|
|
940
965
|
|
|
941
966
|
def __init__(self, params, source_ref):
|
|
967
|
+
|
|
942
968
|
ChildHavingParamsTupleMixin.__init__(
|
|
943
969
|
self,
|
|
944
970
|
params=params,
|
|
@@ -988,6 +1014,7 @@ class ExpressionImportlibMetadataEntryPointsBefore310CallBase(
|
|
|
988
1014
|
spec = importlib_metadata_entry_points_before_310_spec
|
|
989
1015
|
|
|
990
1016
|
def __init__(self, source_ref):
|
|
1017
|
+
|
|
991
1018
|
ExpressionBase.__init__(self, source_ref)
|
|
992
1019
|
|
|
993
1020
|
self.attempted = False
|
|
@@ -1053,9 +1080,9 @@ class ExpressionImportlibMetadataMetadataRef(
|
|
|
1053
1080
|
)
|
|
1054
1081
|
|
|
1055
1082
|
|
|
1056
|
-
hard_import_node_classes[
|
|
1057
|
-
|
|
1058
|
-
|
|
1083
|
+
hard_import_node_classes[ExpressionImportlibMetadataMetadataRef] = (
|
|
1084
|
+
importlib_metadata_metadata_spec
|
|
1085
|
+
)
|
|
1059
1086
|
|
|
1060
1087
|
|
|
1061
1088
|
class ExpressionImportlibMetadataMetadataCallBase(
|
|
@@ -1073,6 +1100,7 @@ class ExpressionImportlibMetadataMetadataCallBase(
|
|
|
1073
1100
|
spec = importlib_metadata_metadata_spec
|
|
1074
1101
|
|
|
1075
1102
|
def __init__(self, distribution_name, source_ref):
|
|
1103
|
+
|
|
1076
1104
|
ChildHavingDistributionNameMixin.__init__(
|
|
1077
1105
|
self,
|
|
1078
1106
|
distribution_name=distribution_name,
|
|
@@ -1145,9 +1173,9 @@ class ExpressionImportlibMetadataVersionRef(
|
|
|
1145
1173
|
)
|
|
1146
1174
|
|
|
1147
1175
|
|
|
1148
|
-
hard_import_node_classes[
|
|
1149
|
-
|
|
1150
|
-
|
|
1176
|
+
hard_import_node_classes[ExpressionImportlibMetadataVersionRef] = (
|
|
1177
|
+
importlib_metadata_version_spec
|
|
1178
|
+
)
|
|
1151
1179
|
|
|
1152
1180
|
|
|
1153
1181
|
class ExpressionImportlibMetadataVersionCallBase(
|
|
@@ -1165,6 +1193,7 @@ class ExpressionImportlibMetadataVersionCallBase(
|
|
|
1165
1193
|
spec = importlib_metadata_version_spec
|
|
1166
1194
|
|
|
1167
1195
|
def __init__(self, distribution_name, source_ref):
|
|
1196
|
+
|
|
1168
1197
|
ChildHavingDistributionNameMixin.__init__(
|
|
1169
1198
|
self,
|
|
1170
1199
|
distribution_name=distribution_name,
|
|
@@ -1237,9 +1266,9 @@ class ExpressionImportlibResourcesBackportFilesRef(
|
|
|
1237
1266
|
)
|
|
1238
1267
|
|
|
1239
1268
|
|
|
1240
|
-
hard_import_node_classes[
|
|
1241
|
-
|
|
1242
|
-
|
|
1269
|
+
hard_import_node_classes[ExpressionImportlibResourcesBackportFilesRef] = (
|
|
1270
|
+
importlib_resources_backport_files_spec
|
|
1271
|
+
)
|
|
1243
1272
|
|
|
1244
1273
|
|
|
1245
1274
|
class ExpressionImportlibResourcesBackportFilesCallBase(
|
|
@@ -1257,6 +1286,7 @@ class ExpressionImportlibResourcesBackportFilesCallBase(
|
|
|
1257
1286
|
spec = importlib_resources_backport_files_spec
|
|
1258
1287
|
|
|
1259
1288
|
def __init__(self, package, source_ref):
|
|
1289
|
+
|
|
1260
1290
|
ChildHavingPackageMixin.__init__(
|
|
1261
1291
|
self,
|
|
1262
1292
|
package=package,
|
|
@@ -1330,9 +1360,9 @@ class ExpressionImportlibResourcesBackportReadBinaryRef(
|
|
|
1330
1360
|
)
|
|
1331
1361
|
|
|
1332
1362
|
|
|
1333
|
-
hard_import_node_classes[
|
|
1334
|
-
|
|
1335
|
-
|
|
1363
|
+
hard_import_node_classes[ExpressionImportlibResourcesBackportReadBinaryRef] = (
|
|
1364
|
+
importlib_resources_backport_read_binary_spec
|
|
1365
|
+
)
|
|
1336
1366
|
|
|
1337
1367
|
|
|
1338
1368
|
class ExpressionImportlibResourcesBackportReadBinaryCallBase(
|
|
@@ -1353,6 +1383,7 @@ class ExpressionImportlibResourcesBackportReadBinaryCallBase(
|
|
|
1353
1383
|
spec = importlib_resources_backport_read_binary_spec
|
|
1354
1384
|
|
|
1355
1385
|
def __init__(self, package, resource, source_ref):
|
|
1386
|
+
|
|
1356
1387
|
ChildrenHavingPackageResourceMixin.__init__(
|
|
1357
1388
|
self,
|
|
1358
1389
|
package=package,
|
|
@@ -1430,9 +1461,9 @@ class ExpressionImportlibResourcesBackportReadTextRef(
|
|
|
1430
1461
|
)
|
|
1431
1462
|
|
|
1432
1463
|
|
|
1433
|
-
hard_import_node_classes[
|
|
1434
|
-
|
|
1435
|
-
|
|
1464
|
+
hard_import_node_classes[ExpressionImportlibResourcesBackportReadTextRef] = (
|
|
1465
|
+
importlib_resources_backport_read_text_spec
|
|
1466
|
+
)
|
|
1436
1467
|
|
|
1437
1468
|
|
|
1438
1469
|
class ExpressionImportlibResourcesBackportReadTextCallBase(
|
|
@@ -1457,6 +1488,7 @@ class ExpressionImportlibResourcesBackportReadTextCallBase(
|
|
|
1457
1488
|
spec = importlib_resources_backport_read_text_spec
|
|
1458
1489
|
|
|
1459
1490
|
def __init__(self, package, resource, encoding, errors, source_ref):
|
|
1491
|
+
|
|
1460
1492
|
ChildrenHavingPackageResourceEncodingOptionalErrorsOptionalMixin.__init__(
|
|
1461
1493
|
self,
|
|
1462
1494
|
package=package,
|
|
@@ -1536,9 +1568,9 @@ class ExpressionImportlibResourcesFilesRef(
|
|
|
1536
1568
|
)
|
|
1537
1569
|
|
|
1538
1570
|
|
|
1539
|
-
hard_import_node_classes[
|
|
1540
|
-
|
|
1541
|
-
|
|
1571
|
+
hard_import_node_classes[ExpressionImportlibResourcesFilesRef] = (
|
|
1572
|
+
importlib_resources_files_spec
|
|
1573
|
+
)
|
|
1542
1574
|
|
|
1543
1575
|
|
|
1544
1576
|
class ExpressionImportlibResourcesFilesCallBase(
|
|
@@ -1556,6 +1588,7 @@ class ExpressionImportlibResourcesFilesCallBase(
|
|
|
1556
1588
|
spec = importlib_resources_files_spec
|
|
1557
1589
|
|
|
1558
1590
|
def __init__(self, package, source_ref):
|
|
1591
|
+
|
|
1559
1592
|
ChildHavingPackageMixin.__init__(
|
|
1560
1593
|
self,
|
|
1561
1594
|
package=package,
|
|
@@ -1628,9 +1661,9 @@ class ExpressionImportlibResourcesReadBinaryRef(
|
|
|
1628
1661
|
)
|
|
1629
1662
|
|
|
1630
1663
|
|
|
1631
|
-
hard_import_node_classes[
|
|
1632
|
-
|
|
1633
|
-
|
|
1664
|
+
hard_import_node_classes[ExpressionImportlibResourcesReadBinaryRef] = (
|
|
1665
|
+
importlib_resources_read_binary_spec
|
|
1666
|
+
)
|
|
1634
1667
|
|
|
1635
1668
|
|
|
1636
1669
|
class ExpressionImportlibResourcesReadBinaryCallBase(
|
|
@@ -1651,6 +1684,7 @@ class ExpressionImportlibResourcesReadBinaryCallBase(
|
|
|
1651
1684
|
spec = importlib_resources_read_binary_spec
|
|
1652
1685
|
|
|
1653
1686
|
def __init__(self, package, resource, source_ref):
|
|
1687
|
+
|
|
1654
1688
|
ChildrenHavingPackageResourceMixin.__init__(
|
|
1655
1689
|
self,
|
|
1656
1690
|
package=package,
|
|
@@ -1727,9 +1761,9 @@ class ExpressionImportlibResourcesReadTextRef(
|
|
|
1727
1761
|
)
|
|
1728
1762
|
|
|
1729
1763
|
|
|
1730
|
-
hard_import_node_classes[
|
|
1731
|
-
|
|
1732
|
-
|
|
1764
|
+
hard_import_node_classes[ExpressionImportlibResourcesReadTextRef] = (
|
|
1765
|
+
importlib_resources_read_text_spec
|
|
1766
|
+
)
|
|
1733
1767
|
|
|
1734
1768
|
|
|
1735
1769
|
class ExpressionImportlibResourcesReadTextCallBase(
|
|
@@ -1754,6 +1788,7 @@ class ExpressionImportlibResourcesReadTextCallBase(
|
|
|
1754
1788
|
spec = importlib_resources_read_text_spec
|
|
1755
1789
|
|
|
1756
1790
|
def __init__(self, package, resource, encoding, errors, source_ref):
|
|
1791
|
+
|
|
1757
1792
|
ChildrenHavingPackageResourceEncodingOptionalErrorsOptionalMixin.__init__(
|
|
1758
1793
|
self,
|
|
1759
1794
|
package=package,
|
|
@@ -1846,6 +1881,7 @@ class ExpressionOsListdirCallBase(ChildHavingPathOptionalMixin, ExpressionBase):
|
|
|
1846
1881
|
spec = os_listdir_spec
|
|
1847
1882
|
|
|
1848
1883
|
def __init__(self, path, source_ref):
|
|
1884
|
+
|
|
1849
1885
|
ChildHavingPathOptionalMixin.__init__(
|
|
1850
1886
|
self,
|
|
1851
1887
|
path=path,
|
|
@@ -1927,6 +1963,7 @@ class ExpressionOsPathAbspathCallBase(ChildHavingPathMixin, ExpressionBase):
|
|
|
1927
1963
|
spec = os_path_abspath_spec
|
|
1928
1964
|
|
|
1929
1965
|
def __init__(self, path, source_ref):
|
|
1966
|
+
|
|
1930
1967
|
ChildHavingPathMixin.__init__(
|
|
1931
1968
|
self,
|
|
1932
1969
|
path=path,
|
|
@@ -2008,6 +2045,7 @@ class ExpressionOsPathBasenameCallBase(ChildHavingPMixin, ExpressionBase):
|
|
|
2008
2045
|
spec = os_path_basename_spec
|
|
2009
2046
|
|
|
2010
2047
|
def __init__(self, p, source_ref):
|
|
2048
|
+
|
|
2011
2049
|
ChildHavingPMixin.__init__(
|
|
2012
2050
|
self,
|
|
2013
2051
|
p=p,
|
|
@@ -2089,6 +2127,7 @@ class ExpressionOsPathDirnameCallBase(ChildHavingPMixin, ExpressionBase):
|
|
|
2089
2127
|
spec = os_path_dirname_spec
|
|
2090
2128
|
|
|
2091
2129
|
def __init__(self, p, source_ref):
|
|
2130
|
+
|
|
2092
2131
|
ChildHavingPMixin.__init__(
|
|
2093
2132
|
self,
|
|
2094
2133
|
p=p,
|
|
@@ -2170,6 +2209,7 @@ class ExpressionOsPathExistsCallBase(ChildHavingPathMixin, ExpressionBase):
|
|
|
2170
2209
|
spec = os_path_exists_spec
|
|
2171
2210
|
|
|
2172
2211
|
def __init__(self, path, source_ref):
|
|
2212
|
+
|
|
2173
2213
|
ChildHavingPathMixin.__init__(
|
|
2174
2214
|
self,
|
|
2175
2215
|
path=path,
|
|
@@ -2253,6 +2293,7 @@ class ExpressionOsPathIsabsCallBase(
|
|
|
2253
2293
|
spec = os_path_isabs_spec
|
|
2254
2294
|
|
|
2255
2295
|
def __init__(self, s, source_ref):
|
|
2296
|
+
|
|
2256
2297
|
ChildHavingSMixin.__init__(
|
|
2257
2298
|
self,
|
|
2258
2299
|
s=s,
|
|
@@ -2334,6 +2375,7 @@ class ExpressionOsPathIsdirCallBase(ChildHavingPathMixin, ExpressionBase):
|
|
|
2334
2375
|
spec = os_path_isdir_spec
|
|
2335
2376
|
|
|
2336
2377
|
def __init__(self, path, source_ref):
|
|
2378
|
+
|
|
2337
2379
|
ChildHavingPathMixin.__init__(
|
|
2338
2380
|
self,
|
|
2339
2381
|
path=path,
|
|
@@ -2415,6 +2457,7 @@ class ExpressionOsPathIsfileCallBase(ChildHavingPathMixin, ExpressionBase):
|
|
|
2415
2457
|
spec = os_path_isfile_spec
|
|
2416
2458
|
|
|
2417
2459
|
def __init__(self, path, source_ref):
|
|
2460
|
+
|
|
2418
2461
|
ChildHavingPathMixin.__init__(
|
|
2419
2462
|
self,
|
|
2420
2463
|
path=path,
|
|
@@ -2494,6 +2537,7 @@ class ExpressionOsUnameCallBase(ExpressionBase):
|
|
|
2494
2537
|
spec = os_uname_spec
|
|
2495
2538
|
|
|
2496
2539
|
def __init__(self, source_ref):
|
|
2540
|
+
|
|
2497
2541
|
ExpressionBase.__init__(self, source_ref)
|
|
2498
2542
|
|
|
2499
2543
|
self.attempted = False
|
|
@@ -2559,9 +2603,9 @@ class ExpressionPkgResourcesGetDistributionRef(
|
|
|
2559
2603
|
)
|
|
2560
2604
|
|
|
2561
2605
|
|
|
2562
|
-
hard_import_node_classes[
|
|
2563
|
-
|
|
2564
|
-
|
|
2606
|
+
hard_import_node_classes[ExpressionPkgResourcesGetDistributionRef] = (
|
|
2607
|
+
pkg_resources_get_distribution_spec
|
|
2608
|
+
)
|
|
2565
2609
|
|
|
2566
2610
|
|
|
2567
2611
|
class ExpressionPkgResourcesGetDistributionCallBase(
|
|
@@ -2579,6 +2623,7 @@ class ExpressionPkgResourcesGetDistributionCallBase(
|
|
|
2579
2623
|
spec = pkg_resources_get_distribution_spec
|
|
2580
2624
|
|
|
2581
2625
|
def __init__(self, dist, source_ref):
|
|
2626
|
+
|
|
2582
2627
|
ChildHavingDistMixin.__init__(
|
|
2583
2628
|
self,
|
|
2584
2629
|
dist=dist,
|
|
@@ -2652,9 +2697,9 @@ class ExpressionPkgResourcesIterEntryPointsRef(
|
|
|
2652
2697
|
)
|
|
2653
2698
|
|
|
2654
2699
|
|
|
2655
|
-
hard_import_node_classes[
|
|
2656
|
-
|
|
2657
|
-
|
|
2700
|
+
hard_import_node_classes[ExpressionPkgResourcesIterEntryPointsRef] = (
|
|
2701
|
+
pkg_resources_iter_entry_points_spec
|
|
2702
|
+
)
|
|
2658
2703
|
|
|
2659
2704
|
|
|
2660
2705
|
class ExpressionPkgResourcesIterEntryPointsCallBase(
|
|
@@ -2675,6 +2720,7 @@ class ExpressionPkgResourcesIterEntryPointsCallBase(
|
|
|
2675
2720
|
spec = pkg_resources_iter_entry_points_spec
|
|
2676
2721
|
|
|
2677
2722
|
def __init__(self, group, name, source_ref):
|
|
2723
|
+
|
|
2678
2724
|
ChildrenHavingGroupNameOptionalMixin.__init__(
|
|
2679
2725
|
self,
|
|
2680
2726
|
group=group,
|
|
@@ -2768,6 +2814,7 @@ class ExpressionPkgResourcesRequireCallBase(
|
|
|
2768
2814
|
spec = pkg_resources_require_spec
|
|
2769
2815
|
|
|
2770
2816
|
def __init__(self, requirements, source_ref):
|
|
2817
|
+
|
|
2771
2818
|
ChildHavingRequirementsTupleMixin.__init__(
|
|
2772
2819
|
self,
|
|
2773
2820
|
requirements=requirements,
|
|
@@ -2838,9 +2885,9 @@ class ExpressionPkgResourcesResourceStreamRef(
|
|
|
2838
2885
|
)
|
|
2839
2886
|
|
|
2840
2887
|
|
|
2841
|
-
hard_import_node_classes[
|
|
2842
|
-
|
|
2843
|
-
|
|
2888
|
+
hard_import_node_classes[ExpressionPkgResourcesResourceStreamRef] = (
|
|
2889
|
+
pkg_resources_resource_stream_spec
|
|
2890
|
+
)
|
|
2844
2891
|
|
|
2845
2892
|
|
|
2846
2893
|
class ExpressionPkgResourcesResourceStreamCallBase(
|
|
@@ -2861,6 +2908,7 @@ class ExpressionPkgResourcesResourceStreamCallBase(
|
|
|
2861
2908
|
spec = pkg_resources_resource_stream_spec
|
|
2862
2909
|
|
|
2863
2910
|
def __init__(self, package_or_requirement, resource_name, source_ref):
|
|
2911
|
+
|
|
2864
2912
|
ChildrenHavingPackageOrRequirementResourceNameMixin.__init__(
|
|
2865
2913
|
self,
|
|
2866
2914
|
package_or_requirement=package_or_requirement,
|
|
@@ -2938,9 +2986,9 @@ class ExpressionPkgResourcesResourceStringRef(
|
|
|
2938
2986
|
)
|
|
2939
2987
|
|
|
2940
2988
|
|
|
2941
|
-
hard_import_node_classes[
|
|
2942
|
-
|
|
2943
|
-
|
|
2989
|
+
hard_import_node_classes[ExpressionPkgResourcesResourceStringRef] = (
|
|
2990
|
+
pkg_resources_resource_string_spec
|
|
2991
|
+
)
|
|
2944
2992
|
|
|
2945
2993
|
|
|
2946
2994
|
class ExpressionPkgResourcesResourceStringCallBase(
|
|
@@ -2961,6 +3009,7 @@ class ExpressionPkgResourcesResourceStringCallBase(
|
|
|
2961
3009
|
spec = pkg_resources_resource_string_spec
|
|
2962
3010
|
|
|
2963
3011
|
def __init__(self, package_or_requirement, resource_name, source_ref):
|
|
3012
|
+
|
|
2964
3013
|
ChildrenHavingPackageOrRequirementResourceNameMixin.__init__(
|
|
2965
3014
|
self,
|
|
2966
3015
|
package_or_requirement=package_or_requirement,
|
|
@@ -3055,6 +3104,7 @@ class ExpressionPkgutilGetDataCallBase(
|
|
|
3055
3104
|
spec = pkgutil_get_data_spec
|
|
3056
3105
|
|
|
3057
3106
|
def __init__(self, package, resource, source_ref):
|
|
3107
|
+
|
|
3058
3108
|
ChildrenHavingPackageResourceMixin.__init__(
|
|
3059
3109
|
self,
|
|
3060
3110
|
package=package,
|
|
@@ -3140,6 +3190,7 @@ class ExpressionSysExitCallBase(ChildHavingExitCodeOptionalMixin, ExpressionBase
|
|
|
3140
3190
|
spec = sys_exit_spec
|
|
3141
3191
|
|
|
3142
3192
|
def __init__(self, exit_code, source_ref):
|
|
3193
|
+
|
|
3143
3194
|
ChildHavingExitCodeOptionalMixin.__init__(
|
|
3144
3195
|
self,
|
|
3145
3196
|
exit_code=exit_code,
|
|
@@ -3172,6 +3223,140 @@ class ExpressionSysExitCallBase(ChildHavingExitCodeOptionalMixin, ExpressionBase
|
|
|
3172
3223
|
return True
|
|
3173
3224
|
|
|
3174
3225
|
|
|
3226
|
+
class ExpressionTensorflowFunctionRef(ExpressionImportModuleNameHardExistsSpecificBase):
|
|
3227
|
+
"""Function reference tensorflow.function"""
|
|
3228
|
+
|
|
3229
|
+
kind = "EXPRESSION_TENSORFLOW_FUNCTION_REF"
|
|
3230
|
+
|
|
3231
|
+
def __init__(self, source_ref):
|
|
3232
|
+
ExpressionImportModuleNameHardExistsSpecificBase.__init__(
|
|
3233
|
+
self,
|
|
3234
|
+
module_name="tensorflow",
|
|
3235
|
+
import_name="function",
|
|
3236
|
+
module_guaranteed=not shallMakeModule(),
|
|
3237
|
+
source_ref=source_ref,
|
|
3238
|
+
)
|
|
3239
|
+
|
|
3240
|
+
def computeExpressionCall(self, call_node, call_args, call_kw, trace_collection):
|
|
3241
|
+
# Anything may happen on call trace before this. On next pass, if
|
|
3242
|
+
# replaced, we might be better but not now.
|
|
3243
|
+
trace_collection.onExceptionRaiseExit(BaseException)
|
|
3244
|
+
|
|
3245
|
+
from .TensorflowNodes import ExpressionTensorflowFunctionCall
|
|
3246
|
+
|
|
3247
|
+
result = extractBuiltinArgs(
|
|
3248
|
+
node=call_node,
|
|
3249
|
+
builtin_class=ExpressionTensorflowFunctionCall,
|
|
3250
|
+
builtin_spec=tensorflow_function_spec,
|
|
3251
|
+
)
|
|
3252
|
+
|
|
3253
|
+
return (
|
|
3254
|
+
result,
|
|
3255
|
+
"new_expression",
|
|
3256
|
+
"Call to 'tensorflow.function' recognized.",
|
|
3257
|
+
)
|
|
3258
|
+
|
|
3259
|
+
|
|
3260
|
+
hard_import_node_classes[ExpressionTensorflowFunctionRef] = tensorflow_function_spec
|
|
3261
|
+
|
|
3262
|
+
|
|
3263
|
+
class ExpressionTensorflowFunctionCallBase(
|
|
3264
|
+
ChildrenHavingFuncOptionalInputSignatureOptionalAutographOptionalJitCompileOptionalReduceRetracingOptionalExperimentalImplementsOptionalExperimentalAutographOptionsOptionalExperimentalAttributesOptionalExperimentalRelaxShapesOptionalExperimentalCompileOptionalExperimentalFollowTypeHintsOptionalMixin,
|
|
3265
|
+
ExpressionBase,
|
|
3266
|
+
):
|
|
3267
|
+
"""Base class for TensorflowFunctionCall
|
|
3268
|
+
|
|
3269
|
+
Generated boiler plate code.
|
|
3270
|
+
"""
|
|
3271
|
+
|
|
3272
|
+
named_children = (
|
|
3273
|
+
"func|optional",
|
|
3274
|
+
"input_signature|optional",
|
|
3275
|
+
"autograph|optional",
|
|
3276
|
+
"jit_compile|optional",
|
|
3277
|
+
"reduce_retracing|optional",
|
|
3278
|
+
"experimental_implements|optional",
|
|
3279
|
+
"experimental_autograph_options|optional",
|
|
3280
|
+
"experimental_attributes|optional",
|
|
3281
|
+
"experimental_relax_shapes|optional",
|
|
3282
|
+
"experimental_compile|optional",
|
|
3283
|
+
"experimental_follow_type_hints|optional",
|
|
3284
|
+
)
|
|
3285
|
+
|
|
3286
|
+
__slots__ = ("attempted",)
|
|
3287
|
+
|
|
3288
|
+
spec = tensorflow_function_spec
|
|
3289
|
+
|
|
3290
|
+
def __init__(
|
|
3291
|
+
self,
|
|
3292
|
+
func,
|
|
3293
|
+
input_signature,
|
|
3294
|
+
autograph,
|
|
3295
|
+
jit_compile,
|
|
3296
|
+
reduce_retracing,
|
|
3297
|
+
experimental_implements,
|
|
3298
|
+
experimental_autograph_options,
|
|
3299
|
+
experimental_attributes,
|
|
3300
|
+
experimental_relax_shapes,
|
|
3301
|
+
experimental_compile,
|
|
3302
|
+
experimental_follow_type_hints,
|
|
3303
|
+
source_ref,
|
|
3304
|
+
):
|
|
3305
|
+
|
|
3306
|
+
ChildrenHavingFuncOptionalInputSignatureOptionalAutographOptionalJitCompileOptionalReduceRetracingOptionalExperimentalImplementsOptionalExperimentalAutographOptionsOptionalExperimentalAttributesOptionalExperimentalRelaxShapesOptionalExperimentalCompileOptionalExperimentalFollowTypeHintsOptionalMixin.__init__(
|
|
3307
|
+
self,
|
|
3308
|
+
func=func,
|
|
3309
|
+
input_signature=input_signature,
|
|
3310
|
+
autograph=autograph,
|
|
3311
|
+
jit_compile=jit_compile,
|
|
3312
|
+
reduce_retracing=reduce_retracing,
|
|
3313
|
+
experimental_implements=experimental_implements,
|
|
3314
|
+
experimental_autograph_options=experimental_autograph_options,
|
|
3315
|
+
experimental_attributes=experimental_attributes,
|
|
3316
|
+
experimental_relax_shapes=experimental_relax_shapes,
|
|
3317
|
+
experimental_compile=experimental_compile,
|
|
3318
|
+
experimental_follow_type_hints=experimental_follow_type_hints,
|
|
3319
|
+
)
|
|
3320
|
+
|
|
3321
|
+
ExpressionBase.__init__(self, source_ref)
|
|
3322
|
+
|
|
3323
|
+
# In module mode, we expect a changing environment, cannot optimize this
|
|
3324
|
+
self.attempted = shallMakeModule()
|
|
3325
|
+
|
|
3326
|
+
def computeExpression(self, trace_collection):
|
|
3327
|
+
if self.attempted or not tensorflow_function_spec.isCompileTimeComputable(
|
|
3328
|
+
(
|
|
3329
|
+
self.subnode_func,
|
|
3330
|
+
self.subnode_input_signature,
|
|
3331
|
+
self.subnode_autograph,
|
|
3332
|
+
self.subnode_jit_compile,
|
|
3333
|
+
self.subnode_reduce_retracing,
|
|
3334
|
+
self.subnode_experimental_implements,
|
|
3335
|
+
self.subnode_experimental_autograph_options,
|
|
3336
|
+
self.subnode_experimental_attributes,
|
|
3337
|
+
self.subnode_experimental_relax_shapes,
|
|
3338
|
+
self.subnode_experimental_compile,
|
|
3339
|
+
self.subnode_experimental_follow_type_hints,
|
|
3340
|
+
)
|
|
3341
|
+
):
|
|
3342
|
+
trace_collection.onExceptionRaiseExit(BaseException)
|
|
3343
|
+
|
|
3344
|
+
return self, None, None
|
|
3345
|
+
|
|
3346
|
+
try:
|
|
3347
|
+
return self.replaceWithCompileTimeValue(trace_collection)
|
|
3348
|
+
finally:
|
|
3349
|
+
self.attempted = True
|
|
3350
|
+
|
|
3351
|
+
@abstractmethod
|
|
3352
|
+
def replaceWithCompileTimeValue(self, trace_collection):
|
|
3353
|
+
pass
|
|
3354
|
+
|
|
3355
|
+
@staticmethod
|
|
3356
|
+
def mayRaiseExceptionOperation():
|
|
3357
|
+
return True
|
|
3358
|
+
|
|
3359
|
+
|
|
3175
3360
|
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
3176
3361
|
# integrates with CPython, but also works on its own.
|
|
3177
3362
|
#
|