Nuitka-winsvc 2.5.6__cp311-cp311-win_amd64.whl → 2.6__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.5.6.data → Nuitka_winsvc-2.6.data}/scripts/nuitka-run.cmd +1 -1
- {Nuitka_winsvc-2.5.6.data → Nuitka_winsvc-2.6.data}/scripts/nuitka.cmd +1 -1
- {Nuitka_winsvc-2.5.6.dist-info → Nuitka_winsvc-2.6.dist-info}/METADATA +36 -24
- Nuitka_winsvc-2.6.dist-info/RECORD +988 -0
- {Nuitka_winsvc-2.5.6.dist-info → Nuitka_winsvc-2.6.dist-info}/WHEEL +1 -1
- nuitka/Builtins.py +1 -1
- nuitka/BytecodeCaching.py +1 -1
- nuitka/Bytecodes.py +1 -1
- nuitka/CacheCleanup.py +1 -1
- nuitka/Constants.py +1 -1
- nuitka/Errors.py +1 -1
- nuitka/HardImportRegistry.py +1 -1
- nuitka/MainControl.py +93 -94
- nuitka/ModuleRegistry.py +1 -1
- nuitka/OptionParsing.py +86 -17
- nuitka/Options.py +146 -48
- nuitka/OutputDirectories.py +5 -3
- nuitka/PostProcessing.py +76 -27
- nuitka/Progress.py +1 -1
- nuitka/PythonFlavors.py +9 -3
- nuitka/PythonOperators.py +1 -1
- nuitka/PythonVersions.py +8 -4
- nuitka/Serialization.py +1 -1
- nuitka/SourceCodeReferences.py +1 -1
- nuitka/Tracing.py +2 -1
- nuitka/TreeXML.py +1 -1
- nuitka/Variables.py +1 -1
- nuitka/Version.py +2 -2
- nuitka/__init__.py +1 -1
- nuitka/__main__.py +4 -1
- nuitka/__past__.py +1 -1
- nuitka/build/Backend.scons +44 -66
- nuitka/build/CCompilerVersion.scons +2 -1
- nuitka/build/DataComposerInterface.py +2 -1
- nuitka/build/Offsets.scons +644 -0
- nuitka/build/Onefile.scons +5 -13
- nuitka/build/SconsCaching.py +9 -7
- nuitka/build/SconsCompilerSettings.py +54 -31
- nuitka/build/SconsHacks.py +3 -3
- nuitka/build/SconsInterface.py +85 -57
- nuitka/build/SconsProgress.py +12 -5
- nuitka/build/SconsSpawn.py +3 -3
- nuitka/build/SconsUtils.py +20 -1
- nuitka/build/__init__.py +1 -1
- nuitka/build/include/nuitka/allocator.h +3 -1
- nuitka/build/include/nuitka/builtins.h +1 -1
- nuitka/build/include/nuitka/calling.h +1 -1
- nuitka/build/include/nuitka/checkers.h +1 -1
- nuitka/build/include/nuitka/checksum_tools.h +1 -1
- nuitka/build/include/nuitka/compiled_asyncgen.h +4 -2
- nuitka/build/include/nuitka/compiled_cell.h +1 -1
- nuitka/build/include/nuitka/compiled_coroutine.h +3 -2
- nuitka/build/include/nuitka/compiled_frame.h +5 -12
- nuitka/build/include/nuitka/compiled_function.h +2 -3
- nuitka/build/include/nuitka/compiled_generator.h +3 -2
- nuitka/build/include/nuitka/compiled_method.h +1 -1
- nuitka/build/include/nuitka/constants.h +5 -1
- nuitka/build/include/nuitka/constants_blob.h +1 -1
- nuitka/build/include/nuitka/debug_settings.h +1 -1
- nuitka/build/include/nuitka/environment_variables.h +1 -1
- nuitka/build/include/nuitka/environment_variables_system.h +1 -1
- nuitka/build/include/nuitka/exception_groups.h +1 -1
- nuitka/build/include/nuitka/exceptions.h +1 -1
- nuitka/build/include/nuitka/filesystem_paths.h +4 -1
- nuitka/build/include/nuitka/freelists.h +2 -2
- nuitka/build/include/nuitka/helper/attributes.h +1 -1
- nuitka/build/include/nuitka/helper/boolean.h +1 -1
- nuitka/build/include/nuitka/helper/bytearrays.h +1 -1
- nuitka/build/include/nuitka/helper/bytes.h +1 -1
- nuitka/build/include/nuitka/helper/calling_generated.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_dual_eq.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_dual_ge.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_dual_gt.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_dual_le.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_dual_lt.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_dual_ne.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_eq.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_ge.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_gt.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_le.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_lt.h +1 -1
- nuitka/build/include/nuitka/helper/comparisons_ne.h +1 -1
- nuitka/build/include/nuitka/helper/complex.h +1 -1
- nuitka/build/include/nuitka/helper/dictionaries.h +1 -1
- nuitka/build/include/nuitka/helper/floats.h +1 -1
- nuitka/build/include/nuitka/helper/import_hard.h +1 -1
- nuitka/build/include/nuitka/helper/indexes.h +1 -1
- nuitka/build/include/nuitka/helper/ints.h +1 -1
- nuitka/build/include/nuitka/helper/iterators.h +1 -1
- nuitka/build/include/nuitka/helper/lists.h +1 -1
- nuitka/build/include/nuitka/helper/lists_generated.h +1 -1
- nuitka/build/include/nuitka/helper/mappings.h +1 -1
- nuitka/build/include/nuitka/helper/operations.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_add.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_bitand.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_bitor.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_bitxor.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_divmod.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_dual_add.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_floordiv.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_lshift.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_matmult.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_mod.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_mult.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_olddiv.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_pow.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_rshift.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_sub.h +1 -1
- nuitka/build/include/nuitka/helper/operations_binary_truediv.h +1 -1
- nuitka/build/include/nuitka/helper/operations_builtin_types.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_add.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_bitand.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_bitor.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_bitxor.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_floordiv.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_lshift.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_matmult.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_mod.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_mult.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_olddiv.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_pow.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_rshift.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_sub.h +1 -1
- nuitka/build/include/nuitka/helper/operations_inplace_truediv.h +1 -1
- nuitka/build/include/nuitka/helper/raising.h +1 -1
- nuitka/build/include/nuitka/helper/rangeobjects.h +1 -1
- nuitka/build/include/nuitka/helper/richcomparisons.h +1 -1
- nuitka/build/include/nuitka/helper/sequences.h +1 -1
- nuitka/build/include/nuitka/helper/sets.h +1 -1
- nuitka/build/include/nuitka/helper/slices.h +1 -1
- nuitka/build/include/nuitka/helper/strings.h +1 -1
- nuitka/build/include/nuitka/helper/subscripts.h +1 -1
- nuitka/build/include/nuitka/helper/tuples.h +1 -1
- nuitka/build/include/nuitka/helpers.h +1 -43
- nuitka/build/include/nuitka/importing.h +1 -1
- nuitka/build/include/nuitka/jit_sources.h +1 -1
- nuitka/build/include/nuitka/prelude.h +10 -10
- nuitka/build/include/nuitka/printing.h +1 -1
- nuitka/build/include/nuitka/python_pgo.h +1 -1
- nuitka/build/include/nuitka/safe_string_ops.h +1 -1
- nuitka/build/include/nuitka/threading.h +1 -1
- nuitka/build/include/nuitka/tracing.h +1 -1
- nuitka/build/include/nuitka/type_aliases.h +1 -1
- nuitka/build/include/nuitka/unfreezing.h +1 -1
- nuitka/build/inline_copy/pefile/LICENSE.txt +21 -0
- nuitka/build/inline_copy/pefile/pefile.py +8034 -0
- nuitka/build/static_src/CompiledAsyncgenType.c +85 -71
- nuitka/build/static_src/CompiledCellType.c +2 -1
- nuitka/build/static_src/CompiledCodeHelpers.c +6 -26
- nuitka/build/static_src/CompiledCoroutineType.c +32 -34
- nuitka/build/static_src/CompiledFrameType.c +63 -5
- nuitka/build/static_src/CompiledFunctionType.c +11 -13
- nuitka/build/static_src/CompiledGeneratorType.c +64 -11
- nuitka/build/static_src/CompiledGeneratorTypeUncompiledIntegration.c +1 -1
- nuitka/build/static_src/CompiledMethodType.c +2 -1
- nuitka/build/static_src/GenerateHeadersMain.c +30 -0
- nuitka/build/static_src/HelpersAllocator.c +1 -1
- nuitka/build/static_src/HelpersAttributes.c +5 -2
- nuitka/build/static_src/HelpersBuiltin.c +1 -1
- nuitka/build/static_src/HelpersBuiltinTypeMethods.c +1 -1
- nuitka/build/static_src/HelpersBytes.c +1 -1
- nuitka/build/static_src/HelpersCalling.c +1 -1
- nuitka/build/static_src/HelpersCallingGenerated.c +6 -16
- nuitka/build/static_src/HelpersChecksumTools.c +1 -1
- nuitka/build/static_src/HelpersClasses.c +1 -1
- nuitka/build/static_src/HelpersComparisonDualEq.c +1 -1
- nuitka/build/static_src/HelpersComparisonDualGe.c +1 -1
- nuitka/build/static_src/HelpersComparisonDualGt.c +1 -1
- nuitka/build/static_src/HelpersComparisonDualLe.c +1 -1
- nuitka/build/static_src/HelpersComparisonDualLt.c +1 -1
- nuitka/build/static_src/HelpersComparisonDualNe.c +1 -1
- nuitka/build/static_src/HelpersComparisonEq.c +1 -1
- nuitka/build/static_src/HelpersComparisonEqUtils.c +1 -1
- nuitka/build/static_src/HelpersComparisonGe.c +1 -1
- nuitka/build/static_src/HelpersComparisonGt.c +1 -1
- nuitka/build/static_src/HelpersComparisonLe.c +1 -1
- nuitka/build/static_src/HelpersComparisonLt.c +1 -1
- nuitka/build/static_src/HelpersComparisonNe.c +1 -1
- nuitka/build/static_src/HelpersConsole.c +1 -1
- nuitka/build/static_src/HelpersConstantsBlob.c +199 -50
- nuitka/build/static_src/HelpersDeepcopy.c +3 -1
- nuitka/build/static_src/HelpersDictionaries.c +1 -1
- nuitka/build/static_src/HelpersDictionariesGenerated.c +1 -1
- nuitka/build/static_src/HelpersDumpBacktraces.c +1 -1
- nuitka/build/static_src/HelpersEnvironmentVariables.c +1 -1
- nuitka/build/static_src/HelpersEnvironmentVariablesSystem.c +1 -1
- nuitka/build/static_src/HelpersExceptions.c +1 -1
- nuitka/build/static_src/HelpersFiles.c +18 -10
- nuitka/build/static_src/HelpersFilesystemPaths.c +36 -16
- nuitka/build/static_src/HelpersFloats.c +1 -1
- nuitka/build/static_src/HelpersHeapStorage.c +1 -1
- nuitka/build/static_src/HelpersImport.c +1 -1
- nuitka/build/static_src/HelpersImportHard.c +1 -1
- nuitka/build/static_src/HelpersJitSources.c +1 -1
- nuitka/build/static_src/HelpersLists.c +2 -1
- nuitka/build/static_src/HelpersListsGenerated.c +1 -1
- nuitka/build/static_src/HelpersMappings.c +1 -1
- nuitka/build/static_src/HelpersMatching.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryAdd.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryAddUtils.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryBitand.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryBitor.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryBitxor.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryDivmod.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryDivmodUtils.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryDualAdd.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryFloordiv.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryInplaceAdd.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryLshift.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryMatmult.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryMod.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryMult.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryMultUtils.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryOlddiv.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryPow.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryPowUtils.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryRshift.c +1 -1
- nuitka/build/static_src/HelpersOperationBinarySub.c +1 -1
- nuitka/build/static_src/HelpersOperationBinaryTruediv.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceAdd.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceAddUtils.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceBitand.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceBitor.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceBitxor.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceFloordiv.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceLshift.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceMatmult.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceMod.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceMult.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceOlddiv.c +1 -1
- nuitka/build/static_src/HelpersOperationInplacePow.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceRshift.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceSub.c +1 -1
- nuitka/build/static_src/HelpersOperationInplaceTruediv.c +1 -1
- nuitka/build/static_src/HelpersProfiling.c +1 -1
- nuitka/build/static_src/HelpersPythonPgo.c +5 -2
- nuitka/build/static_src/HelpersRaising.c +1 -1
- nuitka/build/static_src/HelpersSafeStrings.c +1 -1
- nuitka/build/static_src/HelpersSequences.c +1 -1
- nuitka/build/static_src/HelpersSlices.c +1 -1
- nuitka/build/static_src/HelpersStrings.c +1 -1
- nuitka/build/static_src/HelpersTuples.c +1 -1
- nuitka/build/static_src/HelpersTypes.c +1 -1
- nuitka/build/static_src/InspectPatcher.c +2 -1
- nuitka/build/static_src/MainProgram.c +6 -6
- nuitka/build/static_src/MetaPathBasedLoader.c +2 -1
- nuitka/build/static_src/MetaPathBasedLoaderImportlibMetadataDistribution.c +1 -1
- nuitka/build/static_src/MetaPathBasedLoaderResourceReader.c +1 -1
- nuitka/build/static_src/MetaPathBasedLoaderResourceReaderFiles.c +17 -4
- nuitka/build/static_src/OnefileBootstrap.c +3 -3
- nuitka/build/static_src/OnefileSplashScreen.cpp +1 -1
- nuitka/code_generation/AsyncgenCodes.py +5 -6
- nuitka/code_generation/AttributeCodes.py +1 -1
- nuitka/code_generation/BinaryOperationHelperDefinitions.py +1 -1
- nuitka/code_generation/BranchCodes.py +1 -1
- nuitka/code_generation/BuiltinCodes.py +15 -5
- nuitka/code_generation/CallCodes.py +1 -1
- nuitka/code_generation/ClassCodes.py +1 -1
- nuitka/code_generation/CodeGeneration.py +23 -17
- nuitka/code_generation/CodeHelperSelection.py +1 -1
- nuitka/code_generation/CodeHelpers.py +1 -1
- nuitka/code_generation/CodeObjectCodes.py +19 -2
- nuitka/code_generation/ComparisonCodes.py +1 -1
- nuitka/code_generation/ComparisonHelperDefinitions.py +1 -1
- nuitka/code_generation/ConditionalCodes.py +1 -1
- nuitka/code_generation/ConstantCodes.py +1 -1
- nuitka/code_generation/Contexts.py +52 -39
- nuitka/code_generation/CoroutineCodes.py +4 -5
- nuitka/code_generation/CtypesCodes.py +1 -1
- nuitka/code_generation/DictCodes.py +1 -1
- nuitka/code_generation/Emission.py +1 -1
- nuitka/code_generation/ErrorCodes.py +1 -1
- nuitka/code_generation/EvalCodes.py +1 -1
- nuitka/code_generation/ExceptionCodes.py +1 -1
- nuitka/code_generation/ExpressionCTypeSelectionHelpers.py +1 -1
- nuitka/code_generation/ExpressionCodes.py +1 -1
- nuitka/code_generation/FrameCodes.py +26 -17
- nuitka/code_generation/FunctionCodes.py +9 -15
- nuitka/code_generation/GeneratorCodes.py +9 -10
- nuitka/code_generation/GlobalConstants.py +6 -4
- nuitka/code_generation/GlobalsLocalsCodes.py +1 -1
- nuitka/code_generation/IdCodes.py +1 -1
- nuitka/code_generation/ImportCodes.py +1 -1
- nuitka/code_generation/Indentation.py +1 -1
- nuitka/code_generation/IndexCodes.py +1 -1
- nuitka/code_generation/InjectCCodes.py +1 -1
- nuitka/code_generation/IntegerCodes.py +1 -1
- nuitka/code_generation/IteratorCodes.py +1 -1
- nuitka/code_generation/JitCodes.py +1 -1
- nuitka/code_generation/LabelCodes.py +1 -1
- nuitka/code_generation/LineNumberCodes.py +1 -1
- nuitka/code_generation/ListCodes.py +1 -1
- nuitka/code_generation/LoaderCodes.py +1 -1
- nuitka/code_generation/LocalsDictCodes.py +1 -1
- nuitka/code_generation/LoopCodes.py +1 -1
- nuitka/code_generation/MatchCodes.py +1 -1
- nuitka/code_generation/ModuleCodes.py +31 -4
- nuitka/code_generation/Namify.py +4 -1
- nuitka/code_generation/NetworkxCodes.py +1 -1
- nuitka/code_generation/OperationCodes.py +1 -1
- nuitka/code_generation/PackageResourceCodes.py +4 -10
- nuitka/code_generation/PrintCodes.py +1 -1
- nuitka/code_generation/PythonAPICodes.py +1 -1
- nuitka/code_generation/RaisingCodes.py +1 -1
- nuitka/code_generation/Reports.py +1 -1
- nuitka/code_generation/ReturnCodes.py +1 -1
- nuitka/code_generation/SetCodes.py +1 -1
- nuitka/code_generation/SliceCodes.py +1 -1
- nuitka/code_generation/StringCodes.py +1 -1
- nuitka/code_generation/SubscriptCodes.py +1 -1
- nuitka/code_generation/TensorflowCodes.py +1 -1
- nuitka/code_generation/TryCodes.py +1 -1
- nuitka/code_generation/TupleCodes.py +1 -1
- nuitka/code_generation/TypeAliasCodes.py +1 -1
- nuitka/code_generation/VariableCodes.py +1 -1
- nuitka/code_generation/VariableDeclarations.py +1 -1
- nuitka/code_generation/YieldCodes.py +1 -1
- nuitka/code_generation/__init__.py +1 -1
- nuitka/code_generation/c_types/CTypeBases.py +1 -1
- nuitka/code_generation/c_types/CTypeBooleans.py +1 -1
- nuitka/code_generation/c_types/CTypeCFloats.py +1 -1
- nuitka/code_generation/c_types/CTypeCLongs.py +1 -1
- nuitka/code_generation/c_types/CTypeModuleDictVariables.py +1 -1
- nuitka/code_generation/c_types/CTypeNuitkaBooleans.py +1 -1
- nuitka/code_generation/c_types/CTypeNuitkaInts.py +1 -1
- nuitka/code_generation/c_types/CTypeNuitkaVoids.py +1 -1
- nuitka/code_generation/c_types/CTypePyObjectPointers.py +1 -1
- nuitka/code_generation/c_types/CTypeVoids.py +1 -1
- nuitka/code_generation/c_types/__init__.py +1 -1
- nuitka/code_generation/templates/CodeTemplatesAsyncgens.py +1 -1
- nuitka/code_generation/templates/CodeTemplatesConstants.py +2 -2
- nuitka/code_generation/templates/CodeTemplatesCoroutines.py +1 -1
- nuitka/code_generation/templates/CodeTemplatesExceptions.py +1 -1
- nuitka/code_generation/templates/CodeTemplatesFrames.py +21 -25
- nuitka/code_generation/templates/CodeTemplatesFunction.py +1 -1
- nuitka/code_generation/templates/CodeTemplatesGeneratorFunction.py +3 -3
- nuitka/code_generation/templates/CodeTemplatesIterators.py +1 -1
- nuitka/code_generation/templates/CodeTemplatesLoader.py +26 -3
- nuitka/code_generation/templates/CodeTemplatesModules.py +21 -8
- nuitka/code_generation/templates/CodeTemplatesVariables.py +1 -1
- nuitka/code_generation/templates/TemplateDebugWrapper.py +1 -1
- nuitka/code_generation/templates/__init__.py +1 -1
- nuitka/code_generation/templates_c/CodeTemplateCallsMethodPositional.c.j2 +1 -1
- nuitka/code_generation/templates_c/CodeTemplateCallsMixed.c.j2 +1 -1
- nuitka/code_generation/templates_c/CodeTemplateCallsPositional.c.j2 +1 -1
- nuitka/code_generation/templates_c/CodeTemplateCallsPositionalMethodDescr.c.j2 +21 -1
- nuitka/code_generation/templates_c/CodeTemplateMakeListHinted.c.j2 +1 -1
- nuitka/code_generation/templates_c/CodeTemplateMakeListSmall.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperBuiltinMethodOperation.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperDictionaryCopy.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperImportHard.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperLongTools.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperObjectTools.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationBinary.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationBinaryDual.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparison.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonBytes.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonDual.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonFloat.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonInt.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonList.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonLong.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonStr.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonTuple.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationComparisonUnicode.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperOperationInplace.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsBinary.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsBytes.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsCommon.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsFloat.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsInt.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsList.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsLong.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsSet.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsStr.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsTuple.c.j2 +1 -1
- nuitka/code_generation/templates_c/HelperSlotsUnicode.c.j2 +1 -1
- nuitka/containers/Namedtuples.py +1 -1
- nuitka/containers/OrderedSetsFallback.py +1 -1
- nuitka/containers/__init__.py +1 -1
- nuitka/distutils/Build.py +1 -1
- nuitka/distutils/DistutilCommands.py +2 -2
- nuitka/distutils/__init__.py +1 -1
- nuitka/finalizations/Finalization.py +1 -1
- nuitka/finalizations/FinalizeMarkups.py +1 -1
- nuitka/finalizations/__init__.py +1 -1
- nuitka/freezer/DependsExe.py +2 -1
- nuitka/freezer/DllDependenciesCommon.py +1 -1
- nuitka/freezer/DllDependenciesMacOS.py +1 -1
- nuitka/freezer/DllDependenciesPosix.py +1 -1
- nuitka/freezer/DllDependenciesWin32.py +111 -25
- nuitka/freezer/ImportDetection.py +1 -1
- nuitka/freezer/IncludedDataFiles.py +1 -1
- nuitka/freezer/IncludedEntryPoints.py +1 -1
- nuitka/freezer/Onefile.py +13 -15
- nuitka/freezer/Standalone.py +6 -3
- nuitka/freezer/__init__.py +1 -1
- nuitka/importing/IgnoreListing.py +1 -1
- nuitka/importing/ImportCache.py +1 -1
- nuitka/importing/ImportResolving.py +1 -1
- nuitka/importing/Importing.py +4 -3
- nuitka/importing/PreloadedPackages.py +1 -1
- nuitka/importing/Recursion.py +37 -12
- nuitka/importing/StandardLibrary.py +1 -1
- nuitka/importing/__init__.py +1 -1
- nuitka/nodes/AsyncgenNodes.py +1 -1
- nuitka/nodes/AttributeLookupNodes.py +1 -1
- nuitka/nodes/AttributeNodes.py +1 -1
- nuitka/nodes/AttributeNodesGenerated.py +1 -1
- nuitka/nodes/BuiltinAllNodes.py +1 -1
- nuitka/nodes/BuiltinAnyNodes.py +1 -1
- nuitka/nodes/BuiltinComplexNodes.py +1 -1
- nuitka/nodes/BuiltinDecodingNodes.py +1 -1
- nuitka/nodes/BuiltinDecoratorNodes.py +1 -1
- nuitka/nodes/BuiltinDictNodes.py +1 -1
- nuitka/nodes/BuiltinFormatNodes.py +1 -1
- nuitka/nodes/BuiltinHashNodes.py +1 -1
- nuitka/nodes/BuiltinInputNodes.py +1 -1
- nuitka/nodes/BuiltinIntegerNodes.py +1 -1
- nuitka/nodes/BuiltinIteratorNodes.py +1 -1
- nuitka/nodes/BuiltinLenNodes.py +1 -1
- nuitka/nodes/BuiltinNextNodes.py +1 -1
- nuitka/nodes/BuiltinOpenNodes.py +1 -1
- nuitka/nodes/BuiltinOperationNodeBasesGenerated.py +1 -1
- nuitka/nodes/BuiltinRangeNodes.py +1 -1
- nuitka/nodes/BuiltinRefNodes.py +1 -1
- nuitka/nodes/BuiltinSumNodes.py +1 -1
- nuitka/nodes/BuiltinTypeNodes.py +1 -1
- nuitka/nodes/BuiltinVarsNodes.py +1 -1
- nuitka/nodes/BytesNodes.py +1 -1
- nuitka/nodes/CallNodes.py +1 -1
- nuitka/nodes/Checkers.py +1 -1
- nuitka/nodes/ChildrenHavingMixins.py +227 -3
- nuitka/nodes/ClassNodes.py +1 -1
- nuitka/nodes/CodeObjectSpecs.py +4 -4
- nuitka/nodes/ComparisonNodes.py +1 -1
- nuitka/nodes/ConditionalNodes.py +1 -1
- nuitka/nodes/ConstantRefNodes.py +1 -1
- nuitka/nodes/ContainerMakingNodes.py +1 -1
- nuitka/nodes/ContainerOperationNodes.py +1 -1
- nuitka/nodes/CoroutineNodes.py +1 -1
- nuitka/nodes/CtypesNodes.py +1 -1
- nuitka/nodes/DictionaryNodes.py +1 -1
- nuitka/nodes/ExceptionNodes.py +1 -1
- nuitka/nodes/ExecEvalNodes.py +1 -1
- nuitka/nodes/ExpressionBases.py +1 -1
- nuitka/nodes/ExpressionBasesGenerated.py +1 -1
- nuitka/nodes/ExpressionShapeMixins.py +1 -1
- nuitka/nodes/FrameNodes.py +19 -7
- nuitka/nodes/FunctionAttributeNodes.py +1 -1
- nuitka/nodes/FunctionNodes.py +1 -1
- nuitka/nodes/FutureSpecs.py +34 -2
- nuitka/nodes/GeneratorNodes.py +1 -1
- nuitka/nodes/GlobalsLocalsNodes.py +1 -1
- nuitka/nodes/HardImportNodesGenerated.py +140 -56
- nuitka/nodes/ImportHardNodes.py +1 -1
- nuitka/nodes/ImportNodes.py +1 -1
- nuitka/nodes/IndicatorMixins.py +1 -1
- nuitka/nodes/InjectCNodes.py +1 -1
- nuitka/nodes/IterationHandles.py +1 -1
- nuitka/nodes/KeyValuePairNodes.py +1 -1
- nuitka/nodes/ListOperationNodes.py +1 -1
- nuitka/nodes/LocalsDictNodes.py +1 -1
- nuitka/nodes/LocalsScopes.py +1 -1
- nuitka/nodes/LoopNodes.py +1 -1
- nuitka/nodes/MatchNodes.py +1 -1
- nuitka/nodes/ModuleAttributeNodes.py +1 -1
- nuitka/nodes/ModuleNodes.py +2 -2
- nuitka/nodes/NetworkxNodes.py +1 -1
- nuitka/nodes/NodeBases.py +1 -1
- nuitka/nodes/NodeMakingHelpers.py +1 -1
- nuitka/nodes/NodeMetaClasses.py +1 -1
- nuitka/nodes/OperatorNodes.py +1 -1
- nuitka/nodes/OperatorNodesUnary.py +1 -1
- nuitka/nodes/OsSysNodes.py +1 -1
- nuitka/nodes/OutlineNodes.py +1 -1
- nuitka/nodes/PackageMetadataNodes.py +1 -1
- nuitka/nodes/PackageResourceNodes.py +42 -7
- nuitka/nodes/PrintNodes.py +1 -1
- nuitka/nodes/ReturnNodes.py +1 -1
- nuitka/nodes/SideEffectNodes.py +1 -1
- nuitka/nodes/SliceNodes.py +1 -1
- nuitka/nodes/StatementBasesGenerated.py +1 -1
- nuitka/nodes/StatementNodes.py +1 -1
- nuitka/nodes/StrNodes.py +1 -1
- nuitka/nodes/StringConcatenationNodes.py +1 -1
- nuitka/nodes/SubscriptNodes.py +1 -1
- nuitka/nodes/TensorflowNodes.py +1 -1
- nuitka/nodes/TryNodes.py +1 -1
- nuitka/nodes/TypeMatchNodes.py +1 -1
- nuitka/nodes/TypeNodes.py +1 -1
- nuitka/nodes/VariableAssignNodes.py +1 -1
- nuitka/nodes/VariableDelNodes.py +1 -1
- nuitka/nodes/VariableNameNodes.py +1 -1
- nuitka/nodes/VariableRefNodes.py +1 -1
- nuitka/nodes/VariableReleaseNodes.py +1 -1
- nuitka/nodes/YieldNodes.py +1 -1
- nuitka/nodes/__init__.py +1 -1
- nuitka/nodes/shapes/BuiltinTypeShapes.py +1 -1
- nuitka/nodes/shapes/ControlFlowDescriptions.py +1 -1
- nuitka/nodes/shapes/IteratorShapes.py +1 -1
- nuitka/nodes/shapes/ShapeMixins.py +1 -1
- nuitka/nodes/shapes/StandardShapes.py +1 -1
- nuitka/nodes/shapes/__init__.py +1 -1
- nuitka/optimizations/BytecodeDemotion.py +1 -1
- nuitka/optimizations/FunctionInlining.py +1 -1
- nuitka/optimizations/Graphs.py +1 -1
- nuitka/optimizations/Optimization.py +1 -1
- nuitka/optimizations/OptimizeBuiltinCalls.py +1 -1
- nuitka/optimizations/Tags.py +1 -1
- nuitka/optimizations/TraceCollections.py +1 -1
- nuitka/optimizations/ValueTraces.py +1 -1
- nuitka/optimizations/__init__.py +1 -1
- nuitka/pgo/PGO.py +1 -1
- nuitka/pgo/__init__.py +1 -1
- nuitka/plugins/PluginBase.py +24 -3
- nuitka/plugins/Plugins.py +57 -14
- nuitka/plugins/YamlPluginBase.py +1 -1
- nuitka/plugins/__init__.py +1 -1
- nuitka/plugins/standard/AntiBloatPlugin.py +2 -1
- nuitka/plugins/standard/ConsiderPyLintAnnotationsPlugin.py +2 -1
- nuitka/plugins/standard/DataFilesPlugin.py +2 -2
- nuitka/plugins/standard/DelvewheelPlugin.py +2 -1
- nuitka/plugins/standard/DillPlugin/DillPlugin.c +1 -1
- nuitka/plugins/standard/DillPlugin/dill-postLoad.py +1 -1
- nuitka/plugins/standard/DillPlugin.py +2 -2
- nuitka/plugins/standard/DllFilesPlugin.py +2 -12
- nuitka/plugins/standard/EnumPlugin.py +2 -2
- nuitka/plugins/standard/EventletPlugin.py +2 -1
- nuitka/plugins/standard/GeventPlugin.py +2 -1
- nuitka/plugins/standard/GiPlugin.py +2 -1
- nuitka/plugins/standard/GlfwPlugin.py +2 -1
- nuitka/plugins/standard/ImplicitImports.py +4 -4
- nuitka/plugins/standard/KivyPlugin.py +2 -1
- nuitka/plugins/standard/MatplotlibPlugin.py +2 -1
- nuitka/plugins/standard/MultiprocessingPlugin.py +2 -1
- nuitka/plugins/standard/NumpyPlugin.py +2 -1
- nuitka/plugins/standard/OptionsNannyPlugin.py +2 -2
- nuitka/plugins/standard/PbrPlugin.py +2 -2
- nuitka/plugins/standard/PkgResourcesPlugin.py +2 -1
- nuitka/plugins/standard/PlaywrightPlugin.py +10 -15
- nuitka/plugins/standard/PmwPlugin.py +2 -1
- nuitka/plugins/standard/PySidePyQtPlugin.py +12 -15
- nuitka/plugins/standard/PywebViewPlugin.py +2 -1
- nuitka/plugins/standard/SpacyPlugin.py +2 -1
- nuitka/plugins/standard/TensorflowPlugin.py +2 -1
- nuitka/plugins/standard/TkinterPlugin.py +15 -2
- nuitka/plugins/standard/TorchPlugin.py +2 -1
- nuitka/plugins/standard/TransformersPlugin.py +2 -2
- nuitka/plugins/standard/TrioPlugin.py +2 -1
- nuitka/plugins/standard/UpxPlugin.py +2 -1
- nuitka/plugins/standard/__init__.py +1 -1
- nuitka/plugins/standard/standard.nuitka-package.config.yml +108 -38
- nuitka/reports/CompilationReportReader.py +5 -1
- nuitka/reports/LicenseReport.rst.j2 +1 -1
- nuitka/reports/Reports.py +5 -1
- nuitka/reports/__init__.py +1 -1
- nuitka/specs/BuiltinBytesOperationSpecs.py +1 -1
- nuitka/specs/BuiltinDictOperationSpecs.py +1 -1
- nuitka/specs/BuiltinListOperationSpecs.py +1 -1
- nuitka/specs/BuiltinParameterSpecs.py +1 -1
- nuitka/specs/BuiltinStrOperationSpecs.py +1 -1
- nuitka/specs/BuiltinTypeOperationSpecs.py +1 -1
- nuitka/specs/BuiltinUnicodeOperationSpecs.py +1 -1
- nuitka/specs/HardImportSpecs.py +10 -2
- nuitka/specs/ParameterSpecs.py +17 -2
- nuitka/specs/__init__.py +1 -1
- nuitka/tools/Basics.py +1 -1
- nuitka/tools/__init__.py +1 -1
- nuitka/tools/commercial/__init__.py +1 -1
- nuitka/tools/data_composer/DataComposer.py +125 -1
- nuitka/tools/data_composer/__init__.py +1 -1
- nuitka/tools/data_composer/__main__.py +1 -1
- nuitka/tools/environments/CreateEnvironment.py +1 -1
- nuitka/tools/environments/Virtualenv.py +1 -1
- nuitka/tools/environments/__init__.py +1 -1
- nuitka/tools/general/__init__.py +1 -1
- nuitka/tools/general/dll_report/__init__.py +1 -1
- nuitka/tools/general/dll_report/__main__.py +1 -1
- nuitka/tools/general/find_module/FindModuleCode.py +2 -2
- nuitka/tools/general/find_module/__init__.py +1 -1
- nuitka/tools/general/generate_header/GenerateHeader.py +73 -0
- nuitka/tools/general/generate_header/__init__.py +19 -0
- nuitka/tools/onefile_compressor/OnefileCompressor.py +1 -1
- nuitka/tools/onefile_compressor/__init__.py +1 -1
- nuitka/tools/onefile_compressor/__main__.py +1 -1
- nuitka/tools/podman/Podman.py +1 -1
- nuitka/tools/podman/__init__.py +1 -1
- nuitka/tools/podman/__main__.py +4 -2
- nuitka/tools/profiler/__init__.py +1 -1
- nuitka/tools/profiler/__main__.py +1 -1
- nuitka/tools/scanning/DisplayPackageDLLs.py +43 -20
- nuitka/tools/scanning/DisplayPackageData.py +1 -1
- nuitka/tools/scanning/__init__.py +1 -1
- nuitka/tools/specialize/CTypeDescriptions.py +1 -1
- nuitka/tools/specialize/Common.py +1 -1
- nuitka/tools/specialize/SpecializeC.py +1 -1
- nuitka/tools/specialize/SpecializePython.py +7 -3
- nuitka/tools/specialize/__init__.py +1 -1
- nuitka/tools/testing/Common.py +140 -19
- nuitka/tools/testing/Constructs.py +1 -1
- nuitka/tools/testing/OutputComparison.py +5 -4
- nuitka/tools/testing/Pythons.py +1 -1
- nuitka/tools/testing/RuntimeTracing.py +1 -1
- nuitka/tools/testing/SearchModes.py +1 -1
- nuitka/tools/testing/Valgrind.py +1 -1
- nuitka/tools/testing/__init__.py +1 -1
- nuitka/tools/testing/check_reference_counts/__init__.py +1 -1
- nuitka/tools/testing/check_reference_counts/__main__.py +6 -2
- nuitka/tools/testing/compare_with_cpython/__init__.py +1 -1
- nuitka/tools/testing/compare_with_cpython/__main__.py +51 -14
- nuitka/tools/testing/find_sxs_modules/__init__.py +1 -1
- nuitka/tools/testing/find_sxs_modules/__main__.py +1 -1
- nuitka/tools/testing/measure_construct_performance/__init__.py +1 -1
- nuitka/tools/testing/measure_construct_performance/__main__.py +1 -1
- nuitka/tools/testing/run_nuitka_tests/__init__.py +1 -1
- nuitka/tools/testing/run_nuitka_tests/__main__.py +1 -1
- nuitka/tools/watch/AutoStage.py +1 -1
- nuitka/tools/watch/Common.py +55 -0
- nuitka/tools/watch/Conda.py +125 -0
- nuitka/tools/watch/GitHub.py +1 -1
- nuitka/tools/watch/Pacman.py +73 -0
- nuitka/tools/watch/Pipenv.py +143 -0
- nuitka/tools/watch/__init__.py +1 -1
- nuitka/tools/watch/__main__.py +117 -264
- nuitka/tree/Building.py +1 -1
- nuitka/tree/ComplexCallHelperFunctions.py +1 -1
- nuitka/tree/Extractions.py +1 -1
- nuitka/tree/InternalModule.py +1 -1
- nuitka/tree/Operations.py +1 -1
- nuitka/tree/ReformulationAssertStatements.py +1 -1
- nuitka/tree/ReformulationAssignmentStatements.py +1 -1
- nuitka/tree/ReformulationBooleanExpressions.py +1 -1
- nuitka/tree/ReformulationCallExpressions.py +1 -1
- nuitka/tree/ReformulationClasses.py +1 -1
- nuitka/tree/ReformulationClasses3.py +1 -1
- nuitka/tree/ReformulationComparisonExpressions.py +1 -1
- nuitka/tree/ReformulationContractionExpressions.py +3 -1
- nuitka/tree/ReformulationDictionaryCreation.py +1 -1
- nuitka/tree/ReformulationExecStatements.py +1 -1
- nuitka/tree/ReformulationForLoopStatements.py +1 -1
- nuitka/tree/ReformulationFunctionStatements.py +1 -1
- nuitka/tree/ReformulationImportStatements.py +1 -1
- nuitka/tree/ReformulationLambdaExpressions.py +2 -1
- nuitka/tree/ReformulationMatchStatements.py +1 -1
- nuitka/tree/ReformulationMultidist.py +1 -1
- nuitka/tree/ReformulationNamespacePackages.py +1 -1
- nuitka/tree/ReformulationPrintStatements.py +1 -1
- nuitka/tree/ReformulationSequenceCreation.py +1 -1
- nuitka/tree/ReformulationSubscriptExpressions.py +1 -1
- nuitka/tree/ReformulationTryExceptStatements.py +1 -1
- nuitka/tree/ReformulationTryFinallyStatements.py +1 -1
- nuitka/tree/ReformulationWhileLoopStatements.py +1 -1
- nuitka/tree/ReformulationWithStatements.py +1 -1
- nuitka/tree/ReformulationYieldExpressions.py +1 -1
- nuitka/tree/SourceHandling.py +1 -1
- nuitka/tree/SyntaxErrors.py +1 -1
- nuitka/tree/TreeHelpers.py +24 -10
- nuitka/tree/VariableClosure.py +1 -1
- nuitka/tree/__init__.py +1 -1
- nuitka/utils/AppDirs.py +5 -2
- nuitka/utils/CStrings.py +1 -1
- nuitka/utils/CommandLineOptions.py +2 -2
- nuitka/utils/Distributions.py +177 -15
- nuitka/utils/Download.py +14 -6
- nuitka/utils/Execution.py +43 -14
- nuitka/utils/FileOperations.py +25 -4
- nuitka/utils/Hashing.py +1 -1
- nuitka/utils/Images.py +8 -2
- nuitka/utils/Importing.py +1 -1
- nuitka/utils/InlineCopies.py +1 -1
- nuitka/utils/InstalledPythons.py +1 -1
- nuitka/utils/InstanceCounters.py +1 -1
- nuitka/utils/Jinja2.py +1 -1
- nuitka/utils/Json.py +2 -2
- nuitka/utils/MacOSApp.py +4 -3
- nuitka/utils/MemoryUsage.py +1 -1
- nuitka/utils/ModuleNames.py +1 -1
- nuitka/utils/PackageResources.py +1 -1
- nuitka/utils/ReExecute.py +1 -1
- nuitka/utils/Rest.py +1 -1
- nuitka/utils/SharedLibraries.py +52 -7
- nuitka/utils/Shebang.py +1 -1
- nuitka/utils/Signing.py +2 -4
- nuitka/utils/SlotMetaClasses.py +1 -1
- nuitka/utils/StaticLibraries.py +25 -1
- nuitka/utils/ThreadedExecutor.py +1 -1
- nuitka/utils/Timing.py +1 -1
- nuitka/utils/Utils.py +1 -1
- nuitka/utils/WindowsFileUsage.py +1 -1
- nuitka/utils/WindowsResources.py +3 -1
- nuitka/utils/Yaml.py +1 -1
- nuitka/utils/__init__.py +1 -1
- Nuitka_winsvc-2.5.6.dist-info/RECORD +0 -978
- {Nuitka_winsvc-2.5.6.dist-info → Nuitka_winsvc-2.6.dist-info}/LICENSE.txt +0 -0
- {Nuitka_winsvc-2.5.6.dist-info → Nuitka_winsvc-2.6.dist-info}/entry_points.txt +0 -0
- {Nuitka_winsvc-2.5.6.dist-info → Nuitka_winsvc-2.6.dist-info}/top_level.txt +0 -0
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
- depends:
|
|
36
36
|
- 'ruamel.yaml.error'
|
|
37
37
|
|
|
38
|
+
- module-name: '_soundfile_data' # checksum: be356cb6
|
|
39
|
+
dlls:
|
|
40
|
+
- from_filenames:
|
|
41
|
+
prefixes:
|
|
42
|
+
- 'libsndfile'
|
|
43
|
+
|
|
38
44
|
- module-name: '_yaml' # checksum: 35d3c787
|
|
39
45
|
implicit-imports:
|
|
40
46
|
- depends:
|
|
@@ -171,7 +177,11 @@
|
|
|
171
177
|
'_get_win_folder_with_pywin32': 'un-callable'
|
|
172
178
|
when: 'not use_pywin32 or not win32'
|
|
173
179
|
|
|
174
|
-
- module-name: 'apscheduler' # checksum:
|
|
180
|
+
- module-name: 'apscheduler' # checksum: 5005e940
|
|
181
|
+
data-files:
|
|
182
|
+
- include-metadata:
|
|
183
|
+
- 'apscheduler'
|
|
184
|
+
|
|
175
185
|
implicit-imports:
|
|
176
186
|
- depends:
|
|
177
187
|
- 'apscheduler.triggers.*'
|
|
@@ -495,12 +505,7 @@
|
|
|
495
505
|
'is_triton_available()': 'False'
|
|
496
506
|
when: 'not use_setuptools'
|
|
497
507
|
|
|
498
|
-
- module-name: 'black' # checksum:
|
|
499
|
-
implicit-imports:
|
|
500
|
-
- depends:
|
|
501
|
-
- '30fcd23745efe32ce681__mypyc'
|
|
502
|
-
|
|
503
|
-
- module-name: 'black.handle_ipynb_magics' # checksum: 7d07a2d1
|
|
508
|
+
- module-name: 'black' # checksum: 7d07a2d1
|
|
504
509
|
anti-bloat:
|
|
505
510
|
- description: 'remove IPython reference'
|
|
506
511
|
no-auto-follow:
|
|
@@ -801,6 +806,27 @@
|
|
|
801
806
|
prefixes:
|
|
802
807
|
- 'native'
|
|
803
808
|
|
|
809
|
+
- module-name: 'coincurve._libsecp256k1' # checksum: a0cd690f
|
|
810
|
+
dlls:
|
|
811
|
+
- from_filenames:
|
|
812
|
+
prefixes:
|
|
813
|
+
- 'libsecp256k1'
|
|
814
|
+
|
|
815
|
+
implicit-imports:
|
|
816
|
+
- depends:
|
|
817
|
+
- '_cffi_backend'
|
|
818
|
+
|
|
819
|
+
- module-name: 'comm' # checksum: db60cdd5
|
|
820
|
+
anti-bloat:
|
|
821
|
+
- description: 'remove IPython reference'
|
|
822
|
+
no-auto-follow:
|
|
823
|
+
'IPython': 'ignore'
|
|
824
|
+
when: 'not use_ipython'
|
|
825
|
+
|
|
826
|
+
implicit-imports:
|
|
827
|
+
- depends:
|
|
828
|
+
- '30fcd23745efe32ce681__mypyc'
|
|
829
|
+
|
|
804
830
|
- module-name: 'connexion' # checksum: ae5ca038
|
|
805
831
|
data-files:
|
|
806
832
|
- dirs:
|
|
@@ -868,12 +894,13 @@
|
|
|
868
894
|
# Not necessary on Windows
|
|
869
895
|
when: 'not win32'
|
|
870
896
|
|
|
871
|
-
- module-name: 'cv2' # checksum:
|
|
897
|
+
- module-name: 'cv2' # checksum: 61e3c28c
|
|
872
898
|
variables:
|
|
873
899
|
setup_code:
|
|
874
900
|
- 'import cv2'
|
|
875
901
|
declarations:
|
|
876
902
|
'cv2_extra_sub_modules': 'tuple(m for m in cv2.__collect_extra_submodules(False) if m != ".dylibs")'
|
|
903
|
+
when: 'not is_conda_package("cv2")'
|
|
877
904
|
data-files:
|
|
878
905
|
- dirs:
|
|
879
906
|
- 'qt/fonts'
|
|
@@ -922,7 +949,9 @@
|
|
|
922
949
|
- 'cv2.cv2'
|
|
923
950
|
- 'numpy'
|
|
924
951
|
- 'numpy.core'
|
|
952
|
+
- depends:
|
|
925
953
|
- '["cv2.%s" % m for m in get_variable("cv2_extra_sub_modules")]'
|
|
954
|
+
when: 'not is_conda_package("cv2")'
|
|
926
955
|
- pre-import-code:
|
|
927
956
|
- |
|
|
928
957
|
import os
|
|
@@ -1005,6 +1034,11 @@
|
|
|
1005
1034
|
'import IPython.display as display': 'raise ImportError'
|
|
1006
1035
|
when: 'not use_ipython'
|
|
1007
1036
|
|
|
1037
|
+
- module-name: 'dask.widgets' # checksum: 2e123618
|
|
1038
|
+
data-files:
|
|
1039
|
+
- dirs:
|
|
1040
|
+
- 'templates'
|
|
1041
|
+
|
|
1008
1042
|
- module-name: 'datasets.packaged_modules' # checksum: 4c45e344
|
|
1009
1043
|
anti-bloat:
|
|
1010
1044
|
- description: 'workaround dependency source code usages'
|
|
@@ -2848,12 +2882,13 @@
|
|
|
2848
2882
|
replacements_plain:
|
|
2849
2883
|
'type(attr) is types.MethodType': 'isinstance(attr, types.MethodType)'
|
|
2850
2884
|
|
|
2851
|
-
- module-name: 'numpy' # checksum:
|
|
2885
|
+
- module-name: 'numpy' # checksum: 7c09160e
|
|
2852
2886
|
dlls:
|
|
2853
2887
|
- from_filenames:
|
|
2854
2888
|
relative_path: '.libs'
|
|
2855
2889
|
prefixes:
|
|
2856
2890
|
- 'lib'
|
|
2891
|
+
dest_path: '.'
|
|
2857
2892
|
when: 'win32'
|
|
2858
2893
|
- by_code:
|
|
2859
2894
|
setup_code: |
|
|
@@ -2866,7 +2901,7 @@
|
|
|
2866
2901
|
for filename in os.listdir(library_path)
|
|
2867
2902
|
if filename.startswith(library_prefix)] if os.path.isdir(library_path) else []
|
|
2868
2903
|
dest_path: '.'
|
|
2869
|
-
when: 'is_conda_package("numpy")'
|
|
2904
|
+
when: 'is_conda_package("numpy") and version("numpy") < (2,)'
|
|
2870
2905
|
|
|
2871
2906
|
anti-bloat:
|
|
2872
2907
|
- description: 'avoid URLs for AV noise'
|
|
@@ -2876,7 +2911,9 @@
|
|
|
2876
2911
|
no-auto-follow:
|
|
2877
2912
|
'numpy.distutils': 'ignore'
|
|
2878
2913
|
when: 'not use_setuptools'
|
|
2879
|
-
|
|
2914
|
+
- description: 'avoid pyyaml dependency'
|
|
2915
|
+
no-auto-follow:
|
|
2916
|
+
'yaml': 'ignore'
|
|
2880
2917
|
implicit-imports:
|
|
2881
2918
|
- depends:
|
|
2882
2919
|
- 'numpy._mklinit'
|
|
@@ -3774,6 +3811,13 @@
|
|
|
3774
3811
|
'"IPython" in sys.modules': 'False'
|
|
3775
3812
|
when: 'not use_ipython'
|
|
3776
3813
|
|
|
3814
|
+
- module-name: 'pdbp' # checksum: ae97ca9d
|
|
3815
|
+
anti-bloat:
|
|
3816
|
+
- no-auto-follow:
|
|
3817
|
+
'_pytest': 'ignore'
|
|
3818
|
+
'pytest': 'ignore'
|
|
3819
|
+
when: 'not use_pytest'
|
|
3820
|
+
|
|
3777
3821
|
- module-name: 'pdfminer' # checksum: a3629ef7
|
|
3778
3822
|
data-files:
|
|
3779
3823
|
- dirs:
|
|
@@ -3806,6 +3850,12 @@
|
|
|
3806
3850
|
- depends:
|
|
3807
3851
|
- '.region_*'
|
|
3808
3852
|
|
|
3853
|
+
- module-name: 'PIL' # checksum: 52d41000
|
|
3854
|
+
anti-bloat:
|
|
3855
|
+
- description: 'avoid numpy dependency'
|
|
3856
|
+
no-auto-follow:
|
|
3857
|
+
'numpy': 'ignore'
|
|
3858
|
+
|
|
3809
3859
|
- module-name: 'PIL._imagingtk' # checksum: 52df48a8
|
|
3810
3860
|
implicit-imports:
|
|
3811
3861
|
- depends:
|
|
@@ -4451,7 +4501,7 @@
|
|
|
4451
4501
|
- dirs:
|
|
4452
4502
|
- 'proj_dir'
|
|
4453
4503
|
|
|
4454
|
-
- module-name: 'PyQt5' # checksum:
|
|
4504
|
+
- module-name: 'PyQt5' # checksum: d5071a1a
|
|
4455
4505
|
data-files:
|
|
4456
4506
|
- empty_dirs:
|
|
4457
4507
|
- 'Qt5'
|
|
@@ -4465,9 +4515,6 @@
|
|
|
4465
4515
|
- description: 'PyQt5 cannot be used without bundle'
|
|
4466
4516
|
macos_bundle: 'yes'
|
|
4467
4517
|
when: 'macos and not is_conda_package("pyqt5") and use_pyqt5'
|
|
4468
|
-
- description: 'PyQt5 cannot be signed unless onefile'
|
|
4469
|
-
macos_bundle_as_onefile: 'yes'
|
|
4470
|
-
when: 'macos and use_pyqt5'
|
|
4471
4518
|
|
|
4472
4519
|
import-hacks:
|
|
4473
4520
|
- acceptable-missing-dlls:
|
|
@@ -5355,6 +5402,33 @@
|
|
|
5355
5402
|
- dirs:
|
|
5356
5403
|
- '.'
|
|
5357
5404
|
|
|
5405
|
+
- module-name: 'seleniumbase' # checksum: bcee33b2
|
|
5406
|
+
anti-bloat:
|
|
5407
|
+
- description: 'remove pytest reference'
|
|
5408
|
+
no-auto-follow:
|
|
5409
|
+
'pytest': 'ignore'
|
|
5410
|
+
when: 'not use_pytest'
|
|
5411
|
+
- description: 'Need to allow unittest usage'
|
|
5412
|
+
bloat-mode-overrides:
|
|
5413
|
+
'unittest': 'allow'
|
|
5414
|
+
|
|
5415
|
+
- module-name: 'seleniumbase.core.colored_traceback' # checksum: 6e89a07b
|
|
5416
|
+
anti-bloat:
|
|
5417
|
+
- description: 'disable colored tracebacks for standalone'
|
|
5418
|
+
replacements_plain:
|
|
5419
|
+
'sys.excepthook =': '# sys.excepthook ='
|
|
5420
|
+
when: 'standalone'
|
|
5421
|
+
|
|
5422
|
+
- module-name: 'seleniumbase.drivers' # checksum: 63813ab
|
|
5423
|
+
data-files:
|
|
5424
|
+
- empty_dirs:
|
|
5425
|
+
- '.'
|
|
5426
|
+
options:
|
|
5427
|
+
checks:
|
|
5428
|
+
- description: "need to use cached onefile mode with 'seleniumbase.drivers' to download persistently"
|
|
5429
|
+
support_info: 'warning'
|
|
5430
|
+
when: 'onefile and not onefile_cached'
|
|
5431
|
+
|
|
5358
5432
|
- module-name: 'sentence_transformers.SentenceTransformer' # checksum: c6062648
|
|
5359
5433
|
implicit-imports:
|
|
5360
5434
|
- depends:
|
|
@@ -5962,6 +6036,11 @@
|
|
|
5962
6036
|
- 'sklearn.tree._tree'
|
|
5963
6037
|
- 'sklearn.tree._utils'
|
|
5964
6038
|
|
|
6039
|
+
- module-name: 'sklearn.tree._splitter' # checksum: f99ea94
|
|
6040
|
+
implicit-imports:
|
|
6041
|
+
- depends:
|
|
6042
|
+
- 'sklearn.tree._partitioner'
|
|
6043
|
+
|
|
5965
6044
|
- module-name: 'sklearn.tree._tree' # checksum: 327dee3d
|
|
5966
6045
|
implicit-imports:
|
|
5967
6046
|
- depends:
|
|
@@ -6081,24 +6160,6 @@
|
|
|
6081
6160
|
- 'libportaudio'
|
|
6082
6161
|
when: 'macos'
|
|
6083
6162
|
|
|
6084
|
-
- module-name: 'soundfile' # checksum: ea2aad42
|
|
6085
|
-
dlls:
|
|
6086
|
-
- from_filenames:
|
|
6087
|
-
relative_path: '_soundfile_data'
|
|
6088
|
-
prefixes:
|
|
6089
|
-
- 'libsndfile*64bit'
|
|
6090
|
-
when: 'win32 and arch_amd64'
|
|
6091
|
-
- from_filenames:
|
|
6092
|
-
relative_path: '_soundfile_data'
|
|
6093
|
-
prefixes:
|
|
6094
|
-
- 'libsndfile*32bit'
|
|
6095
|
-
when: 'win32 and arch_x86'
|
|
6096
|
-
- from_filenames:
|
|
6097
|
-
relative_path: '_soundfile_data'
|
|
6098
|
-
prefixes:
|
|
6099
|
-
- 'libsndfile'
|
|
6100
|
-
when: 'macos'
|
|
6101
|
-
|
|
6102
6163
|
- module-name: 'spacy' # checksum: 4943d3fa
|
|
6103
6164
|
data-files:
|
|
6104
6165
|
- dirs:
|
|
@@ -6206,7 +6267,13 @@
|
|
|
6206
6267
|
- depends:
|
|
6207
6268
|
- 'sqlalchemy.orm.dependency'
|
|
6208
6269
|
|
|
6209
|
-
- module-name: 'sqlfluff' # checksum:
|
|
6270
|
+
- module-name: 'sqlfluff' # checksum: 3fc9a782
|
|
6271
|
+
data-files:
|
|
6272
|
+
- include-metadata:
|
|
6273
|
+
# TODO: Actually we should be able to include by
|
|
6274
|
+
# entry point names.
|
|
6275
|
+
- 'sqlfluff'
|
|
6276
|
+
|
|
6210
6277
|
anti-bloat:
|
|
6211
6278
|
- description: 'remove pytest reference'
|
|
6212
6279
|
replacements_plain:
|
|
@@ -7869,7 +7936,7 @@
|
|
|
7869
7936
|
- patterns:
|
|
7870
7937
|
- '*.css'
|
|
7871
7938
|
|
|
7872
|
-
- module-name: 'transformers' # checksum:
|
|
7939
|
+
- module-name: 'transformers' # checksum: d013b95f
|
|
7873
7940
|
data-files:
|
|
7874
7941
|
- include-metadata:
|
|
7875
7942
|
- 'accelerate'
|
|
@@ -7892,6 +7959,7 @@
|
|
|
7892
7959
|
- 'openai'
|
|
7893
7960
|
- 'pygments'
|
|
7894
7961
|
- 'soundfile'
|
|
7962
|
+
- 'tqdm'
|
|
7895
7963
|
|
|
7896
7964
|
anti-bloat:
|
|
7897
7965
|
- description: 'remove IPython reference'
|
|
@@ -8373,9 +8441,10 @@
|
|
|
8373
8441
|
- patterns:
|
|
8374
8442
|
- 'VERSION'
|
|
8375
8443
|
|
|
8376
|
-
- module-name: 'webview' # checksum:
|
|
8444
|
+
- module-name: 'webview' # checksum: f4e8fc01
|
|
8377
8445
|
data-files:
|
|
8378
8446
|
- dirs:
|
|
8447
|
+
- 'js'
|
|
8379
8448
|
- 'lib'
|
|
8380
8449
|
dlls:
|
|
8381
8450
|
- from_filenames:
|
|
@@ -8637,12 +8706,13 @@
|
|
|
8637
8706
|
prefixes:
|
|
8638
8707
|
- 'xgboost'
|
|
8639
8708
|
|
|
8640
|
-
- module-name: 'xgboost.sklearn' # checksum:
|
|
8709
|
+
- module-name: 'xgboost.sklearn' # checksum: d0a963f4
|
|
8641
8710
|
anti-bloat:
|
|
8642
8711
|
- description: 'remove docstring dependency'
|
|
8643
8712
|
replacements_plain:
|
|
8644
8713
|
'fit.__doc__ = XGBModel.fit.__doc__.replace(': 'fit.__doc__ = "Fit gradient boosting model".replace('
|
|
8645
|
-
|
|
8714
|
+
'assert XGBModel.fit.__doc__ is not None': ''
|
|
8715
|
+
when: 'no_docstrings'
|
|
8646
8716
|
|
|
8647
8717
|
- module-name: 'Xlib.display' # checksum: 3b1d6e64
|
|
8648
8718
|
implicit-imports:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
""" This is for use in testing, but also for user tools too."""
|
|
@@ -51,6 +51,10 @@ def getCompilationOutputBinary(compilation_report, prefixes):
|
|
|
51
51
|
)
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
def getCompilationOutputMode(compilation_report):
|
|
55
|
+
return compilation_report.attrib["mode"]
|
|
56
|
+
|
|
57
|
+
|
|
54
58
|
def getEmbeddedDataFilenames(compilation_report):
|
|
55
59
|
result = []
|
|
56
60
|
|
nuitka/reports/Reports.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
""" Collection of information for reports and their writing.
|
|
@@ -30,6 +30,7 @@ from nuitka.ModuleRegistry import (
|
|
|
30
30
|
getModuleOptimizationTimingInfos,
|
|
31
31
|
)
|
|
32
32
|
from nuitka.Options import (
|
|
33
|
+
getCompilationMode,
|
|
33
34
|
getCompilationReportFilename,
|
|
34
35
|
getCompilationReportTemplates,
|
|
35
36
|
getCompilationReportUserData,
|
|
@@ -240,6 +241,8 @@ def _getReportInputData(aborted):
|
|
|
240
241
|
scons_error_report_data = {}
|
|
241
242
|
output_run_filename = "failed too early"
|
|
242
243
|
|
|
244
|
+
compilation_mode = getCompilationMode()
|
|
245
|
+
|
|
243
246
|
return dict(
|
|
244
247
|
(var_name, var_value)
|
|
245
248
|
for var_name, var_value in locals().items()
|
|
@@ -509,6 +512,7 @@ def writeCompilationReport(report_filename, report_input_data, diffable):
|
|
|
509
512
|
"nuitka-compilation-report",
|
|
510
513
|
nuitka_version=report_input_data["nuitka_version"],
|
|
511
514
|
nuitka_commercial_version=report_input_data["nuitka_commercial_version"],
|
|
515
|
+
mode=report_input_data["compilation_mode"],
|
|
512
516
|
completion=completion,
|
|
513
517
|
)
|
|
514
518
|
|
nuitka/reports/__init__.py
CHANGED
nuitka/specs/HardImportSpecs.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
""" Hard import specs.
|
|
@@ -93,7 +93,15 @@ importlib_resources_backport_read_binary_spec = BuiltinParameterSpec(
|
|
|
93
93
|
default_count=0,
|
|
94
94
|
type_shape=tshape_bytes,
|
|
95
95
|
)
|
|
96
|
-
|
|
96
|
+
importlib_resources_read_text_since_313_spec = BuiltinParameterSpec(
|
|
97
|
+
"importlib.resources.read_text",
|
|
98
|
+
("package",),
|
|
99
|
+
list_star_arg="resources",
|
|
100
|
+
kw_only_args=("encoding", "errors"),
|
|
101
|
+
default_count=2,
|
|
102
|
+
type_shape=tshape_str,
|
|
103
|
+
)
|
|
104
|
+
importlib_resources_read_text_before_313_spec = BuiltinParameterSpec(
|
|
97
105
|
"importlib.resources.read_text",
|
|
98
106
|
("package", "resource", "encoding", "errors"),
|
|
99
107
|
default_count=2,
|
nuitka/specs/ParameterSpecs.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
""" This module maintains the parameter specification classes.
|
|
@@ -238,6 +238,7 @@ class ParameterSpec(object):
|
|
|
238
238
|
return result
|
|
239
239
|
|
|
240
240
|
def getParameterNames(self):
|
|
241
|
+
"""Get parameter names in code object order."""
|
|
241
242
|
result = list(self.pos_only_args + self.normal_args)
|
|
242
243
|
|
|
243
244
|
result += self.kw_only_args
|
|
@@ -250,6 +251,20 @@ class ParameterSpec(object):
|
|
|
250
251
|
|
|
251
252
|
return tuple(result)
|
|
252
253
|
|
|
254
|
+
def getParameterNames2(self):
|
|
255
|
+
"""Get parameter names in call order of execution."""
|
|
256
|
+
result = list(self.pos_only_args + self.normal_args)
|
|
257
|
+
|
|
258
|
+
if self.list_star_arg is not None:
|
|
259
|
+
result.append(self.list_star_arg)
|
|
260
|
+
|
|
261
|
+
result += self.kw_only_args
|
|
262
|
+
|
|
263
|
+
if self.dict_star_arg is not None:
|
|
264
|
+
result.append(self.dict_star_arg)
|
|
265
|
+
|
|
266
|
+
return tuple(result)
|
|
267
|
+
|
|
253
268
|
def getStarListArgumentName(self):
|
|
254
269
|
return self.list_star_arg
|
|
255
270
|
|
|
@@ -590,7 +605,7 @@ def matchCall(
|
|
|
590
605
|
unassigned,
|
|
591
606
|
"s" if unassigned > 1 else "",
|
|
592
607
|
" and ".join(
|
|
593
|
-
"'%s'" %
|
|
608
|
+
["'%s'" % arg for arg in kw_only_args if not isAssigned(arg)]
|
|
594
609
|
),
|
|
595
610
|
)
|
|
596
611
|
)
|
nuitka/specs/__init__.py
CHANGED
nuitka/tools/Basics.py
CHANGED
nuitka/tools/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
"""Data composer, crunch constants into binary blobs to load. """
|
|
@@ -14,6 +14,7 @@ from nuitka.__past__ import BytesIO, long, to_byte, unicode, xrange
|
|
|
14
14
|
from nuitka.build.DataComposerInterface import deriveModuleConstantsBlobName
|
|
15
15
|
from nuitka.Builtins import builtin_exception_values_list, builtin_named_values
|
|
16
16
|
from nuitka.containers.OrderedDicts import OrderedDict
|
|
17
|
+
from nuitka.nodes.CodeObjectSpecs import CodeObjectSpec
|
|
17
18
|
from nuitka.PythonVersions import python_version
|
|
18
19
|
from nuitka.Serialization import (
|
|
19
20
|
BlobData,
|
|
@@ -180,6 +181,7 @@ def _writeConstantValue(output, constant_value):
|
|
|
180
181
|
output.write(b"f" + struct.pack("d", constant_value))
|
|
181
182
|
elif constant_type is unicode:
|
|
182
183
|
if str is not bytes:
|
|
184
|
+
# spell-checker: ignore surrogatepass
|
|
183
185
|
encoded = constant_value.encode("utf8", "surrogatepass")
|
|
184
186
|
else:
|
|
185
187
|
encoded = constant_value.encode("utf8")
|
|
@@ -296,12 +298,134 @@ def _writeConstantValue(output, constant_value):
|
|
|
296
298
|
output.write(b"E")
|
|
297
299
|
output.write(constant_value.__name__.encode("utf8"))
|
|
298
300
|
output.write(b"\0")
|
|
301
|
+
elif constant_type is CodeObjectSpec:
|
|
302
|
+
output.write(b"C")
|
|
303
|
+
_last_written = None
|
|
304
|
+
|
|
305
|
+
_writeConstantValueCodeObject(output, constant_value)
|
|
306
|
+
|
|
299
307
|
else:
|
|
300
308
|
assert False, (type(constant_value), constant_value)
|
|
301
309
|
|
|
302
310
|
_last_written = constant_value
|
|
303
311
|
|
|
304
312
|
|
|
313
|
+
def _writeConstantValueCodeObject(output, code_object):
|
|
314
|
+
# Lots of details and optimization to deal with
|
|
315
|
+
# pylint: disable=too-many-branches,too-many-statements
|
|
316
|
+
|
|
317
|
+
# Flags for the code object, not all items will be present.
|
|
318
|
+
flags = 0
|
|
319
|
+
|
|
320
|
+
# Current bit, allocated dynamically based on availability of a feature
|
|
321
|
+
# per version and compatibility modes.
|
|
322
|
+
flag_base = 1
|
|
323
|
+
|
|
324
|
+
if python_version >= 0x3B0:
|
|
325
|
+
if code_object.getCodeObjectQualname() != code_object.getCodeObjectName():
|
|
326
|
+
|
|
327
|
+
assert code_object.getCodeObjectQualname().endswith(
|
|
328
|
+
"." + code_object.getCodeObjectName()
|
|
329
|
+
)
|
|
330
|
+
flags |= flag_base
|
|
331
|
+
|
|
332
|
+
qualname_flag_value = flag_base
|
|
333
|
+
flag_base <<= 1
|
|
334
|
+
else:
|
|
335
|
+
qualname_flag_value = 0
|
|
336
|
+
|
|
337
|
+
if code_object.getFreeVarNames():
|
|
338
|
+
flags |= flag_base
|
|
339
|
+
free_var_flag_value = flag_base
|
|
340
|
+
flag_base <<= 1
|
|
341
|
+
|
|
342
|
+
if python_version >= 0x300:
|
|
343
|
+
if code_object.getKwOnlyParameterCount():
|
|
344
|
+
flags |= flag_base
|
|
345
|
+
kw_only_flag_value = flag_base
|
|
346
|
+
flag_base <<= 1
|
|
347
|
+
else:
|
|
348
|
+
kw_only_flag_value = 0
|
|
349
|
+
|
|
350
|
+
# TODO: Not all versions have this.
|
|
351
|
+
if python_version >= 0x380:
|
|
352
|
+
if code_object.getPosOnlyParameterCount():
|
|
353
|
+
flags |= flag_base
|
|
354
|
+
pos_only_flag_value = flag_base
|
|
355
|
+
flag_base <<= 1
|
|
356
|
+
else:
|
|
357
|
+
pos_only_flag_value = 0
|
|
358
|
+
|
|
359
|
+
co_kind = code_object.getCodeObjectKind()
|
|
360
|
+
|
|
361
|
+
# TODO: Not all versions have coroutines and asyncgen.
|
|
362
|
+
if co_kind == "Generator":
|
|
363
|
+
flags |= flag_base # CO_GENERATOR
|
|
364
|
+
elif co_kind == "Coroutine":
|
|
365
|
+
flags |= flag_base * 2 # CO_COROUTINE
|
|
366
|
+
elif co_kind == "Asyncgen":
|
|
367
|
+
flags |= flag_base * 3 # CO_ASYNC_GENERATOR
|
|
368
|
+
flag_base <<= 2
|
|
369
|
+
|
|
370
|
+
# TODO: Version specific?
|
|
371
|
+
# TODO: Maybe invert the logic, if this is default
|
|
372
|
+
if code_object.getFlagIsOptimizedValue():
|
|
373
|
+
flags |= flag_base
|
|
374
|
+
flag_base <<= 1
|
|
375
|
+
|
|
376
|
+
# TODO: Version specific?
|
|
377
|
+
if code_object.getFlagNewLocalsValue():
|
|
378
|
+
flags |= flag_base
|
|
379
|
+
flag_base <<= 1
|
|
380
|
+
|
|
381
|
+
if code_object.hasStarListArg():
|
|
382
|
+
flags |= flag_base
|
|
383
|
+
flag_base <<= 1
|
|
384
|
+
|
|
385
|
+
if code_object.hasStarDictArg():
|
|
386
|
+
flags |= flag_base
|
|
387
|
+
flag_base <<= 1
|
|
388
|
+
|
|
389
|
+
# Note: This is the last, so the actual bit size doesn't
|
|
390
|
+
# have to be dealt with here.
|
|
391
|
+
flags |= flag_base * code_object.getFutureSpec().encode()
|
|
392
|
+
|
|
393
|
+
output.write(_encodeVariableLength(flags))
|
|
394
|
+
|
|
395
|
+
# Name is mandatory, no flag needed.
|
|
396
|
+
_writeConstantValue(output, code_object.getCodeObjectName())
|
|
397
|
+
|
|
398
|
+
# Line number is mandatory, no flag needed. Encoded values start at 0,
|
|
399
|
+
# where 1 is what is normally used.
|
|
400
|
+
output.write(_encodeVariableLength(code_object.getLineNumber() - 1))
|
|
401
|
+
|
|
402
|
+
# Right now this is only argument names, so argument count is implied,
|
|
403
|
+
# it is mandatory so no flag is needed, empty value is very compact
|
|
404
|
+
# anyway and rare.
|
|
405
|
+
_writeConstantValue(output, code_object.getVarNames())
|
|
406
|
+
|
|
407
|
+
# TODO: Not sure if this is redundant potentially it can
|
|
408
|
+
# be derives from the var names already.
|
|
409
|
+
output.write(_encodeVariableLength(code_object.getArgumentCount()))
|
|
410
|
+
|
|
411
|
+
# Do not include the name part in the code object, saving
|
|
412
|
+
# the repetition.
|
|
413
|
+
if flags & qualname_flag_value:
|
|
414
|
+
_writeConstantValue(output, code_object.getCodeObjectQualname().rsplit(".")[0])
|
|
415
|
+
|
|
416
|
+
# Free vars are optional.
|
|
417
|
+
if flags & free_var_flag_value:
|
|
418
|
+
_writeConstantValue(output, code_object.getFreeVarNames())
|
|
419
|
+
|
|
420
|
+
# Keyword-only args are optional and version dependent.
|
|
421
|
+
if flags & kw_only_flag_value:
|
|
422
|
+
output.write(_encodeVariableLength(code_object.getKwOnlyParameterCount() - 1))
|
|
423
|
+
|
|
424
|
+
# Positional-only args are optional and version dependent.
|
|
425
|
+
if flags & pos_only_flag_value:
|
|
426
|
+
output.write(_encodeVariableLength(code_object.getPosOnlyParameterCount() - 1))
|
|
427
|
+
|
|
428
|
+
|
|
305
429
|
def _writeConstantStream(constants_reader):
|
|
306
430
|
result = BytesIO()
|
|
307
431
|
|