Nuitka-winsvc 2.5.6__cp311-cp311-win_amd64.whl → 2.6.5__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.5.data}/scripts/nuitka-run.cmd +1 -1
- {Nuitka_winsvc-2.5.6.data → Nuitka_winsvc-2.6.5.data}/scripts/nuitka.cmd +1 -1
- {Nuitka_winsvc-2.5.6.dist-info → Nuitka_winsvc-2.6.5.dist-info}/METADATA +36 -24
- Nuitka_winsvc-2.6.5.dist-info/RECORD +992 -0
- {Nuitka_winsvc-2.5.6.dist-info → Nuitka_winsvc-2.6.5.dist-info}/WHEEL +1 -1
- nuitka/Builtins.py +1 -1
- nuitka/BytecodeCaching.py +15 -4
- 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 +19 -4
- nuitka/OptionParsing.py +86 -17
- nuitka/Options.py +230 -106
- nuitka/OutputDirectories.py +5 -3
- nuitka/PostProcessing.py +76 -27
- nuitka/Progress.py +1 -1
- nuitka/PythonFlavors.py +24 -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 +57 -35
- nuitka/build/SconsHacks.py +3 -3
- nuitka/build/SconsInterface.py +86 -58
- 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 +6 -13
- 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 +2 -2
- 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 +2 -2
- nuitka/build/include/nuitka/unfreezing.h +1 -1
- nuitka/build/inline_copy/pefile/LICENSE.txt +21 -0
- nuitka/build/inline_copy/pefile/ordlookup/__init__.py +41 -0
- nuitka/build/inline_copy/pefile/ordlookup/oleaut32.py +400 -0
- nuitka/build/inline_copy/pefile/ordlookup/ws2_32.py +120 -0
- nuitka/build/inline_copy/pefile/pefile.py +8034 -0
- nuitka/build/static_src/CompiledAsyncgenType.c +80 -75
- nuitka/build/static_src/CompiledCellType.c +2 -1
- nuitka/build/static_src/CompiledCodeHelpers.c +10 -28
- nuitka/build/static_src/CompiledCoroutineType.c +30 -40
- nuitka/build/static_src/CompiledFrameType.c +63 -5
- nuitka/build/static_src/CompiledFunctionType.c +11 -13
- nuitka/build/static_src/CompiledGeneratorType.c +56 -13
- 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 +2 -2
- 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 +5 -5
- nuitka/build/static_src/InspectPatcher.c +2 -1
- nuitka/build/static_src/MainProgram.c +30 -6
- nuitka/build/static_src/MetaPathBasedLoader.c +19 -11
- 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 +6 -4
- 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 +4 -3
- 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 +8 -3
- nuitka/freezer/DllDependenciesPosix.py +23 -4
- nuitka/freezer/DllDependenciesWin32.py +112 -25
- nuitka/freezer/ImportDetection.py +1 -1
- nuitka/freezer/IncludedDataFiles.py +2 -2
- nuitka/freezer/IncludedEntryPoints.py +9 -1
- nuitka/freezer/Onefile.py +13 -15
- nuitka/freezer/Standalone.py +16 -4
- 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 +6 -4
- 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 +240 -16
- 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 +8 -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 +23 -9
- 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 +4 -2
- 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 +4 -4
- 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 +91 -16
- nuitka/plugins/Plugins.py +58 -15
- nuitka/plugins/YamlPluginBase.py +1 -1
- nuitka/plugins/__init__.py +1 -1
- nuitka/plugins/standard/AntiBloatPlugin.py +138 -66
- 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 +7 -6
- 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 +25 -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 +257 -89
- nuitka/reports/CompilationReportReader.py +5 -1
- nuitka/reports/LicenseReport.rst.j2 +1 -1
- nuitka/reports/Reports.py +30 -3
- 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 +6 -3
- 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 +42 -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 +124 -266
- nuitka/tree/Building.py +5 -7
- nuitka/tree/ComplexCallHelperFunctions.py +1 -1
- nuitka/tree/Extractions.py +1 -1
- nuitka/tree/FutureSpecState.py +71 -0
- nuitka/tree/InternalModule.py +1 -1
- nuitka/tree/Operations.py +1 -1
- nuitka/tree/ReformulationAssertStatements.py +1 -1
- nuitka/tree/ReformulationAssignmentStatements.py +3 -3
- 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 +3 -3
- nuitka/tree/ReformulationExecStatements.py +1 -1
- nuitka/tree/ReformulationForLoopStatements.py +1 -1
- nuitka/tree/ReformulationFunctionStatements.py +2 -2
- nuitka/tree/ReformulationImportStatements.py +5 -52
- nuitka/tree/ReformulationLambdaExpressions.py +2 -1
- nuitka/tree/ReformulationMatchStatements.py +1 -1
- nuitka/tree/ReformulationMultidist.py +2 -2
- nuitka/tree/ReformulationNamespacePackages.py +28 -6
- 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 +57 -18
- 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 +197 -15
- nuitka/utils/Download.py +14 -6
- nuitka/utils/Execution.py +43 -14
- nuitka/utils/FileOperations.py +43 -10
- 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 +29 -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.5.dist-info}/LICENSE.txt +0 -0
- {Nuitka_winsvc-2.5.6.dist-info → Nuitka_winsvc-2.6.5.dist-info}/entry_points.txt +0 -0
- {Nuitka_winsvc-2.5.6.dist-info → Nuitka_winsvc-2.6.5.dist-info}/top_level.txt +0 -0
nuitka/tools/podman/__main__.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
|
""" Launcher for running a script inside a container.
|
|
@@ -220,6 +220,7 @@ def getCppPath():
|
|
|
220
220
|
mingw64_gcc_path = getCachedDownloadedMinGW64(
|
|
221
221
|
target_arch=getArchitecture(),
|
|
222
222
|
assume_yes_for_downloads=assumeYesForDownloads(),
|
|
223
|
+
download_ok=True,
|
|
223
224
|
)
|
|
224
225
|
|
|
225
226
|
with withEnvironmentPathAdded("PATH", os.path.dirname(mingw64_gcc_path)):
|
|
@@ -327,7 +328,8 @@ def main():
|
|
|
327
328
|
|
|
328
329
|
if not os.path.isfile(container_file_path):
|
|
329
330
|
containers_logger.sysexit(
|
|
330
|
-
"Error, no container ID '%s' found
|
|
331
|
+
"Error, no container ID '%s' found at '%s'."
|
|
332
|
+
% (options.container_id, container_file_path)
|
|
331
333
|
)
|
|
332
334
|
|
|
333
335
|
getBranchRemoteIdentifier()
|
|
@@ -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
|
""" Display the DLLs in a package. """
|
|
@@ -15,7 +15,11 @@ from nuitka.importing.Importing import (
|
|
|
15
15
|
)
|
|
16
16
|
from nuitka.Tracing import tools_logger
|
|
17
17
|
from nuitka.tree.SourceHandling import readSourceCodeFromFilename
|
|
18
|
-
from nuitka.utils.FileOperations import
|
|
18
|
+
from nuitka.utils.FileOperations import (
|
|
19
|
+
listDllFilesFromDirectory,
|
|
20
|
+
listExeFilesFromDirectory,
|
|
21
|
+
relpath,
|
|
22
|
+
)
|
|
19
23
|
from nuitka.utils.Importing import (
|
|
20
24
|
getPackageDirFilename,
|
|
21
25
|
getSharedLibrarySuffixes,
|
|
@@ -34,7 +38,7 @@ def getPythonEntryPointExportedSymbolName(module_name):
|
|
|
34
38
|
return result
|
|
35
39
|
|
|
36
40
|
|
|
37
|
-
def
|
|
41
|
+
def isFileExtensionModule(module_filename):
|
|
38
42
|
for suffix in getSharedLibrarySuffixes():
|
|
39
43
|
if module_filename.endswith(suffix):
|
|
40
44
|
module_name = ModuleName(os.path.basename(module_filename)[: -len(suffix)])
|
|
@@ -53,8 +57,7 @@ def isExtensionModule(module_filename):
|
|
|
53
57
|
return False
|
|
54
58
|
|
|
55
59
|
|
|
56
|
-
def
|
|
57
|
-
"""Display the DLLs for a module name."""
|
|
60
|
+
def scanModule(module_name, scan_function):
|
|
58
61
|
module_name = ModuleName(module_name)
|
|
59
62
|
|
|
60
63
|
if not hasMainScriptDirectory():
|
|
@@ -87,32 +90,51 @@ def displayDLLs(module_name):
|
|
|
87
90
|
|
|
88
91
|
tools_logger.info("Checking package directory '%s' .. " % package_directory)
|
|
89
92
|
|
|
90
|
-
count = 0
|
|
91
|
-
|
|
92
93
|
for package_dll_dir in getPackageSpecificDLLDirectories(
|
|
93
94
|
module_name, consider_plugins=True
|
|
94
95
|
):
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
for package_dll_filename, _dll_basename in listDllFilesFromDirectory(
|
|
98
|
-
package_dll_dir
|
|
99
|
-
):
|
|
100
|
-
if isExtensionModule(package_dll_filename):
|
|
96
|
+
for package_dll_filename, _dll_basename in scan_function(package_dll_dir):
|
|
97
|
+
if isFileExtensionModule(package_dll_filename):
|
|
101
98
|
continue
|
|
102
99
|
|
|
103
|
-
|
|
104
|
-
tools_logger.my_print(package_dll_dir)
|
|
105
|
-
first = False
|
|
100
|
+
yield package_directory, package_dll_filename, package_dll_dir
|
|
106
101
|
|
|
107
|
-
tools_logger.my_print(
|
|
108
|
-
" %s" % relpath(package_dll_filename, start=package_dll_dir),
|
|
109
|
-
)
|
|
110
102
|
|
|
111
|
-
|
|
103
|
+
def displayDLLs(module_name):
|
|
104
|
+
"""Display the DLLs for a module name."""
|
|
105
|
+
|
|
106
|
+
count = 0
|
|
107
|
+
|
|
108
|
+
for package_directory, package_dll_filename, _package_dll_dir in scanModule(
|
|
109
|
+
module_name=module_name, scan_function=listDllFilesFromDirectory
|
|
110
|
+
):
|
|
111
|
+
tools_logger.my_print(
|
|
112
|
+
" %s" % relpath(package_dll_filename, start=package_directory),
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
count += 1
|
|
112
116
|
|
|
113
117
|
tools_logger.info("Found %s DLLs." % count)
|
|
114
118
|
|
|
115
119
|
|
|
120
|
+
def displayEXEs(module_name):
|
|
121
|
+
"""Display the EXEs for a module name."""
|
|
122
|
+
|
|
123
|
+
count = 0
|
|
124
|
+
|
|
125
|
+
for package_directory, package_dll_filename, _package_dll_dir in scanModule(
|
|
126
|
+
module_name=module_name, scan_function=listExeFilesFromDirectory
|
|
127
|
+
):
|
|
128
|
+
|
|
129
|
+
tools_logger.my_print(
|
|
130
|
+
" %s" % relpath(package_dll_filename, start=package_directory),
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
count += 1
|
|
134
|
+
|
|
135
|
+
tools_logger.info("Found %s EXEs." % count)
|
|
136
|
+
|
|
137
|
+
|
|
116
138
|
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
117
139
|
# integrates with CPython, but also works on its own.
|
|
118
140
|
#
|
|
@@ -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
|
""" C type descriptions. For specific or general C types, provide code generation help.
|
|
@@ -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 tool is generating node variants from Jinja templates.
|
|
@@ -31,6 +31,7 @@ import nuitka.specs.BuiltinStrOperationSpecs
|
|
|
31
31
|
import nuitka.specs.BuiltinTypeOperationSpecs
|
|
32
32
|
import nuitka.specs.HardImportSpecs
|
|
33
33
|
import nuitka.tree.Building
|
|
34
|
+
from nuitka.containers.OrderedDicts import OrderedDict
|
|
34
35
|
from nuitka.containers.OrderedSets import OrderedSet
|
|
35
36
|
from nuitka.nodes.ImportNodes import hard_modules_non_stdlib
|
|
36
37
|
from nuitka.nodes.NodeMetaClasses import NodeCheckMetaClass
|
|
@@ -454,6 +455,7 @@ def makeBuiltinOperationNodes():
|
|
|
454
455
|
addChildrenMixin=addChildrenMixin,
|
|
455
456
|
reversed=reversed,
|
|
456
457
|
str=str,
|
|
458
|
+
repr=repr,
|
|
457
459
|
name=template.name,
|
|
458
460
|
)
|
|
459
461
|
|
|
@@ -955,6 +957,8 @@ def getSpecVersions(spec_module):
|
|
|
955
957
|
(0x390, "39"),
|
|
956
958
|
(0x3A0, "310"),
|
|
957
959
|
(0x3B0, "311"),
|
|
960
|
+
(0x3C0, "312"),
|
|
961
|
+
(0x3D0, "313"),
|
|
958
962
|
):
|
|
959
963
|
if "since_%s" % str_version in spec_name:
|
|
960
964
|
python_criterion = ">= 0x%x" % version
|
|
@@ -1018,7 +1022,7 @@ hard_import_node_classes = {}
|
|
|
1018
1022
|
for spec_descriptions in getSpecVersions(nuitka.specs.HardImportSpecs):
|
|
1019
1023
|
spec = spec_descriptions[0][2]
|
|
1020
1024
|
|
|
1021
|
-
named_children_checkers =
|
|
1025
|
+
named_children_checkers = OrderedDict()
|
|
1022
1026
|
|
|
1023
1027
|
module_name, function_name = spec.name.rsplit(".", 1)
|
|
1024
1028
|
module_name_title = makeTitleCased(adaptModuleName(module_name))
|
|
@@ -1048,7 +1052,7 @@ hard_import_node_classes = {}
|
|
|
1048
1052
|
|
|
1049
1053
|
for spec_desc in spec_descriptions:
|
|
1050
1054
|
spec = spec_desc.spec
|
|
1051
|
-
parameter_names = spec.
|
|
1055
|
+
parameter_names = spec.getParameterNames2()
|
|
1052
1056
|
|
|
1053
1057
|
named_children_types = {}
|
|
1054
1058
|
if spec.name == "pkg_resources.require":
|
nuitka/tools/testing/Common.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
|
""" Common test infrastructure functions. To be used by test runners. """
|
|
@@ -17,6 +17,7 @@ from contextlib import contextmanager
|
|
|
17
17
|
from optparse import OptionParser
|
|
18
18
|
|
|
19
19
|
from nuitka.__past__ import md5, subprocess
|
|
20
|
+
from nuitka.containers.OrderedDicts import OrderedDict
|
|
20
21
|
from nuitka.Options import getCommercialVersion
|
|
21
22
|
from nuitka.PythonVersions import getTestExecutionPythonVersions, isDebugPython
|
|
22
23
|
from nuitka.Tracing import OurLogger, my_print
|
|
@@ -28,6 +29,7 @@ from nuitka.utils.Execution import (
|
|
|
28
29
|
executeProcess,
|
|
29
30
|
getNullInput,
|
|
30
31
|
getNullOutput,
|
|
32
|
+
withEnvironmentVarOverridden,
|
|
31
33
|
)
|
|
32
34
|
from nuitka.utils.FileOperations import (
|
|
33
35
|
areSamePaths,
|
|
@@ -401,6 +403,48 @@ def _removeCPythonTestSuiteDir():
|
|
|
401
403
|
raise
|
|
402
404
|
|
|
403
405
|
|
|
406
|
+
def _compareWithCPythonVariations(
|
|
407
|
+
dirname, filename, extra_flags, search_mode, on_error=None
|
|
408
|
+
):
|
|
409
|
+
if "" not in extra_flags:
|
|
410
|
+
test_logger.sysexit("Error, default flags not present")
|
|
411
|
+
|
|
412
|
+
# Drop empty values or identical values.
|
|
413
|
+
extra_flags = OrderedDict(
|
|
414
|
+
(key, value) for (key, value) in extra_flags.items() if (value or key == "")
|
|
415
|
+
)
|
|
416
|
+
|
|
417
|
+
def _getVariation(source, variant_name):
|
|
418
|
+
if type(source) in (dict, OrderedDict):
|
|
419
|
+
return source.get(variant_name, source.get(""))
|
|
420
|
+
else:
|
|
421
|
+
return source
|
|
422
|
+
|
|
423
|
+
if len(extra_flags) == 1:
|
|
424
|
+
return compareWithCPython(
|
|
425
|
+
dirname=dirname,
|
|
426
|
+
filename=filename,
|
|
427
|
+
extra_flags=_getVariation(extra_flags, ""),
|
|
428
|
+
search_mode=search_mode,
|
|
429
|
+
on_error=on_error,
|
|
430
|
+
)
|
|
431
|
+
|
|
432
|
+
for test_variant_name in extra_flags.keys():
|
|
433
|
+
if test_variant_name == "":
|
|
434
|
+
test_logger.info("Default variation of the test.")
|
|
435
|
+
else:
|
|
436
|
+
test_logger.info("Extra variation '%s'." % test_variant_name)
|
|
437
|
+
|
|
438
|
+
with withEnvironmentVarOverridden("NUITKA_TEST_VARIANT", test_variant_name):
|
|
439
|
+
compareWithCPython(
|
|
440
|
+
dirname=_getVariation(dirname, test_variant_name),
|
|
441
|
+
filename=_getVariation(filename, test_variant_name),
|
|
442
|
+
extra_flags=_getVariation(extra_flags, test_variant_name),
|
|
443
|
+
search_mode=search_mode,
|
|
444
|
+
on_error=on_error,
|
|
445
|
+
)
|
|
446
|
+
|
|
447
|
+
|
|
404
448
|
def compareWithCPython(dirname, filename, extra_flags, search_mode, on_error=None):
|
|
405
449
|
"""Call the comparison tool. For a given directory filename.
|
|
406
450
|
|
|
@@ -409,6 +453,16 @@ def compareWithCPython(dirname, filename, extra_flags, search_mode, on_error=Non
|
|
|
409
453
|
|
|
410
454
|
"""
|
|
411
455
|
|
|
456
|
+
# Allow being called with variations of extra flags.
|
|
457
|
+
if type(extra_flags) in (dict, OrderedDict):
|
|
458
|
+
return _compareWithCPythonVariations(
|
|
459
|
+
dirname=dirname,
|
|
460
|
+
filename=filename,
|
|
461
|
+
extra_flags=extra_flags,
|
|
462
|
+
search_mode=search_mode,
|
|
463
|
+
on_error=on_error,
|
|
464
|
+
)
|
|
465
|
+
|
|
412
466
|
if dirname is None:
|
|
413
467
|
path = filename
|
|
414
468
|
else:
|
|
@@ -657,7 +711,7 @@ def getTotalReferenceCount():
|
|
|
657
711
|
return result
|
|
658
712
|
|
|
659
713
|
|
|
660
|
-
def checkReferenceCount(checked_function, max_rounds=20, explain=False):
|
|
714
|
+
def checkReferenceCount(checked_function, max_rounds=20, explain=False, no_print=True):
|
|
661
715
|
# This is obviously going to be complex, pylint: disable=too-many-branches
|
|
662
716
|
|
|
663
717
|
# Clean start conditions.
|
|
@@ -666,7 +720,8 @@ def checkReferenceCount(checked_function, max_rounds=20, explain=False):
|
|
|
666
720
|
my_print(checked_function.__name__ + ": ", end="")
|
|
667
721
|
sys.stdout.flush()
|
|
668
722
|
|
|
669
|
-
|
|
723
|
+
if no_print:
|
|
724
|
+
disablePrinting()
|
|
670
725
|
|
|
671
726
|
# Make sure reference for these are already taken at the start.
|
|
672
727
|
ref_count1 = 17
|
|
@@ -699,7 +754,8 @@ def checkReferenceCount(checked_function, max_rounds=20, explain=False):
|
|
|
699
754
|
if explain and count == max_rounds - 1:
|
|
700
755
|
snapObjRefCntMap(before=False)
|
|
701
756
|
|
|
702
|
-
|
|
757
|
+
if no_print:
|
|
758
|
+
reenablePrinting()
|
|
703
759
|
|
|
704
760
|
if result:
|
|
705
761
|
my_print("PASSED")
|
|
@@ -853,7 +909,7 @@ def reportSkip(reason, dirname, filename):
|
|
|
853
909
|
|
|
854
910
|
|
|
855
911
|
def executeReferenceChecked(
|
|
856
|
-
prefix, names, tests_skipped=(), tests_stderr=(), explain=False
|
|
912
|
+
prefix, names, tests_skipped=(), tests_stderr=(), explain=False, no_print=True
|
|
857
913
|
):
|
|
858
914
|
gc.disable()
|
|
859
915
|
|
|
@@ -883,10 +939,14 @@ def executeReferenceChecked(
|
|
|
883
939
|
if number in tests_stderr:
|
|
884
940
|
sys.stderr = null_output
|
|
885
941
|
except OSError: # Windows
|
|
886
|
-
if not checkReferenceCount(
|
|
942
|
+
if not checkReferenceCount(
|
|
943
|
+
names[name], explain=explain, no_print=no_print
|
|
944
|
+
):
|
|
887
945
|
result = False
|
|
888
946
|
else:
|
|
889
|
-
if not checkReferenceCount(
|
|
947
|
+
if not checkReferenceCount(
|
|
948
|
+
names[name], explain=explain, no_print=no_print
|
|
949
|
+
):
|
|
890
950
|
result = False
|
|
891
951
|
finally:
|
|
892
952
|
if number in tests_stderr:
|
|
@@ -1185,7 +1245,7 @@ def async_iterate(g):
|
|
|
1185
1245
|
break
|
|
1186
1246
|
except StopIteration as ex:
|
|
1187
1247
|
if ex.args:
|
|
1188
|
-
res.append("
|
|
1248
|
+
res.append("StopIteration args %s" % ex.args)
|
|
1189
1249
|
else:
|
|
1190
1250
|
res.append("EMPTY StopIteration")
|
|
1191
1251
|
break
|
|
@@ -1195,6 +1255,30 @@ def async_iterate(g):
|
|
|
1195
1255
|
return res
|
|
1196
1256
|
|
|
1197
1257
|
|
|
1258
|
+
def sync_iterate(g):
|
|
1259
|
+
"""Execute sync generator until it's done."""
|
|
1260
|
+
res = []
|
|
1261
|
+
|
|
1262
|
+
while True:
|
|
1263
|
+
try:
|
|
1264
|
+
if str is bytes:
|
|
1265
|
+
res.append(next(g))
|
|
1266
|
+
else:
|
|
1267
|
+
res.append(g.__next__())
|
|
1268
|
+
except StopIteration as ex:
|
|
1269
|
+
if ex.args:
|
|
1270
|
+
res.append("StopIteration arg %s" % ex.args[0])
|
|
1271
|
+
else:
|
|
1272
|
+
res.append("EMPTY StopIteration")
|
|
1273
|
+
|
|
1274
|
+
break
|
|
1275
|
+
except Exception as ex: # pylint: disable=broad-exception-caught
|
|
1276
|
+
|
|
1277
|
+
res.append(str(type(ex)))
|
|
1278
|
+
|
|
1279
|
+
return res
|
|
1280
|
+
|
|
1281
|
+
|
|
1198
1282
|
def getTestingCacheDir():
|
|
1199
1283
|
cache_dir = getCacheDir("tests_state")
|
|
1200
1284
|
makePath(cache_dir)
|
|
@@ -1210,21 +1294,36 @@ def getTestingCPythonOutputsCacheDir():
|
|
|
1210
1294
|
return result
|
|
1211
1295
|
|
|
1212
1296
|
|
|
1213
|
-
def scanDirectoryForTestCases(
|
|
1297
|
+
def scanDirectoryForTestCases(
|
|
1298
|
+
dirname, template_context=None, cases_are_directories=False
|
|
1299
|
+
):
|
|
1214
1300
|
filenames = os.listdir(dirname)
|
|
1215
1301
|
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1302
|
+
if not cases_are_directories:
|
|
1303
|
+
filenames = [
|
|
1304
|
+
filename
|
|
1305
|
+
for filename in filenames
|
|
1306
|
+
if (filename.endswith(".py") and filename + ".j2" not in filenames)
|
|
1307
|
+
or filename.endswith(".j2")
|
|
1308
|
+
]
|
|
1222
1309
|
|
|
1223
1310
|
for filename in sorted(filenames):
|
|
1311
|
+
if filename.endswith((".build", ".onefile-build", ".dist", ".app")):
|
|
1312
|
+
continue
|
|
1313
|
+
|
|
1314
|
+
filename_full = os.path.join(dirname, filename)
|
|
1315
|
+
|
|
1316
|
+
if cases_are_directories:
|
|
1317
|
+
if not os.path.isdir(filename_full):
|
|
1318
|
+
continue
|
|
1319
|
+
else:
|
|
1320
|
+
if not os.path.isfile(filename_full):
|
|
1321
|
+
continue
|
|
1322
|
+
|
|
1224
1323
|
if not decideFilenameVersionSkip(filename):
|
|
1225
1324
|
continue
|
|
1226
1325
|
|
|
1227
|
-
if filename.endswith(".j2"):
|
|
1326
|
+
if cases_are_directories and filename.endswith(".j2"):
|
|
1228
1327
|
# Needs to be a dictionary with template arguments.
|
|
1229
1328
|
assert template_context is not None
|
|
1230
1329
|
|
|
@@ -1248,7 +1347,7 @@ def scanDirectoryForTestCases(dirname, template_context=None):
|
|
|
1248
1347
|
yield filename
|
|
1249
1348
|
|
|
1250
1349
|
|
|
1251
|
-
def scanDirectoryForTestCaseFolders(dirname):
|
|
1350
|
+
def scanDirectoryForTestCaseFolders(dirname, allow_none=False):
|
|
1252
1351
|
filenames = os.listdir(dirname)
|
|
1253
1352
|
|
|
1254
1353
|
for filename in sorted(filenames):
|
|
@@ -1265,7 +1364,7 @@ def scanDirectoryForTestCaseFolders(dirname):
|
|
|
1265
1364
|
):
|
|
1266
1365
|
continue
|
|
1267
1366
|
|
|
1268
|
-
filename_main = getMainProgramFilename(filename)
|
|
1367
|
+
filename_main = getMainProgramFilename(filename, allow_none=allow_none)
|
|
1269
1368
|
|
|
1270
1369
|
yield filename, filename_main
|
|
1271
1370
|
|
|
@@ -1486,6 +1585,7 @@ def checkLoadedFileAccesses(loaded_filenames, current_dir):
|
|
|
1486
1585
|
"/sys",
|
|
1487
1586
|
"/tmp",
|
|
1488
1587
|
"/var",
|
|
1588
|
+
"/private/var",
|
|
1489
1589
|
# Locals may of course be loaded.
|
|
1490
1590
|
"/usr/lib/locale",
|
|
1491
1591
|
"/usr/share/locale",
|
|
@@ -1853,7 +1953,7 @@ def checkLoadedFileAccesses(loaded_filenames, current_dir):
|
|
|
1853
1953
|
return illegal_accesses
|
|
1854
1954
|
|
|
1855
1955
|
|
|
1856
|
-
def getMainProgramFilename(filename):
|
|
1956
|
+
def getMainProgramFilename(filename, allow_none=False):
|
|
1857
1957
|
for filename_main in os.listdir(filename):
|
|
1858
1958
|
if filename_main.endswith(("Main.py", "Main")):
|
|
1859
1959
|
return filename_main
|
|
@@ -1866,6 +1966,9 @@ def getMainProgramFilename(filename):
|
|
|
1866
1966
|
):
|
|
1867
1967
|
return filename_main
|
|
1868
1968
|
|
|
1969
|
+
if allow_none:
|
|
1970
|
+
return None
|
|
1971
|
+
|
|
1869
1972
|
test_logger.sysexit(
|
|
1870
1973
|
"""\
|
|
1871
1974
|
Error, no file ends with 'Main.py' or 'Main' in '%s', incomplete test case."""
|
|
@@ -1982,6 +2085,24 @@ def extractNuitkaVersionFromFilePath(version_filename):
|
|
|
1982
2085
|
return version_line[8:].rstrip()
|
|
1983
2086
|
|
|
1984
2087
|
|
|
2088
|
+
def decryptOutput(project_options, output):
|
|
2089
|
+
nuitka_decrypt_call = [
|
|
2090
|
+
os.environ.get("PYTHON", sys.executable),
|
|
2091
|
+
"-m",
|
|
2092
|
+
"nuitka.tools.commercial.decrypt", # Note: Needed for Python2.6
|
|
2093
|
+
]
|
|
2094
|
+
|
|
2095
|
+
for project_option in project_options:
|
|
2096
|
+
if project_option.startswith("--encryption-key="):
|
|
2097
|
+
nuitka_decrypt_call.append("--key=" + project_option.split("=", 1)[1])
|
|
2098
|
+
|
|
2099
|
+
stdout, stderr, exit_code = executeProcess(nuitka_decrypt_call, stdin=output)
|
|
2100
|
+
|
|
2101
|
+
assert exit_code == 0, stderr
|
|
2102
|
+
|
|
2103
|
+
return stdout
|
|
2104
|
+
|
|
2105
|
+
|
|
1985
2106
|
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
1986
2107
|
# integrates with CPython, but also works on its own.
|
|
1987
2108
|
#
|
|
@@ -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
|
""" Tools to compare outputs of compiled and not compiled programs.
|
|
@@ -96,9 +96,10 @@ def makeDiffable(output, ignore_warnings, syntax_errors):
|
|
|
96
96
|
line = line[:-1]
|
|
97
97
|
|
|
98
98
|
if line.startswith("REFCOUNTS"):
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
if "[" in line:
|
|
100
|
+
first_value = line[line.find("[") + 1 : line.find(",")]
|
|
101
|
+
last_value = line[line.rfind(" ") + 1 : line.rfind("]")]
|
|
102
|
+
line = line.replace(first_value, "xxxxx").replace(last_value, "xxxxx")
|
|
102
103
|
|
|
103
104
|
if line.startswith("[") and line.endswith("refs]"):
|
|
104
105
|
continue
|
nuitka/tools/testing/Pythons.py
CHANGED
nuitka/tools/testing/Valgrind.py
CHANGED
nuitka/tools/testing/__init__.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
""" Tool to compare reference counting behavior of CPython and Nuitka.
|
|
@@ -24,6 +24,7 @@ def main():
|
|
|
24
24
|
"--checked-module",
|
|
25
25
|
action="store",
|
|
26
26
|
dest="checked_module",
|
|
27
|
+
default=None,
|
|
27
28
|
help="""\
|
|
28
29
|
Module with main() function to be checked for reference count stability.""",
|
|
29
30
|
)
|
|
@@ -42,6 +43,9 @@ Try to explain the differences by comparing object counts.""",
|
|
|
42
43
|
if positional_args and options.checked_module is None:
|
|
43
44
|
options.checked_module = positional_args.pop()
|
|
44
45
|
|
|
46
|
+
if options.checked_module is None:
|
|
47
|
+
sys.exit("\nNeed to provide checked module filename.")
|
|
48
|
+
|
|
45
49
|
if positional_args and options.checked_module:
|
|
46
50
|
parser.print_help()
|
|
47
51
|
|
|
@@ -57,7 +61,7 @@ Try to explain the differences by comparing object counts.""",
|
|
|
57
61
|
sys.executable,
|
|
58
62
|
"-m",
|
|
59
63
|
"nuitka",
|
|
60
|
-
"--module",
|
|
64
|
+
"--mode=module",
|
|
61
65
|
options.checked_module,
|
|
62
66
|
"--output-dir=%s" % temp_dir,
|
|
63
67
|
]
|