Nuitka-winsvc 2.0.6__cp311-cp311-win_amd64.whl → 2.1__cp311-cp311-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of Nuitka-winsvc might be problematic. Click here for more details.
- {Nuitka_winsvc-2.0.6.data → Nuitka_winsvc-2.1.data}/scripts/nuitka-run.bat +9 -9
- {Nuitka_winsvc-2.0.6.data → Nuitka_winsvc-2.1.data}/scripts/nuitka.bat +15 -15
- {Nuitka_winsvc-2.0.6.dist-info → Nuitka_winsvc-2.1.dist-info}/METADATA +1 -1
- Nuitka_winsvc-2.1.dist-info/RECORD +920 -0
- nuitka/Builtins.py +18 -17
- nuitka/BytecodeCaching.py +20 -19
- nuitka/Bytecodes.py +19 -17
- nuitka/CacheCleanup.py +22 -22
- nuitka/Constants.py +19 -17
- nuitka/Errors.py +19 -17
- nuitka/HardImportRegistry.py +20 -17
- nuitka/MainControl.py +31 -19
- nuitka/ModuleRegistry.py +40 -20
- nuitka/OptionParsing.py +59 -43
- nuitka/Options.py +42 -17
- nuitka/OutputDirectories.py +19 -17
- nuitka/PostProcessing.py +19 -17
- nuitka/Progress.py +19 -17
- nuitka/PythonFlavors.py +22 -18
- nuitka/PythonOperators.py +18 -17
- nuitka/PythonVersions.py +19 -17
- nuitka/Serialization.py +21 -25
- nuitka/SourceCodeReferences.py +19 -17
- nuitka/Tracing.py +33 -20
- nuitka/TreeXML.py +19 -17
- nuitka/Variables.py +19 -17
- nuitka/Version.py +2 -2
- nuitka/__init__.py +5 -4
- nuitka/__main__.py +18 -17
- nuitka/__past__.py +18 -17
- nuitka/build/Backend.scons +18 -21
- nuitka/build/CCompilerVersion.scons +17 -17
- nuitka/build/DataComposerInterface.py +19 -17
- nuitka/build/Onefile.scons +18 -21
- nuitka/build/SconsCaching.py +24 -43
- nuitka/build/SconsCompilerSettings.py +25 -29
- nuitka/build/SconsHacks.py +19 -17
- nuitka/build/SconsInterface.py +20 -25
- nuitka/build/SconsProgress.py +19 -17
- nuitka/build/SconsSpawn.py +40 -29
- nuitka/build/SconsUtils.py +85 -20
- nuitka/build/__init__.py +5 -4
- nuitka/build/include/nuitka/allocator.h +17 -17
- nuitka/build/include/nuitka/builtins.h +17 -17
- nuitka/build/include/nuitka/calling.h +17 -17
- nuitka/build/include/nuitka/checkers.h +17 -18
- nuitka/build/include/nuitka/checksum_tools.h +14 -15
- nuitka/build/include/nuitka/compiled_asyncgen.h +17 -17
- nuitka/build/include/nuitka/compiled_cell.h +17 -17
- nuitka/build/include/nuitka/compiled_coroutine.h +17 -17
- nuitka/build/include/nuitka/compiled_frame.h +17 -17
- nuitka/build/include/nuitka/compiled_function.h +17 -17
- nuitka/build/include/nuitka/compiled_generator.h +17 -17
- nuitka/build/include/nuitka/compiled_method.h +16 -17
- nuitka/build/include/nuitka/constants.h +17 -18
- nuitka/build/include/nuitka/constants_blob.h +17 -17
- nuitka/build/include/nuitka/environment_variables.h +16 -16
- nuitka/build/include/nuitka/environment_variables_system.h +17 -18
- nuitka/build/include/nuitka/exception_groups.h +17 -18
- nuitka/build/include/nuitka/exceptions.h +17 -17
- nuitka/build/include/nuitka/filesystem_paths.h +17 -18
- nuitka/build/include/nuitka/freelists.h +16 -17
- nuitka/build/include/nuitka/helper/attributes.h +17 -17
- nuitka/build/include/nuitka/helper/boolean.h +17 -17
- nuitka/build/include/nuitka/helper/bytearrays.h +17 -17
- nuitka/build/include/nuitka/helper/bytes.h +14 -15
- nuitka/build/include/nuitka/helper/calling_generated.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_eq.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_ge.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_gt.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_le.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_lt.h +17 -17
- nuitka/build/include/nuitka/helper/comparisons_ne.h +17 -17
- nuitka/build/include/nuitka/helper/complex.h +17 -17
- nuitka/build/include/nuitka/helper/dictionaries.h +17 -17
- nuitka/build/include/nuitka/helper/floats.h +17 -18
- nuitka/build/include/nuitka/helper/import_hard.h +17 -17
- nuitka/build/include/nuitka/helper/indexes.h +17 -18
- nuitka/build/include/nuitka/helper/ints.h +17 -18
- nuitka/build/include/nuitka/helper/iterators.h +17 -17
- nuitka/build/include/nuitka/helper/lists.h +17 -18
- nuitka/build/include/nuitka/helper/lists_generated.h +17 -17
- nuitka/build/include/nuitka/helper/mappings.h +17 -18
- nuitka/build/include/nuitka/helper/operations.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_add.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_bitand.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_bitor.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_bitxor.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_divmod.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_floordiv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_lshift.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_matmult.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_mod.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_mult.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_olddiv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_pow.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_rshift.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_sub.h +17 -17
- nuitka/build/include/nuitka/helper/operations_binary_truediv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_builtin_types.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_add.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_bitand.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_bitor.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_bitxor.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_floordiv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_lshift.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_matmult.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_mod.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_mult.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_olddiv.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_pow.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_rshift.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_sub.h +17 -17
- nuitka/build/include/nuitka/helper/operations_inplace_truediv.h +17 -17
- nuitka/build/include/nuitka/helper/raising.h +17 -17
- nuitka/build/include/nuitka/helper/rangeobjects.h +17 -17
- nuitka/build/include/nuitka/helper/richcomparisons.h +14 -14
- nuitka/build/include/nuitka/helper/sequences.h +13 -13
- nuitka/build/include/nuitka/helper/sets.h +11 -12
- nuitka/build/include/nuitka/helper/slices.h +17 -17
- nuitka/build/include/nuitka/helper/strings.h +16 -17
- nuitka/build/include/nuitka/helper/subscripts.h +17 -17
- nuitka/build/include/nuitka/helper/tuples.h +17 -18
- nuitka/build/include/nuitka/helpers.h +17 -17
- nuitka/build/include/nuitka/importing.h +17 -17
- nuitka/build/include/nuitka/prelude.h +17 -17
- nuitka/build/include/nuitka/printing.h +17 -17
- nuitka/build/include/nuitka/python_pgo.h +17 -18
- nuitka/build/include/nuitka/safe_string_ops.h +17 -18
- nuitka/build/include/nuitka/threading.h +17 -17
- nuitka/build/include/nuitka/tracing.h +17 -17
- nuitka/build/include/nuitka/unfreezing.h +17 -17
- nuitka/build/static_src/CompiledAsyncgenType.c +17 -17
- nuitka/build/static_src/CompiledCellType.c +17 -18
- nuitka/build/static_src/CompiledCodeHelpers.c +17 -17
- nuitka/build/static_src/CompiledCoroutineType.c +17 -17
- nuitka/build/static_src/CompiledFrameType.c +17 -18
- nuitka/build/static_src/CompiledFunctionType.c +17 -18
- nuitka/build/static_src/CompiledGeneratorType.c +17 -18
- nuitka/build/static_src/CompiledGeneratorTypeUncompiledIntegration.c +17 -17
- nuitka/build/static_src/CompiledMethodType.c +17 -17
- nuitka/build/static_src/HelpersAllocator.c +17 -17
- nuitka/build/static_src/HelpersAttributes.c +16 -18
- nuitka/build/static_src/HelpersBuiltin.c +17 -17
- nuitka/build/static_src/HelpersBuiltinTypeMethods.c +17 -17
- nuitka/build/static_src/HelpersBytes.c +17 -18
- nuitka/build/static_src/HelpersCalling.c +17 -17
- nuitka/build/static_src/HelpersCallingGenerated.c +17 -17
- nuitka/build/static_src/HelpersChecksumTools.c +17 -18
- nuitka/build/static_src/HelpersClasses.c +17 -17
- nuitka/build/static_src/HelpersComparisonEq.c +17 -17
- nuitka/build/static_src/HelpersComparisonEqUtils.c +17 -17
- nuitka/build/static_src/HelpersComparisonGe.c +17 -17
- nuitka/build/static_src/HelpersComparisonGt.c +17 -17
- nuitka/build/static_src/HelpersComparisonLe.c +17 -17
- nuitka/build/static_src/HelpersComparisonLt.c +17 -17
- nuitka/build/static_src/HelpersComparisonNe.c +17 -17
- nuitka/build/static_src/HelpersConstantsBlob.c +17 -17
- nuitka/build/static_src/HelpersDeepcopy.c +17 -17
- nuitka/build/static_src/HelpersDictionaries.c +17 -17
- nuitka/build/static_src/HelpersDictionariesGenerated.c +16 -17
- nuitka/build/static_src/HelpersDumpBacktraces.c +17 -18
- nuitka/build/static_src/HelpersEnvironmentVariables.c +17 -17
- nuitka/build/static_src/HelpersEnvironmentVariablesSystem.c +17 -17
- nuitka/build/static_src/HelpersExceptions.c +17 -18
- nuitka/build/static_src/HelpersFiles.c +17 -17
- nuitka/build/static_src/HelpersFilesystemPaths.c +17 -17
- nuitka/build/static_src/HelpersFloats.c +17 -17
- nuitka/build/static_src/HelpersHeapStorage.c +17 -17
- nuitka/build/static_src/HelpersImport.c +17 -17
- nuitka/build/static_src/HelpersImportHard.c +17 -17
- nuitka/build/static_src/HelpersLists.c +17 -18
- nuitka/build/static_src/HelpersListsGenerated.c +17 -17
- nuitka/build/static_src/HelpersMappings.c +17 -17
- nuitka/build/static_src/HelpersMatching.c +17 -18
- nuitka/build/static_src/HelpersOperationBinaryAdd.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryAddUtils.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryBitand.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryBitor.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryBitxor.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryDivmod.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryDivmodUtils.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryFloordiv.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryInplaceAdd.c +17 -18
- nuitka/build/static_src/HelpersOperationBinaryLshift.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryMatmult.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryMod.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryMult.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryMultUtils.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryOlddiv.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryPow.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryPowUtils.c +12 -12
- nuitka/build/static_src/HelpersOperationBinaryRshift.c +17 -17
- nuitka/build/static_src/HelpersOperationBinarySub.c +17 -17
- nuitka/build/static_src/HelpersOperationBinaryTruediv.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceAdd.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceAddUtils.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceBitand.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceBitor.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceBitxor.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceFloordiv.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceLshift.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceMatmult.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceMod.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceMult.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceOlddiv.c +17 -17
- nuitka/build/static_src/HelpersOperationInplacePow.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceRshift.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceSub.c +17 -17
- nuitka/build/static_src/HelpersOperationInplaceTruediv.c +17 -17
- nuitka/build/static_src/HelpersProfiling.c +17 -17
- nuitka/build/static_src/HelpersPythonPgo.c +17 -17
- nuitka/build/static_src/HelpersRaising.c +17 -17
- nuitka/build/static_src/HelpersSafeStrings.c +17 -17
- nuitka/build/static_src/HelpersSequences.c +17 -18
- nuitka/build/static_src/HelpersSlices.c +17 -18
- nuitka/build/static_src/HelpersStrings.c +17 -17
- nuitka/build/static_src/HelpersTuples.c +17 -17
- nuitka/build/static_src/HelpersTypes.c +17 -18
- nuitka/build/static_src/InspectPatcher.c +17 -17
- nuitka/build/static_src/MainProgram.c +17 -17
- nuitka/build/static_src/MetaPathBasedLoader.c +18 -18
- nuitka/build/static_src/MetaPathBasedLoaderImportlibMetadataDistribution.c +17 -17
- nuitka/build/static_src/MetaPathBasedLoaderResourceReader.c +17 -18
- nuitka/build/static_src/MetaPathBasedLoaderResourceReaderFiles.c +17 -18
- nuitka/build/static_src/OnefileBootstrap.c +17 -17
- nuitka/build/static_src/OnefileSplashScreen.cpp +17 -18
- nuitka/code_generation/AsyncgenCodes.py +19 -17
- nuitka/code_generation/AttributeCodes.py +19 -17
- nuitka/code_generation/BinaryOperationHelperDefinitions.py +19 -17
- nuitka/code_generation/BranchCodes.py +19 -17
- nuitka/code_generation/BuiltinCodes.py +19 -17
- nuitka/code_generation/CallCodes.py +19 -17
- nuitka/code_generation/ClassCodes.py +19 -17
- nuitka/code_generation/CodeGeneration.py +19 -17
- nuitka/code_generation/CodeHelperSelection.py +19 -17
- nuitka/code_generation/CodeHelpers.py +19 -17
- nuitka/code_generation/CodeObjectCodes.py +19 -17
- nuitka/code_generation/ComparisonCodes.py +19 -17
- nuitka/code_generation/ComparisonHelperDefinitions.py +19 -17
- nuitka/code_generation/ConditionalCodes.py +19 -17
- nuitka/code_generation/ConstantCodes.py +19 -17
- nuitka/code_generation/Contexts.py +19 -17
- nuitka/code_generation/CoroutineCodes.py +19 -17
- nuitka/code_generation/CtypesCodes.py +19 -17
- nuitka/code_generation/DictCodes.py +19 -17
- nuitka/code_generation/Emission.py +19 -17
- nuitka/code_generation/ErrorCodes.py +19 -17
- nuitka/code_generation/EvalCodes.py +19 -17
- nuitka/code_generation/ExceptionCodes.py +19 -17
- nuitka/code_generation/ExpressionCTypeSelectionHelpers.py +19 -17
- nuitka/code_generation/ExpressionCodes.py +19 -17
- nuitka/code_generation/FrameCodes.py +19 -17
- nuitka/code_generation/FunctionCodes.py +19 -17
- nuitka/code_generation/GeneratorCodes.py +19 -17
- nuitka/code_generation/GlobalConstants.py +19 -17
- nuitka/code_generation/GlobalsLocalsCodes.py +19 -17
- nuitka/code_generation/IdCodes.py +19 -17
- nuitka/code_generation/ImportCodes.py +19 -17
- nuitka/code_generation/Indentation.py +19 -17
- nuitka/code_generation/IndexCodes.py +19 -17
- nuitka/code_generation/InjectCCodes.py +14 -12
- nuitka/code_generation/IntegerCodes.py +19 -17
- nuitka/code_generation/IteratorCodes.py +19 -17
- nuitka/code_generation/LabelCodes.py +19 -17
- nuitka/code_generation/LineNumberCodes.py +19 -17
- nuitka/code_generation/ListCodes.py +19 -17
- nuitka/code_generation/LoaderCodes.py +19 -17
- nuitka/code_generation/LocalsDictCodes.py +19 -17
- nuitka/code_generation/LoopCodes.py +19 -17
- nuitka/code_generation/MatchCodes.py +19 -17
- nuitka/code_generation/ModuleCodes.py +19 -17
- nuitka/code_generation/Namify.py +19 -17
- nuitka/code_generation/OperationCodes.py +21 -25
- nuitka/code_generation/PackageResourceCodes.py +19 -17
- nuitka/code_generation/PrintCodes.py +19 -17
- nuitka/code_generation/PythonAPICodes.py +19 -17
- nuitka/code_generation/RaisingCodes.py +19 -17
- nuitka/code_generation/Reports.py +19 -17
- nuitka/code_generation/ReturnCodes.py +19 -17
- nuitka/code_generation/SetCodes.py +19 -17
- nuitka/code_generation/SliceCodes.py +19 -17
- nuitka/code_generation/StringCodes.py +19 -17
- nuitka/code_generation/SubscriptCodes.py +19 -17
- nuitka/code_generation/TryCodes.py +19 -17
- nuitka/code_generation/TupleCodes.py +19 -17
- nuitka/code_generation/VariableCodes.py +19 -17
- nuitka/code_generation/VariableDeclarations.py +19 -17
- nuitka/code_generation/YieldCodes.py +19 -17
- nuitka/code_generation/__init__.py +5 -4
- nuitka/code_generation/c_types/CTypeBases.py +19 -17
- nuitka/code_generation/c_types/CTypeBooleans.py +19 -17
- nuitka/code_generation/c_types/CTypeCFloats.py +19 -17
- nuitka/code_generation/c_types/CTypeCLongs.py +19 -17
- nuitka/code_generation/c_types/CTypeModuleDictVariables.py +19 -17
- nuitka/code_generation/c_types/CTypeNuitkaBooleans.py +19 -17
- nuitka/code_generation/c_types/CTypeNuitkaInts.py +19 -17
- nuitka/code_generation/c_types/CTypeNuitkaVoids.py +19 -17
- nuitka/code_generation/c_types/CTypePyObjectPointers.py +19 -17
- nuitka/code_generation/c_types/CTypeVoids.py +19 -17
- nuitka/code_generation/c_types/__init__.py +5 -4
- nuitka/code_generation/templates/CodeTemplatesAsyncgens.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesConstants.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesCoroutines.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesExceptions.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesFrames.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesFunction.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesGeneratorFunction.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesIterators.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesLoader.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesModules.py +18 -17
- nuitka/code_generation/templates/CodeTemplatesVariables.py +18 -17
- nuitka/code_generation/templates/TemplateDebugWrapper.py +19 -17
- nuitka/code_generation/templates/__init__.py +5 -4
- nuitka/code_generation/templates_c/CodeTemplateCallsMethodPositional.c.j2 +17 -17
- nuitka/code_generation/templates_c/CodeTemplateCallsMixed.c.j2 +17 -17
- nuitka/code_generation/templates_c/CodeTemplateCallsPositional.c.j2 +17 -17
- nuitka/code_generation/templates_c/CodeTemplateCallsPositionalMethodDescr.c.j2 +17 -17
- nuitka/code_generation/templates_c/CodeTemplateMakeListHinted.c.j2 +17 -17
- nuitka/code_generation/templates_c/CodeTemplateMakeListSmall.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperBuiltinMethodOperation.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperDictionaryCopy.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperImportHard.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperLongTools.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperObjectTools.c.j2 +6 -6
- nuitka/code_generation/templates_c/HelperOperationBinary.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparison.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparisonBytes.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparisonFloat.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparisonInt.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparisonList.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparisonLong.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparisonStr.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparisonTuple.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationComparisonUnicode.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperOperationInplace.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsBinary.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsBytes.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsCommon.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsFloat.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsInt.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsList.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsLong.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsSet.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsStr.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsTuple.c.j2 +17 -17
- nuitka/code_generation/templates_c/HelperSlotsUnicode.c.j2 +17 -17
- nuitka/containers/Namedtuples.py +19 -17
- nuitka/containers/OrderedSetsFallback.py +19 -17
- nuitka/containers/__init__.py +5 -4
- nuitka/distutils/Build.py +18 -17
- nuitka/distutils/DistutilCommands.py +19 -17
- nuitka/distutils/__init__.py +5 -4
- nuitka/finalizations/Finalization.py +19 -17
- nuitka/finalizations/FinalizeMarkups.py +20 -21
- nuitka/finalizations/__init__.py +5 -4
- nuitka/freezer/DependsExe.py +19 -17
- nuitka/freezer/DllDependenciesCommon.py +19 -17
- nuitka/freezer/DllDependenciesMacOS.py +19 -17
- nuitka/freezer/DllDependenciesPosix.py +18 -17
- nuitka/freezer/DllDependenciesWin32.py +20 -18
- nuitka/freezer/ImportDetection.py +19 -17
- nuitka/freezer/IncludedDataFiles.py +22 -17
- nuitka/freezer/IncludedEntryPoints.py +19 -17
- nuitka/freezer/Onefile.py +19 -17
- nuitka/freezer/Standalone.py +19 -17
- nuitka/freezer/__init__.py +5 -4
- nuitka/importing/IgnoreListing.py +19 -17
- nuitka/importing/ImportCache.py +19 -17
- nuitka/importing/ImportResolving.py +19 -17
- nuitka/importing/Importing.py +20 -18
- nuitka/importing/PreloadedPackages.py +19 -17
- nuitka/importing/Recursion.py +19 -17
- nuitka/importing/StandardLibrary.py +19 -17
- nuitka/importing/__init__.py +5 -4
- nuitka/nodes/AsyncgenNodes.py +19 -17
- nuitka/nodes/AttributeLookupNodes.py +19 -17
- nuitka/nodes/AttributeNodes.py +19 -17
- nuitka/nodes/AttributeNodesGenerated.py +18 -17
- nuitka/nodes/BuiltinAllNodes.py +19 -17
- nuitka/nodes/BuiltinAnyNodes.py +19 -17
- nuitka/nodes/BuiltinComplexNodes.py +19 -17
- nuitka/nodes/BuiltinDecodingNodes.py +19 -17
- nuitka/nodes/BuiltinDecoratorNodes.py +19 -17
- nuitka/nodes/BuiltinDictNodes.py +19 -17
- nuitka/nodes/BuiltinFormatNodes.py +19 -17
- nuitka/nodes/BuiltinHashNodes.py +19 -17
- nuitka/nodes/BuiltinInputNodes.py +19 -17
- nuitka/nodes/BuiltinIntegerNodes.py +19 -17
- nuitka/nodes/BuiltinIteratorNodes.py +19 -17
- nuitka/nodes/BuiltinLenNodes.py +19 -17
- nuitka/nodes/BuiltinNextNodes.py +19 -17
- nuitka/nodes/BuiltinOpenNodes.py +19 -17
- nuitka/nodes/BuiltinOperationNodeBasesGenerated.py +19 -17
- nuitka/nodes/BuiltinRangeNodes.py +19 -17
- nuitka/nodes/BuiltinRefNodes.py +19 -17
- nuitka/nodes/BuiltinSumNodes.py +19 -17
- nuitka/nodes/BuiltinTypeNodes.py +19 -17
- nuitka/nodes/BuiltinVarsNodes.py +19 -17
- nuitka/nodes/BytesNodes.py +19 -17
- nuitka/nodes/CallNodes.py +19 -17
- nuitka/nodes/Checkers.py +19 -17
- nuitka/nodes/ChildrenHavingMixins.py +125 -17
- nuitka/nodes/ClassNodes.py +19 -17
- nuitka/nodes/CodeObjectSpecs.py +19 -17
- nuitka/nodes/ComparisonNodes.py +19 -17
- nuitka/nodes/ConditionalNodes.py +19 -17
- nuitka/nodes/ConstantRefNodes.py +19 -17
- nuitka/nodes/ContainerMakingNodes.py +19 -17
- nuitka/nodes/ContainerOperationNodes.py +19 -17
- nuitka/nodes/CoroutineNodes.py +19 -17
- nuitka/nodes/CtypesNodes.py +19 -17
- nuitka/nodes/DictionaryNodes.py +19 -17
- nuitka/nodes/ExceptionNodes.py +19 -17
- nuitka/nodes/ExecEvalNodes.py +19 -17
- nuitka/nodes/ExpressionBases.py +19 -17
- nuitka/nodes/ExpressionBasesGenerated.py +18 -17
- nuitka/nodes/ExpressionShapeMixins.py +19 -17
- nuitka/nodes/FrameNodes.py +19 -17
- nuitka/nodes/FunctionAttributeNodes.py +19 -17
- nuitka/nodes/FunctionNodes.py +20 -18
- nuitka/nodes/FutureSpecs.py +19 -17
- nuitka/nodes/GeneratorNodes.py +19 -17
- nuitka/nodes/GlobalsLocalsNodes.py +19 -17
- nuitka/nodes/HardImportNodesGenerated.py +103 -17
- nuitka/nodes/ImportHardNodes.py +19 -17
- nuitka/nodes/ImportNodes.py +19 -17
- nuitka/nodes/IndicatorMixins.py +19 -17
- nuitka/nodes/InjectCNodes.py +19 -17
- nuitka/nodes/IterationHandles.py +19 -17
- nuitka/nodes/KeyValuePairNodes.py +19 -17
- nuitka/nodes/ListOperationNodes.py +19 -17
- nuitka/nodes/LocalsDictNodes.py +19 -17
- nuitka/nodes/LocalsScopes.py +19 -17
- nuitka/nodes/LoopNodes.py +25 -17
- nuitka/nodes/MatchNodes.py +19 -17
- nuitka/nodes/ModuleAttributeNodes.py +19 -17
- nuitka/nodes/ModuleNodes.py +27 -17
- nuitka/nodes/NodeBases.py +24 -18
- nuitka/nodes/NodeMakingHelpers.py +21 -19
- nuitka/nodes/NodeMetaClasses.py +19 -18
- nuitka/nodes/OperatorNodes.py +19 -17
- nuitka/nodes/OperatorNodesUnary.py +19 -17
- nuitka/nodes/OsSysNodes.py +34 -17
- nuitka/nodes/OutlineNodes.py +19 -17
- nuitka/nodes/PackageMetadataNodes.py +19 -17
- nuitka/nodes/PackageResourceNodes.py +19 -17
- nuitka/nodes/PrintNodes.py +19 -17
- nuitka/nodes/ReturnNodes.py +19 -17
- nuitka/nodes/SideEffectNodes.py +19 -17
- nuitka/nodes/SliceNodes.py +19 -17
- nuitka/nodes/StatementBasesGenerated.py +18 -17
- nuitka/nodes/StatementNodes.py +19 -17
- nuitka/nodes/StrNodes.py +19 -17
- nuitka/nodes/StringConcatenationNodes.py +19 -17
- nuitka/nodes/SubscriptNodes.py +19 -17
- nuitka/nodes/TryNodes.py +19 -17
- nuitka/nodes/TypeMatchNodes.py +19 -17
- nuitka/nodes/TypeNodes.py +19 -17
- nuitka/nodes/VariableAssignNodes.py +97 -59
- nuitka/nodes/VariableDelNodes.py +19 -17
- nuitka/nodes/VariableNameNodes.py +19 -17
- nuitka/nodes/VariableRefNodes.py +27 -17
- nuitka/nodes/VariableReleaseNodes.py +19 -17
- nuitka/nodes/YieldNodes.py +19 -17
- nuitka/nodes/__init__.py +5 -4
- nuitka/nodes/shapes/BuiltinTypeShapes.py +18 -17
- nuitka/nodes/shapes/ControlFlowDescriptions.py +19 -17
- nuitka/nodes/shapes/ShapeMixins.py +19 -17
- nuitka/nodes/shapes/StandardShapes.py +18 -17
- nuitka/nodes/shapes/__init__.py +5 -4
- nuitka/optimizations/BytecodeDemotion.py +19 -17
- nuitka/optimizations/FunctionInlining.py +19 -17
- nuitka/optimizations/Graphs.py +19 -17
- nuitka/optimizations/Optimization.py +19 -17
- nuitka/optimizations/OptimizeBuiltinCalls.py +19 -17
- nuitka/optimizations/Tags.py +19 -17
- nuitka/optimizations/TraceCollections.py +20 -18
- nuitka/optimizations/ValueTraces.py +40 -24
- nuitka/optimizations/__init__.py +5 -4
- nuitka/pgo/PGO.py +19 -17
- nuitka/pgo/__init__.py +5 -4
- nuitka/plugins/PluginBase.py +197 -51
- nuitka/plugins/Plugins.py +20 -18
- nuitka/plugins/__init__.py +5 -4
- nuitka/plugins/standard/AntiBloatPlugin.py +59 -31
- nuitka/plugins/standard/ConsiderPyLintAnnotationsPlugin.py +19 -17
- nuitka/plugins/standard/DataFilesPlugin.py +28 -18
- nuitka/plugins/standard/DelvewheelPlugin.py +23 -20
- nuitka/plugins/standard/DillPlugin/DillPlugin.c +17 -17
- nuitka/plugins/standard/DillPlugin/dill-postLoad.py +21 -18
- nuitka/plugins/standard/DillPlugin.py +19 -17
- nuitka/plugins/standard/DllFilesPlugin.py +52 -22
- nuitka/plugins/standard/EnumPlugin.py +19 -17
- nuitka/plugins/standard/EventletPlugin.py +19 -17
- nuitka/plugins/standard/GeventPlugin.py +19 -17
- nuitka/plugins/standard/GiPlugin.py +19 -17
- nuitka/plugins/standard/GlfwPlugin.py +19 -17
- nuitka/plugins/standard/ImplicitImports.py +28 -19
- nuitka/plugins/standard/KivyPlugin.py +19 -17
- nuitka/plugins/standard/MatplotlibPlugin.py +19 -17
- nuitka/plugins/standard/MultiprocessingPlugin.py +19 -17
- nuitka/plugins/standard/NumpyPlugin.py +19 -17
- nuitka/plugins/standard/OptionsNannyPlugin.py +19 -17
- nuitka/plugins/standard/PbrPlugin.py +19 -17
- nuitka/plugins/standard/PkgResourcesPlugin.py +19 -17
- nuitka/plugins/standard/PmwPlugin.py +19 -17
- nuitka/plugins/standard/PySidePyQtPlugin.py +19 -17
- nuitka/plugins/standard/PywebViewPlugin.py +19 -17
- nuitka/plugins/standard/TensorflowPlugin.py +19 -17
- nuitka/plugins/standard/TkinterPlugin.py +19 -17
- nuitka/plugins/standard/TorchPlugin.py +19 -17
- nuitka/plugins/standard/TransformersPlugin.py +19 -17
- nuitka/plugins/standard/TrioPlugin.py +17 -15
- nuitka/plugins/standard/UpxPlugin.py +20 -18
- nuitka/plugins/standard/__init__.py +5 -4
- nuitka/plugins/standard/standard.nuitka-package.config.yml +47 -2
- nuitka/reports/CompilationReportReader.py +19 -17
- nuitka/reports/LicenseReport.rst.j2 +17 -17
- nuitka/reports/Reports.py +74 -21
- nuitka/reports/__init__.py +5 -4
- nuitka/specs/BuiltinBytesOperationSpecs.py +18 -17
- nuitka/specs/BuiltinDictOperationSpecs.py +18 -17
- nuitka/specs/BuiltinListOperationSpecs.py +18 -17
- nuitka/specs/BuiltinParameterSpecs.py +19 -17
- nuitka/specs/BuiltinStrOperationSpecs.py +18 -17
- nuitka/specs/BuiltinTypeOperationSpecs.py +18 -17
- nuitka/specs/BuiltinUnicodeOperationSpecs.py +18 -17
- nuitka/specs/HardImportSpecs.py +27 -19
- nuitka/specs/ParameterSpecs.py +19 -17
- nuitka/specs/__init__.py +5 -4
- nuitka/tools/Basics.py +19 -17
- nuitka/tools/__init__.py +5 -4
- nuitka/tools/commercial/__init__.py +7 -6
- nuitka/tools/data_composer/DataComposer.py +19 -17
- nuitka/tools/data_composer/__init__.py +5 -4
- nuitka/tools/data_composer/__main__.py +18 -17
- nuitka/tools/environments/CreateEnvironment.py +19 -17
- nuitka/tools/environments/Virtualenv.py +19 -17
- nuitka/tools/environments/__init__.py +5 -4
- nuitka/tools/general/__init__.py +5 -4
- nuitka/tools/general/dll_report/__init__.py +5 -4
- nuitka/tools/general/dll_report/__main__.py +17 -17
- nuitka/tools/general/find_module/FindModuleCode.py +19 -17
- nuitka/tools/general/find_module/__init__.py +5 -4
- nuitka/tools/onefile_compressor/OnefileCompressor.py +20 -18
- nuitka/tools/onefile_compressor/__init__.py +5 -4
- nuitka/tools/onefile_compressor/__main__.py +18 -17
- nuitka/tools/podman/Podman.py +19 -17
- nuitka/tools/podman/__init__.py +5 -4
- nuitka/tools/podman/__main__.py +18 -17
- nuitka/tools/profiler/__init__.py +5 -4
- nuitka/tools/profiler/__main__.py +18 -17
- nuitka/tools/scanning/DisplayPackageDLLs.py +19 -17
- nuitka/tools/scanning/DisplayPackageData.py +19 -17
- nuitka/tools/scanning/__init__.py +5 -4
- nuitka/tools/specialize/CTypeDescriptions.py +18 -17
- nuitka/tools/specialize/Common.py +18 -17
- nuitka/tools/specialize/SpecializeC.py +19 -17
- nuitka/tools/specialize/SpecializePython.py +20 -17
- nuitka/tools/specialize/__init__.py +5 -4
- nuitka/tools/testing/Common.py +25 -27
- nuitka/tools/testing/Constructs.py +19 -17
- nuitka/tools/testing/OutputComparison.py +19 -17
- nuitka/tools/testing/Pythons.py +19 -17
- nuitka/tools/testing/RuntimeTracing.py +18 -17
- nuitka/tools/testing/SearchModes.py +19 -17
- nuitka/tools/testing/Valgrind.py +19 -17
- nuitka/tools/testing/__init__.py +5 -4
- nuitka/tools/testing/check_reference_counts/__init__.py +5 -4
- nuitka/tools/testing/check_reference_counts/__main__.py +17 -17
- nuitka/tools/testing/compare_with_cpython/__init__.py +5 -4
- nuitka/tools/testing/compare_with_cpython/__main__.py +17 -17
- nuitka/tools/testing/find_sxs_modules/__init__.py +5 -4
- nuitka/tools/testing/find_sxs_modules/__main__.py +17 -17
- nuitka/tools/testing/measure_construct_performance/__init__.py +5 -4
- nuitka/tools/testing/measure_construct_performance/__main__.py +17 -17
- nuitka/tools/testing/run_nuitka_tests/__init__.py +5 -4
- nuitka/tools/testing/run_nuitka_tests/__main__.py +17 -17
- nuitka/tools/watch/GitHub.py +18 -17
- nuitka/tools/watch/__init__.py +5 -4
- nuitka/tools/watch/__main__.py +20 -19
- nuitka/tree/Building.py +19 -17
- nuitka/tree/ComplexCallHelperFunctions.py +19 -17
- nuitka/tree/Extractions.py +19 -17
- nuitka/tree/InternalModule.py +19 -17
- nuitka/tree/Operations.py +19 -17
- nuitka/tree/ReformulationAssertStatements.py +19 -17
- nuitka/tree/ReformulationAssignmentStatements.py +19 -17
- nuitka/tree/ReformulationBooleanExpressions.py +19 -17
- nuitka/tree/ReformulationCallExpressions.py +19 -17
- nuitka/tree/ReformulationClasses.py +19 -17
- nuitka/tree/ReformulationClasses3.py +19 -17
- nuitka/tree/ReformulationComparisonExpressions.py +19 -17
- nuitka/tree/ReformulationContractionExpressions.py +19 -17
- nuitka/tree/ReformulationDictionaryCreation.py +19 -17
- nuitka/tree/ReformulationExecStatements.py +18 -17
- nuitka/tree/ReformulationForLoopStatements.py +19 -17
- nuitka/tree/ReformulationFunctionStatements.py +19 -17
- nuitka/tree/ReformulationImportStatements.py +19 -17
- nuitka/tree/ReformulationLambdaExpressions.py +19 -17
- nuitka/tree/ReformulationMatchStatements.py +19 -17
- nuitka/tree/ReformulationMultidist.py +19 -17
- nuitka/tree/ReformulationNamespacePackages.py +19 -17
- nuitka/tree/ReformulationPrintStatements.py +19 -17
- nuitka/tree/ReformulationSequenceCreation.py +19 -17
- nuitka/tree/ReformulationSubscriptExpressions.py +19 -17
- nuitka/tree/ReformulationTryExceptStatements.py +19 -17
- nuitka/tree/ReformulationTryFinallyStatements.py +19 -17
- nuitka/tree/ReformulationWhileLoopStatements.py +19 -17
- nuitka/tree/ReformulationWithStatements.py +19 -17
- nuitka/tree/ReformulationYieldExpressions.py +19 -17
- nuitka/tree/SourceHandling.py +19 -17
- nuitka/tree/SyntaxErrors.py +19 -17
- nuitka/tree/TreeHelpers.py +19 -17
- nuitka/tree/VariableClosure.py +19 -17
- nuitka/tree/__init__.py +5 -4
- nuitka/utils/AppDirs.py +30 -18
- nuitka/utils/CStrings.py +19 -17
- nuitka/utils/CommandLineOptions.py +19 -17
- nuitka/utils/Distributions.py +34 -22
- nuitka/utils/Download.py +20 -18
- nuitka/utils/Execution.py +22 -18
- nuitka/utils/FileOperations.py +31 -17
- nuitka/utils/Hashing.py +19 -17
- nuitka/utils/Images.py +19 -17
- nuitka/utils/Importing.py +31 -18
- nuitka/utils/InstalledPythons.py +19 -17
- nuitka/utils/InstanceCounters.py +19 -17
- nuitka/utils/Jinja2.py +19 -17
- nuitka/utils/Json.py +19 -17
- nuitka/utils/MacOSApp.py +19 -17
- nuitka/utils/MemoryUsage.py +19 -17
- nuitka/utils/ModuleNames.py +19 -17
- nuitka/utils/ReExecute.py +19 -17
- nuitka/utils/Rest.py +19 -17
- nuitka/utils/SharedLibraries.py +19 -17
- nuitka/utils/Shebang.py +19 -17
- nuitka/utils/Signing.py +19 -17
- nuitka/utils/SlotMetaClasses.py +19 -17
- nuitka/utils/StaticLibraries.py +19 -17
- nuitka/utils/ThreadedExecutor.py +18 -17
- nuitka/utils/Timing.py +19 -17
- nuitka/utils/Utils.py +19 -17
- nuitka/utils/WindowsFileUsage.py +18 -17
- nuitka/utils/WindowsResources.py +19 -17
- nuitka/utils/Yaml.py +19 -17
- nuitka/utils/__init__.py +5 -4
- Nuitka_winsvc-2.0.6.dist-info/RECORD +0 -920
- {Nuitka_winsvc-2.0.6.dist-info → Nuitka_winsvc-2.1.dist-info}/LICENSE.txt +0 -0
- {Nuitka_winsvc-2.0.6.dist-info → Nuitka_winsvc-2.1.dist-info}/WHEEL +0 -0
- {Nuitka_winsvc-2.0.6.dist-info → Nuitka_winsvc-2.1.dist-info}/entry_points.txt +0 -0
- {Nuitka_winsvc-2.0.6.dist-info → Nuitka_winsvc-2.1.dist-info}/top_level.txt +0 -0
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
"""UPX plugin. """
|
|
19
5
|
|
|
20
6
|
import os
|
|
@@ -97,7 +83,7 @@ Do not cache UPX compression result, by default DLLs are cached, exe files are n
|
|
|
97
83
|
upx_hash.updateFromFile(filename)
|
|
98
84
|
|
|
99
85
|
# TODO: Repeating pattern
|
|
100
|
-
upx_cache_dir =
|
|
86
|
+
upx_cache_dir = getCacheDir("upx")
|
|
101
87
|
makePath(upx_cache_dir)
|
|
102
88
|
|
|
103
89
|
upx_cache_filename = os.path.join(
|
|
@@ -169,3 +155,19 @@ Do not cache UPX compression result, by default DLLs are cached, exe files are n
|
|
|
169
155
|
self._compressFile(filename=filename, use_cache=False)
|
|
170
156
|
else:
|
|
171
157
|
self._warnNoUpx()
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
161
|
+
# integrates with CPython, but also works on its own.
|
|
162
|
+
#
|
|
163
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
164
|
+
# you may not use this file except in compliance with the License.
|
|
165
|
+
# You may obtain a copy of the License at
|
|
166
|
+
#
|
|
167
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
168
|
+
#
|
|
169
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
170
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
171
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
172
|
+
# See the License for the specific language governing permissions and
|
|
173
|
+
# limitations under the License.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
""" Dummy file to make this directory a package. """
|
|
5
|
+
|
|
3
6
|
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
4
7
|
# integrates with CPython, but also works on its own.
|
|
5
8
|
#
|
|
@@ -14,5 +17,3 @@
|
|
|
14
17
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
18
|
# See the License for the specific language governing permissions and
|
|
16
19
|
# limitations under the License.
|
|
17
|
-
#
|
|
18
|
-
""" Dummy file to make this directory a package. """
|
|
@@ -133,6 +133,15 @@
|
|
|
133
133
|
dirs:
|
|
134
134
|
- 'resources'
|
|
135
135
|
|
|
136
|
+
- module-name: 'aspose' # checksum: 4f20a71e
|
|
137
|
+
data-files:
|
|
138
|
+
patterns:
|
|
139
|
+
- '"**/*"+extension_std_suffix'
|
|
140
|
+
- '**/*.dll'
|
|
141
|
+
anti-bloat:
|
|
142
|
+
- no-follow:
|
|
143
|
+
'aspose.*': 'workaround for aspose needing to load its submodules'
|
|
144
|
+
|
|
136
145
|
- module-name: 'astor' # checksum: 85584475
|
|
137
146
|
data-files:
|
|
138
147
|
patterns:
|
|
@@ -1511,6 +1520,12 @@
|
|
|
1511
1520
|
'import ipywidgets.widgets as widgets': 'raise ImportError'
|
|
1512
1521
|
when: 'not use_ipython'
|
|
1513
1522
|
|
|
1523
|
+
- module-name: 'huggingface_hub._snapshot_download' # checksum: 94377758
|
|
1524
|
+
anti-bloat:
|
|
1525
|
+
- description: 'workaround hard module import attribute bug'
|
|
1526
|
+
replacements_plain:
|
|
1527
|
+
'from .utils import tqdm as hf_tqdm': 'from .utils.tqdm import tqdm as hf_tqdm'
|
|
1528
|
+
|
|
1514
1529
|
- module-name: 'huggingface_hub.commands.user' # checksum: 3c12cb9a
|
|
1515
1530
|
anti-bloat:
|
|
1516
1531
|
- description: 'remove IPython reference'
|
|
@@ -1518,6 +1533,11 @@
|
|
|
1518
1533
|
'import ipywidgets.widgets as widgets': 'raise ImportError'
|
|
1519
1534
|
when: 'not use_ipython'
|
|
1520
1535
|
|
|
1536
|
+
- module-name: 'huggingface_hub.file_download' # checksum: da417692
|
|
1537
|
+
anti-bloat:
|
|
1538
|
+
- description: 'workaround hard module import attribute bug'
|
|
1539
|
+
append_plain: 'from .utils.tqdm import tqdm'
|
|
1540
|
+
|
|
1521
1541
|
- module-name: 'imageio.core.imopen' # checksum: 7af58240
|
|
1522
1542
|
anti-bloat:
|
|
1523
1543
|
- replacements_plain:
|
|
@@ -1623,9 +1643,9 @@
|
|
|
1623
1643
|
replacements_plain:
|
|
1624
1644
|
'warnings.warn': ''
|
|
1625
1645
|
|
|
1626
|
-
- module-name: 'jpype' # checksum:
|
|
1646
|
+
- module-name: 'jpype' # checksum: f75160d3
|
|
1627
1647
|
data-files:
|
|
1628
|
-
dest_path: '
|
|
1648
|
+
dest_path: 'jpype'
|
|
1629
1649
|
patterns:
|
|
1630
1650
|
- '../org.jpype.jar'
|
|
1631
1651
|
when: 'is_conda_package("jpype")'
|
|
@@ -3288,6 +3308,13 @@
|
|
|
3288
3308
|
'from ._common import SUNOS': "'SUNOS = %r' % psutil.SUNOS"
|
|
3289
3309
|
'from ._common import WINDOWS': "'WINDOWS = %r' % psutil.WINDOWS"
|
|
3290
3310
|
|
|
3311
|
+
- module-name: 'pyarrow' # checksum: 9da51f71
|
|
3312
|
+
anti-bloat:
|
|
3313
|
+
- description: 'remove setuptools usage'
|
|
3314
|
+
no-auto-follow:
|
|
3315
|
+
'setuptools_scm': 'ignore'
|
|
3316
|
+
when: 'not use_setuptools'
|
|
3317
|
+
|
|
3291
3318
|
- module-name: 'pyarrow.lib' # checksum: 302be0c2
|
|
3292
3319
|
implicit-imports:
|
|
3293
3320
|
- depends:
|
|
@@ -6260,6 +6287,24 @@
|
|
|
6260
6287
|
'get_pytest_test_cases': 'un-callable'
|
|
6261
6288
|
when: 'not use_pytest'
|
|
6262
6289
|
|
|
6290
|
+
- module-name: 'torch.utils._config_module' # checksum: 95196bd9
|
|
6291
|
+
constants:
|
|
6292
|
+
declarations:
|
|
6293
|
+
'torch_config_module_candidates': '[m for m in iterate_modules("torch") if m.split(".")[-1] in ("config", "_config")]'
|
|
6294
|
+
variables:
|
|
6295
|
+
setup_code: 'import importlib'
|
|
6296
|
+
declarations:
|
|
6297
|
+
'torch_config_modules': 'dict((m,importlib.import_module(m)._compile_ignored_keys) for m in torch_config_module_candidates if hasattr(importlib.import_module(m), "_compile_ignored_keys"))'
|
|
6298
|
+
|
|
6299
|
+
anti-bloat:
|
|
6300
|
+
- description: 'workaround for torch config modules'
|
|
6301
|
+
append_result: |
|
|
6302
|
+
"""_static_compile_ignored_keys = %s
|
|
6303
|
+
|
|
6304
|
+
def get_assignments_with_compile_ignored_comments(module):
|
|
6305
|
+
return _static_compile_ignored_keys[module.__name__]
|
|
6306
|
+
""" % repr(get_variable("torch_config_modules"))
|
|
6307
|
+
|
|
6263
6308
|
- module-name: 'torch.utils.data._typing' # checksum: f6ea0eb5
|
|
6264
6309
|
anti-bloat:
|
|
6265
6310
|
- description: 'compatibility workaround'
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
""" This is for use in testing, but also for user tools too."""
|
|
19
5
|
|
|
20
6
|
|
|
@@ -64,3 +50,19 @@ def getCompilationOutputBinary(compilation_report, prefixes):
|
|
|
64
50
|
return _getResolvedCompilationPath(
|
|
65
51
|
path=compilation_report.find("output").attrib["run_filename"], prefixes=prefixes
|
|
66
52
|
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
56
|
+
# integrates with CPython, but also works on its own.
|
|
57
|
+
#
|
|
58
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
59
|
+
# you may not use this file except in compliance with the License.
|
|
60
|
+
# You may obtain a copy of the License at
|
|
61
|
+
#
|
|
62
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
63
|
+
#
|
|
64
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
65
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
66
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
67
|
+
# See the License for the specific language governing permissions and
|
|
68
|
+
# limitations under the License.
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
{# Copyright
|
|
2
|
-
|
|
3
|
-
{# Part of "Nuitka", an optimizing Python compiler that is compatible and #}
|
|
4
|
-
{# integrates with CPython, but also works on its own. #}
|
|
5
|
-
{# #}
|
|
6
|
-
{# Licensed under the Apache License, Version 2.0 (the "License"); #}
|
|
7
|
-
{# you may not use this file except in compliance with the License. #}
|
|
8
|
-
{# You may obtain a copy of the License at #}
|
|
9
|
-
{# #}
|
|
10
|
-
{# http://www.apache.org/licenses/LICENSE-2.0 #}
|
|
11
|
-
{# #}
|
|
12
|
-
{# Unless required by applicable law or agreed to in writing, software #}
|
|
13
|
-
{# distributed under the License is distributed on an "AS IS" BASIS, #}
|
|
14
|
-
{# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #}
|
|
15
|
-
{# See the License for the specific language governing permissions and #}
|
|
16
|
-
{# limitations under the License. #}
|
|
17
|
-
{# #}
|
|
1
|
+
{# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file #}
|
|
2
|
+
|
|
18
3
|
License Report
|
|
19
4
|
--------------
|
|
20
5
|
|
|
@@ -39,3 +24,18 @@ The contained {{"packages are" if len(distribution_modules[distribution]) > 1 el
|
|
|
39
24
|
{% endif %}
|
|
40
25
|
|
|
41
26
|
{% endfor %}
|
|
27
|
+
|
|
28
|
+
{# Part of "Nuitka", an optimizing Python compiler that is compatible and #}
|
|
29
|
+
{# integrates with CPython, but also works on its own. #}
|
|
30
|
+
{# #}
|
|
31
|
+
{# Licensed under the Apache License, Version 2.0 (the "License"); #}
|
|
32
|
+
{# you may not use this file except in compliance with the License. #}
|
|
33
|
+
{# You may obtain a copy of the License at #}
|
|
34
|
+
{# #}
|
|
35
|
+
{# http://www.apache.org/licenses/LICENSE-2.0 #}
|
|
36
|
+
{# #}
|
|
37
|
+
{# Unless required by applicable law or agreed to in writing, software #}
|
|
38
|
+
{# distributed under the License is distributed on an "AS IS" BASIS, #}
|
|
39
|
+
{# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #}
|
|
40
|
+
{# See the License for the specific language governing permissions and #}
|
|
41
|
+
{# limitations under the License. #}
|
nuitka/reports/Reports.py
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
""" Collection of information for reports and their writing.
|
|
19
5
|
|
|
20
6
|
These reports are in XML form, and with Jinja2 templates in any form you like.
|
|
@@ -29,6 +15,7 @@ import traceback
|
|
|
29
15
|
from nuitka import TreeXML
|
|
30
16
|
from nuitka.__past__ import unicode
|
|
31
17
|
from nuitka.build.DataComposerInterface import getDataComposerReportValues
|
|
18
|
+
from nuitka.build.SconsUtils import readSconsErrorReport
|
|
32
19
|
from nuitka.containers.OrderedSets import OrderedSet
|
|
33
20
|
from nuitka.freezer.IncludedDataFiles import getIncludedDataFiles
|
|
34
21
|
from nuitka.freezer.IncludedEntryPoints import getStandaloneEntryPoints
|
|
@@ -47,7 +34,10 @@ from nuitka.Options import (
|
|
|
47
34
|
isOnefileMode,
|
|
48
35
|
shallCreateDiffableCompilationReport,
|
|
49
36
|
)
|
|
50
|
-
from nuitka.OutputDirectories import
|
|
37
|
+
from nuitka.OutputDirectories import (
|
|
38
|
+
getResultRunFilename,
|
|
39
|
+
getSourceDirectoryPath,
|
|
40
|
+
)
|
|
51
41
|
from nuitka.plugins.Plugins import getActivePlugins
|
|
52
42
|
from nuitka.PythonFlavors import getPythonFlavorName
|
|
53
43
|
from nuitka.PythonVersions import getSystemPrefixPath, python_version_full_str
|
|
@@ -203,6 +193,8 @@ def _getReportInputData(aborted):
|
|
|
203
193
|
|
|
204
194
|
output_run_filename = os.path.abspath(getResultRunFilename(onefile=isOnefileMode()))
|
|
205
195
|
|
|
196
|
+
scons_error_report_data = readSconsErrorReport(source_dir=getSourceDirectoryPath())
|
|
197
|
+
|
|
206
198
|
return dict(
|
|
207
199
|
(var_name, var_value)
|
|
208
200
|
for var_name, var_value in locals().items()
|
|
@@ -296,6 +288,11 @@ def _addModulesToReport(root, report_input_data, diffable):
|
|
|
296
288
|
condition_tags_used
|
|
297
289
|
)
|
|
298
290
|
influence_xml_node.attrib["value"] = repr(parameter_value)
|
|
291
|
+
elif influence == "detection":
|
|
292
|
+
detection_name, detection_value = detail
|
|
293
|
+
|
|
294
|
+
influence_xml_node.attrib["detection"] = detection_name
|
|
295
|
+
influence_xml_node.attrib["value"] = repr(detection_value)
|
|
299
296
|
else:
|
|
300
297
|
assert False, influence
|
|
301
298
|
|
|
@@ -445,6 +442,45 @@ def writeCompilationReport(report_filename, report_input_data, diffable):
|
|
|
445
442
|
|
|
446
443
|
exception_xml_node.text = "\n" + traceback.format_exc()
|
|
447
444
|
|
|
445
|
+
if report_input_data["scons_error_report_data"]:
|
|
446
|
+
scons_error_reports_node = TreeXML.appendTreeElement(
|
|
447
|
+
root, "scons_error_reports"
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
for cmd, (stdout, stderr) in report_input_data[
|
|
451
|
+
"scons_error_report_data"
|
|
452
|
+
].items():
|
|
453
|
+
scons_error_report_node = TreeXML.appendTreeElement(
|
|
454
|
+
scons_error_reports_node, "scons_error_report"
|
|
455
|
+
)
|
|
456
|
+
|
|
457
|
+
TreeXML.appendTreeElement(
|
|
458
|
+
scons_error_report_node,
|
|
459
|
+
"command",
|
|
460
|
+
).text = cmd
|
|
461
|
+
|
|
462
|
+
if stdout:
|
|
463
|
+
if not stdout.startswith("\n"):
|
|
464
|
+
stdout = "\n" + stdout
|
|
465
|
+
|
|
466
|
+
stdout = stdout.rstrip("\n") + "\n"
|
|
467
|
+
|
|
468
|
+
TreeXML.appendTreeElement(
|
|
469
|
+
scons_error_report_node,
|
|
470
|
+
"stdout",
|
|
471
|
+
).text = stdout
|
|
472
|
+
|
|
473
|
+
if stderr:
|
|
474
|
+
if not stderr.startswith("\n"):
|
|
475
|
+
stderr = "\n" + stderr
|
|
476
|
+
|
|
477
|
+
stderr = stderr.rstrip("\n") + "\n"
|
|
478
|
+
|
|
479
|
+
TreeXML.appendTreeElement(
|
|
480
|
+
scons_error_report_node,
|
|
481
|
+
"stderr",
|
|
482
|
+
).text = stderr
|
|
483
|
+
|
|
448
484
|
_addModulesToReport(
|
|
449
485
|
root=root, report_input_data=report_input_data, diffable=diffable
|
|
450
486
|
)
|
|
@@ -620,9 +656,10 @@ def writeCompilationReport(report_filename, report_input_data, diffable):
|
|
|
620
656
|
if _crash_report_filename == report_filename:
|
|
621
657
|
_crash_report_filename = None
|
|
622
658
|
else:
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
659
|
+
if _crash_report_filename != report_filename:
|
|
660
|
+
reports_logger.info(
|
|
661
|
+
"Compilation report written to file '%s'." % report_filename
|
|
662
|
+
)
|
|
626
663
|
|
|
627
664
|
|
|
628
665
|
def writeCompilationReportFromTemplate(
|
|
@@ -745,3 +782,19 @@ def writeCompilationReports(aborted):
|
|
|
745
782
|
report_filename=report_filename,
|
|
746
783
|
report_input_data=report_input_data,
|
|
747
784
|
)
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
788
|
+
# integrates with CPython, but also works on its own.
|
|
789
|
+
#
|
|
790
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
791
|
+
# you may not use this file except in compliance with the License.
|
|
792
|
+
# You may obtain a copy of the License at
|
|
793
|
+
#
|
|
794
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
795
|
+
#
|
|
796
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
797
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
798
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
799
|
+
# See the License for the specific language governing permissions and
|
|
800
|
+
# limitations under the License.
|
nuitka/reports/__init__.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
""" Dummy file to make this directory a package. """
|
|
5
|
+
|
|
3
6
|
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
4
7
|
# integrates with CPython, but also works on its own.
|
|
5
8
|
#
|
|
@@ -14,5 +17,3 @@
|
|
|
14
17
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
18
|
# See the License for the specific language governing permissions and
|
|
16
19
|
# limitations under the License.
|
|
17
|
-
#
|
|
18
|
-
""" Dummy file to make this directory a package. """
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
"""Bytes operation specs.
|
|
19
5
|
|
|
20
6
|
Python3 only, Python2 has no bytes, but only str
|
|
@@ -177,3 +163,18 @@ bytes_translate_spec = BytesMethodSpecNoKeywords(
|
|
|
177
163
|
bytes_splitlines_spec = BytesMethodSpec(
|
|
178
164
|
"splitlines", arg_names=("keepends"), default_count=1, type_shape=tshape_list
|
|
179
165
|
)
|
|
166
|
+
|
|
167
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
168
|
+
# integrates with CPython, but also works on its own.
|
|
169
|
+
#
|
|
170
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
171
|
+
# you may not use this file except in compliance with the License.
|
|
172
|
+
# You may obtain a copy of the License at
|
|
173
|
+
#
|
|
174
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
175
|
+
#
|
|
176
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
177
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
178
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
179
|
+
# See the License for the specific language governing permissions and
|
|
180
|
+
# limitations under the License.
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
"""Dictionary operation specs. """
|
|
19
5
|
|
|
20
6
|
from nuitka.nodes.shapes.BuiltinTypeShapes import (
|
|
@@ -79,3 +65,18 @@ dict_update_spec = BuiltinParameterSpecSinglePosArgStarDictArgs(
|
|
|
79
65
|
dict_fromkeys_spec = DictMethodSpec(
|
|
80
66
|
"fromkeys", arg_names=("iterable", "value"), default_count=1, type_shape=tshape_dict
|
|
81
67
|
)
|
|
68
|
+
|
|
69
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
70
|
+
# integrates with CPython, but also works on its own.
|
|
71
|
+
#
|
|
72
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
73
|
+
# you may not use this file except in compliance with the License.
|
|
74
|
+
# You may obtain a copy of the License at
|
|
75
|
+
#
|
|
76
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
77
|
+
#
|
|
78
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
79
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
80
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
81
|
+
# See the License for the specific language governing permissions and
|
|
82
|
+
# limitations under the License.
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
"""List operation specs. """
|
|
19
5
|
|
|
20
6
|
from nuitka.nodes.shapes.BuiltinTypeShapes import (
|
|
@@ -77,3 +63,18 @@ list_reverse_spec = ListMethodSpecNoKeywords(
|
|
|
77
63
|
# list_sort_spec = ListMethodSpec(
|
|
78
64
|
# "sort", arg_names=("key", "reverse"), default_count=2, type_shape=tshape_none
|
|
79
65
|
# )
|
|
66
|
+
|
|
67
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
68
|
+
# integrates with CPython, but also works on its own.
|
|
69
|
+
#
|
|
70
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
71
|
+
# you may not use this file except in compliance with the License.
|
|
72
|
+
# You may obtain a copy of the License at
|
|
73
|
+
#
|
|
74
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
75
|
+
#
|
|
76
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
77
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
78
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
79
|
+
# See the License for the specific language governing permissions and
|
|
80
|
+
# limitations under the License.
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
""" Optimizations of built-ins to built-in calls.
|
|
19
5
|
|
|
20
6
|
"""
|
|
@@ -815,3 +801,19 @@ class BuiltinMethodParameterSpecNoKeywordsBase(BuiltinParameterSpecNoKeywords):
|
|
|
815
801
|
|
|
816
802
|
def getKeywordRefusalText(self):
|
|
817
803
|
return "%s() takes no keyword arguments" % self.name
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
807
|
+
# integrates with CPython, but also works on its own.
|
|
808
|
+
#
|
|
809
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
810
|
+
# you may not use this file except in compliance with the License.
|
|
811
|
+
# You may obtain a copy of the License at
|
|
812
|
+
#
|
|
813
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
814
|
+
#
|
|
815
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
816
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
817
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
818
|
+
# See the License for the specific language governing permissions and
|
|
819
|
+
# limitations under the License.
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
"""Str operation specs. """
|
|
19
5
|
|
|
20
6
|
from nuitka.nodes.shapes.BuiltinTypeShapes import (
|
|
@@ -178,3 +164,18 @@ str_translate_spec = StrMethodSpecNoKeywords(
|
|
|
178
164
|
str_splitlines_spec = (StrMethodSpecNoKeywords if str is bytes else StrMethodSpec)(
|
|
179
165
|
"splitlines", arg_names=("keepends"), default_count=1, type_shape=tshape_list
|
|
180
166
|
)
|
|
167
|
+
|
|
168
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
169
|
+
# integrates with CPython, but also works on its own.
|
|
170
|
+
#
|
|
171
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
172
|
+
# you may not use this file except in compliance with the License.
|
|
173
|
+
# You may obtain a copy of the License at
|
|
174
|
+
#
|
|
175
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
176
|
+
#
|
|
177
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
178
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
179
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
180
|
+
# See the License for the specific language governing permissions and
|
|
181
|
+
# limitations under the License.
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
# Copyright
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# integrates with CPython, but also works on its own.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
1
|
+
# Copyright 2024, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
2
|
+
|
|
3
|
+
|
|
18
4
|
"""Type operation specs. """
|
|
19
5
|
|
|
20
6
|
|
|
@@ -32,3 +18,18 @@ class TypeMethodSpec(BuiltinMethodParameterSpecBase):
|
|
|
32
18
|
type___prepare___spec = TypeMethodSpec(
|
|
33
19
|
name="__prepare__", list_star_arg="args", dict_star_arg="kwargs"
|
|
34
20
|
)
|
|
21
|
+
|
|
22
|
+
# Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
23
|
+
# integrates with CPython, but also works on its own.
|
|
24
|
+
#
|
|
25
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
26
|
+
# you may not use this file except in compliance with the License.
|
|
27
|
+
# You may obtain a copy of the License at
|
|
28
|
+
#
|
|
29
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
30
|
+
#
|
|
31
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
32
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
33
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
34
|
+
# See the License for the specific language governing permissions and
|
|
35
|
+
# limitations under the License.
|