Nuitka-winsvc 2.3.3__cp311-cp311-win_amd64.whl → 2.3.11__cp311-cp311-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of Nuitka-winsvc might be problematic. Click here for more details.
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/METADATA +1 -1
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/RECORD +63 -42
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/WHEEL +1 -1
- nuitka/Options.py +1 -1
- nuitka/PythonFlavors.py +15 -0
- nuitka/Tracing.py +26 -23
- nuitka/Version.py +1 -1
- nuitka/build/SconsUtils.py +1 -1
- nuitka/build/include/nuitka/compiled_function.h +2 -0
- nuitka/build/inline_copy/python_hacl/LICENSE.txt +201 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_MD5.c +1430 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_MD5.h +66 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA1.c +463 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA1.h +66 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA2.c +1273 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA2.h +204 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA3.c +734 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA3.h +131 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Streaming_Types.h +83 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/FStar_UInt128_Verified.h +346 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/FStar_UInt_8_16_32_64.h +107 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/fstar_uint128_struct_endianness.h +68 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/internal/target.h +293 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/lowstar_endianness.h +231 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/types.h +14 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_MD5.h +56 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_SHA1.h +56 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_SHA2.h +164 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_SHA3.h +65 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/python_hacl_namespaces.h +89 -0
- nuitka/build/static_src/CompiledCodeHelpers.c +2 -0
- nuitka/build/static_src/CompiledFrameType.c +2 -5
- nuitka/build/static_src/CompiledFunctionType.c +43 -4
- nuitka/build/static_src/HelpersAllocator.c +0 -2
- nuitka/build/static_src/HelpersBuiltin.c +2 -2
- nuitka/build/static_src/HelpersHeapStorage.c +4 -0
- nuitka/build/static_src/MainProgram.c +17 -0
- nuitka/build/static_src/MetaPathBasedLoader.c +77 -48
- nuitka/build/static_src/MetaPathBasedLoaderResourceReaderFiles.c +29 -0
- nuitka/code_generation/templates/CodeTemplatesModules.py +1 -10
- nuitka/freezer/DllDependenciesCommon.py +28 -3
- nuitka/freezer/DllDependenciesMacOS.py +23 -2
- nuitka/freezer/DllDependenciesWin32.py +6 -1
- nuitka/importing/Importing.py +5 -1
- nuitka/nodes/FunctionNodes.py +4 -1
- nuitka/nodes/ModuleNodes.py +3 -4
- nuitka/nodes/NodeBases.py +10 -9
- nuitka/nodes/shapes/BuiltinTypeShapes.py +21 -1
- nuitka/plugins/PluginBase.py +11 -3
- nuitka/plugins/standard/KivyPlugin.py +10 -0
- nuitka/plugins/standard/standard.nuitka-package.config.yml +240 -25
- nuitka/plugins/standard/stdlib3.nuitka-package.config.yml +38 -2
- nuitka/tools/testing/Common.py +22 -2
- nuitka/tree/InternalModule.py +1 -1
- nuitka/tree/ReformulationFunctionStatements.py +1 -0
- nuitka/utils/Execution.py +8 -7
- nuitka/utils/FileOperations.py +38 -1
- nuitka/utils/SharedLibraries.py +38 -34
- {Nuitka_winsvc-2.3.3.data → Nuitka_winsvc-2.3.11.data}/scripts/nuitka-run.bat +0 -0
- {Nuitka_winsvc-2.3.3.data → Nuitka_winsvc-2.3.11.data}/scripts/nuitka.bat +0 -0
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/LICENSE.txt +0 -0
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/entry_points.txt +0 -0
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/top_level.txt +0 -0
|
@@ -165,11 +165,12 @@
|
|
|
165
165
|
dirs:
|
|
166
166
|
- 'resources'
|
|
167
167
|
|
|
168
|
-
- module-name: 'aspose' # checksum:
|
|
168
|
+
- module-name: 'aspose' # checksum: 9babf530
|
|
169
169
|
data-files:
|
|
170
170
|
patterns:
|
|
171
171
|
- '"**/*"+extension_std_suffix'
|
|
172
172
|
- '**/*.dll'
|
|
173
|
+
when: 'not nuitka_python'
|
|
173
174
|
anti-bloat:
|
|
174
175
|
- no-follow:
|
|
175
176
|
'aspose.*': 'workaround for aspose needing to load its submodules'
|
|
@@ -726,6 +727,15 @@
|
|
|
726
727
|
dirs:
|
|
727
728
|
- 'resources'
|
|
728
729
|
|
|
730
|
+
- module-name: 'cpuinfo.cpuinfo' # checksum: fc219e6
|
|
731
|
+
anti-bloat:
|
|
732
|
+
- description: 'workaround for forking itself'
|
|
733
|
+
replacements_plain:
|
|
734
|
+
"getattr(sys, 'frozen', False)": 'True'
|
|
735
|
+
'getattr(sys, "frozen", False)': 'True'
|
|
736
|
+
'CAN_CALL_CPUID_IN_SUBPROCESS = True': 'CAN_CALL_CPUID_IN_SUBPROCESS = False'
|
|
737
|
+
when: 'win32'
|
|
738
|
+
|
|
729
739
|
- module-name: 'Crypto.Util._raw_api' # checksum: 6e46e262
|
|
730
740
|
data-files:
|
|
731
741
|
empty_dirs:
|
|
@@ -779,7 +789,7 @@
|
|
|
779
789
|
# Not necessary on Windows
|
|
780
790
|
when: 'not win32'
|
|
781
791
|
|
|
782
|
-
- module-name: 'cv2' # checksum:
|
|
792
|
+
- module-name: 'cv2' # checksum: 4170eee
|
|
783
793
|
data-files:
|
|
784
794
|
dirs:
|
|
785
795
|
- 'qt/fonts'
|
|
@@ -794,21 +804,26 @@
|
|
|
794
804
|
- 'opencv_videoio'
|
|
795
805
|
when: 'win32'
|
|
796
806
|
anti-bloat:
|
|
797
|
-
- description: 'workaround for
|
|
807
|
+
- description: 'workaround for config module as code'
|
|
798
808
|
context:
|
|
799
809
|
- 'import textwrap'
|
|
800
810
|
- 'import pkgutil'
|
|
801
|
-
- 'from nuitka.utils.Importing import getSharedLibrarySuffix'
|
|
802
811
|
replacements_plain:
|
|
803
812
|
? "load_first_config([\n"
|
|
804
813
|
: 'if False: (['
|
|
805
814
|
replacements:
|
|
806
815
|
"load_first_config(['config.py'], True)": "textwrap.indent(pkgutil.get_data('cv2', 'config.py').decode('utf8'), ' ') + textwrap.indent(pkgutil.get_data('cv2', 'config-3.py').decode('utf8'), ' ')"
|
|
816
|
+
- description: 'workaround for colliding native module import'
|
|
817
|
+
replacements:
|
|
807
818
|
# Before OpenCV 4.6
|
|
808
|
-
'native_module = importlib.import_module("cv2.cv2")': '"import imp; native_module = imp.load_dynamic(\"cv2\", os.path.join(os.path.dirname(__file__), \"cv2%s\"))" %
|
|
809
|
-
|
|
810
|
-
'native_module = importlib.import_module("cv2")': '"import imp; native_module = imp.load_dynamic(\"cv2\", os.path.join(os.path.dirname(__file__), \"cv2%s\"))" %
|
|
811
|
-
when: 'standalone'
|
|
819
|
+
'native_module = importlib.import_module("cv2.cv2")': '"import imp; native_module = imp.load_dynamic(\"cv2\", os.path.join(os.path.dirname(__file__), \"cv2%s\"))" % extension_suffix'
|
|
820
|
+
# After OpenCV 4.6
|
|
821
|
+
'native_module = importlib.import_module("cv2")': '"import imp; native_module = imp.load_dynamic(\"cv2\", os.path.join(os.path.dirname(__file__), \"cv2%s\"))" % extension_suffix'
|
|
822
|
+
when: 'standalone and before_python312 and not nuitka_python'
|
|
823
|
+
- description: 'workaround for colliding native module import'
|
|
824
|
+
replacements:
|
|
825
|
+
'native_module = importlib.import_module("cv2")': '"from importlib.machinery import ExtensionFileLoader; from importlib.util import spec_from_file_location; from importlib._bootstrap import _load; __path = os.path.join(os.path.dirname(__file__), \"cv2%s\"); native_module = _load(spec_from_file_location(\"cv2\", __path, loader=ExtensionFileLoader(\"cv2\", __path)))" % extension_suffix'
|
|
826
|
+
when: 'standalone and python312_or_higher and not nuitka_python'
|
|
812
827
|
implicit-imports:
|
|
813
828
|
- depends:
|
|
814
829
|
- 'cv2.cv2'
|
|
@@ -1099,6 +1114,16 @@
|
|
|
1099
1114
|
replacements_plain:
|
|
1100
1115
|
'load_module(str("_traceback_no_io"), traceback)': '__import__("traceback")'
|
|
1101
1116
|
|
|
1117
|
+
- module-name: 'en_core_web_sm' # checksum: 8ee8e024
|
|
1118
|
+
data-files:
|
|
1119
|
+
dirs:
|
|
1120
|
+
- '.'
|
|
1121
|
+
patterns:
|
|
1122
|
+
- '**/*.bin'
|
|
1123
|
+
|
|
1124
|
+
include-metadata:
|
|
1125
|
+
- 'en_core_web_sm'
|
|
1126
|
+
|
|
1102
1127
|
- module-name: 'enchant' # checksum: 810a705a
|
|
1103
1128
|
data-files:
|
|
1104
1129
|
dirs:
|
|
@@ -1698,6 +1723,20 @@
|
|
|
1698
1723
|
- 'imageio.plugins.simpleitk'
|
|
1699
1724
|
- 'imageio.plugins.pillow'
|
|
1700
1725
|
|
|
1726
|
+
- module-name: 'imageio_ffmpeg' # checksum: cbcd4133
|
|
1727
|
+
dlls:
|
|
1728
|
+
- from_filenames:
|
|
1729
|
+
relative_path: 'binaries'
|
|
1730
|
+
prefixes:
|
|
1731
|
+
- 'ffmpeg'
|
|
1732
|
+
executable: 'yes'
|
|
1733
|
+
|
|
1734
|
+
- module-name: 'imageio_ffmpeg._utils' # checksum: 77b155b9
|
|
1735
|
+
anti-bloat:
|
|
1736
|
+
- description: 'Resolve correct path for ffmpeg binary'
|
|
1737
|
+
replacements_plain:
|
|
1738
|
+
'return str(path.parent)': 'return os.path.join(os.path.dirname(__file__), "binaries")'
|
|
1739
|
+
|
|
1701
1740
|
- module-name: 'imagej' # checksum: 763ace32
|
|
1702
1741
|
anti-bloat:
|
|
1703
1742
|
- description: 'compile time resolve version metadata'
|
|
@@ -1858,11 +1897,16 @@
|
|
|
1858
1897
|
- depends:
|
|
1859
1898
|
- 'win32timezone'
|
|
1860
1899
|
|
|
1861
|
-
- module-name: 'kivy' # checksum:
|
|
1900
|
+
- module-name: 'kivy' # checksum: aa55c3a4
|
|
1862
1901
|
data-files:
|
|
1863
1902
|
dirs:
|
|
1864
1903
|
- 'data'
|
|
1865
1904
|
|
|
1905
|
+
options:
|
|
1906
|
+
checks:
|
|
1907
|
+
- description: 'Kivy is a GUI framework'
|
|
1908
|
+
macos_bundle: 'recommend'
|
|
1909
|
+
|
|
1866
1910
|
- module-name: 'kivy._clock' # checksum: fbb1ca92
|
|
1867
1911
|
implicit-imports:
|
|
1868
1912
|
- depends:
|
|
@@ -2020,6 +2064,11 @@
|
|
|
2020
2064
|
- depends:
|
|
2021
2065
|
- 'lxml.etree'
|
|
2022
2066
|
|
|
2067
|
+
- module-name: 'lxml.sax' # checksum: 291d11ed
|
|
2068
|
+
implicit-imports:
|
|
2069
|
+
- depends:
|
|
2070
|
+
- 'xml.sax'
|
|
2071
|
+
|
|
2023
2072
|
- module-name: 'magic' # checksum: 803cd877
|
|
2024
2073
|
data-files:
|
|
2025
2074
|
dirs:
|
|
@@ -2162,6 +2211,14 @@
|
|
|
2162
2211
|
- 'matplotlib.backends.backend_wx'
|
|
2163
2212
|
- 'wx'
|
|
2164
2213
|
|
|
2214
|
+
- module-name: 'matplotlib.backends.qt_compat' # checksum: b3a099d2
|
|
2215
|
+
anti-bloat:
|
|
2216
|
+
- description: 'avoid shiboken dependencies in case of no-qt plugin'
|
|
2217
|
+
no-auto-follow:
|
|
2218
|
+
'shiboken2': 'ignore'
|
|
2219
|
+
'shiboken6': 'ignore'
|
|
2220
|
+
when: 'use_noqt'
|
|
2221
|
+
|
|
2165
2222
|
- module-name: 'matplotlib.figure' # checksum: e03fe475
|
|
2166
2223
|
anti-bloat:
|
|
2167
2224
|
- description: 'remove IPython reference'
|
|
@@ -2389,7 +2446,7 @@
|
|
|
2389
2446
|
replacements_plain:
|
|
2390
2447
|
'import numexpr.tests': 'raise ImportError'
|
|
2391
2448
|
|
|
2392
|
-
- module-name: 'numpy' # checksum:
|
|
2449
|
+
- module-name: 'numpy' # checksum: d50b5b5e
|
|
2393
2450
|
dlls:
|
|
2394
2451
|
- from_filenames:
|
|
2395
2452
|
relative_path: '.libs'
|
|
@@ -2410,8 +2467,14 @@
|
|
|
2410
2467
|
when: 'is_conda_package("numpy")'
|
|
2411
2468
|
|
|
2412
2469
|
anti-bloat:
|
|
2413
|
-
-
|
|
2470
|
+
- description: 'avoid URLs for AV noise'
|
|
2471
|
+
replacements_plain:
|
|
2414
2472
|
'https://': ''
|
|
2473
|
+
- description: 'remove numpy.distutils references'
|
|
2474
|
+
no-auto-follow:
|
|
2475
|
+
'numpy.distutils': 'ignore'
|
|
2476
|
+
when: 'not use_setuptools'
|
|
2477
|
+
|
|
2415
2478
|
implicit-imports:
|
|
2416
2479
|
- depends:
|
|
2417
2480
|
- 'numpy._mklinit'
|
|
@@ -2425,6 +2488,13 @@
|
|
|
2425
2488
|
- 'numpy.ma'
|
|
2426
2489
|
- 'numpy.matrixlib'
|
|
2427
2490
|
|
|
2491
|
+
- module-name: 'numpy._core.overrides' # checksum: cda0efc0
|
|
2492
|
+
anti-bloat:
|
|
2493
|
+
- description: 'workaround numpy issues with compiled code'
|
|
2494
|
+
replacements_plain:
|
|
2495
|
+
'add_docstring(implementation, dispatcher.__doc__)': "add_docstring(implementation, dispatcher.__doc__ or '')"
|
|
2496
|
+
'public_api.__code__ = ': ''
|
|
2497
|
+
|
|
2428
2498
|
- module-name: 'numpy._pytesttester' # checksum: 5e3b539b
|
|
2429
2499
|
anti-bloat:
|
|
2430
2500
|
- description: 'remove numpy testing framework'
|
|
@@ -2433,7 +2503,7 @@
|
|
|
2433
2503
|
def __init__(self, name):
|
|
2434
2504
|
pass
|
|
2435
2505
|
|
|
2436
|
-
- module-name: 'numpy.core' # checksum:
|
|
2506
|
+
- module-name: 'numpy.core' # checksum: 4ed88aa0
|
|
2437
2507
|
anti-bloat:
|
|
2438
2508
|
- description: 'remove misleading numpy message'
|
|
2439
2509
|
replacements_plain:
|
|
@@ -2445,6 +2515,7 @@
|
|
|
2445
2515
|
- depends:
|
|
2446
2516
|
- 'numpy.core._dtype_ctypes'
|
|
2447
2517
|
- 'numpy.core._multiarray_tests'
|
|
2518
|
+
- 'numpy._core._multiarray_tests'
|
|
2448
2519
|
|
|
2449
2520
|
- module-name: 'numpy.core.overrides' # checksum: 48ac7e42
|
|
2450
2521
|
anti-bloat:
|
|
@@ -2453,7 +2524,7 @@
|
|
|
2453
2524
|
'add_docstring(implementation, dispatcher.__doc__)': "'''add_docstring(implementation, dispatcher.__doc__ or '')'''"
|
|
2454
2525
|
'public_api.__code__ = ': ''
|
|
2455
2526
|
|
|
2456
|
-
- module-name: 'numpy.ctypeslib' # checksum:
|
|
2527
|
+
- module-name: 'numpy.ctypeslib' # checksum: a3e2afc6
|
|
2457
2528
|
anti-bloat:
|
|
2458
2529
|
- description: 'remove numpy.distutils references'
|
|
2459
2530
|
context:
|
|
@@ -2462,6 +2533,14 @@
|
|
|
2462
2533
|
'from numpy.distutils.misc_util import get_shared_lib_extension': ''
|
|
2463
2534
|
'get_shared_lib_extension()': 'repr(numpy.distutils.misc_util.get_shared_lib_extension())'
|
|
2464
2535
|
'get_shared_lib_extension(is_python_ext=True)': 'repr(numpy.distutils.misc_util.get_shared_lib_extension(is_python_ext=True))'
|
|
2536
|
+
when: 'not use_setuptools'
|
|
2537
|
+
|
|
2538
|
+
- module-name: 'numpy.lib._utils_impl' # checksum: db52e110
|
|
2539
|
+
anti-bloat:
|
|
2540
|
+
- description: 'Avoid pydoc usage'
|
|
2541
|
+
change_function:
|
|
2542
|
+
'info': 'un-callable'
|
|
2543
|
+
when: 'not use_pydoc'
|
|
2465
2544
|
|
|
2466
2545
|
- module-name: 'numpy.lib.utils' # checksum: 26f115fc
|
|
2467
2546
|
anti-bloat:
|
|
@@ -2878,8 +2957,8 @@
|
|
|
2878
2957
|
- module-name: 'paddleocr' # checksum: 90264499
|
|
2879
2958
|
import-hacks:
|
|
2880
2959
|
- global-sys-path:
|
|
2881
|
-
|
|
2882
|
-
|
|
2960
|
+
# This package forces itself into "sys.path" and expects absolute
|
|
2961
|
+
# imports from all of these to be available.
|
|
2883
2962
|
- ''
|
|
2884
2963
|
- 'ppstructure'
|
|
2885
2964
|
- 'tools/infer'
|
|
@@ -3299,7 +3378,7 @@
|
|
|
3299
3378
|
- depends:
|
|
3300
3379
|
- 'PIL._tkinter_finder'
|
|
3301
3380
|
|
|
3302
|
-
- module-name: 'PIL.Image' # checksum:
|
|
3381
|
+
- module-name: 'PIL.Image' # checksum: 560d430e
|
|
3303
3382
|
anti-bloat:
|
|
3304
3383
|
- description: 'avoid Qt dependency'
|
|
3305
3384
|
no-auto-follow:
|
|
@@ -3309,7 +3388,10 @@
|
|
|
3309
3388
|
no-auto-follow:
|
|
3310
3389
|
'PIL.ImageQt': 'ignore'
|
|
3311
3390
|
when: 'plugin("no-qt")'
|
|
3312
|
-
|
|
3391
|
+
- description: 'avoid numpy dependency'
|
|
3392
|
+
no-auto-follow:
|
|
3393
|
+
'numpy': 'ignore'
|
|
3394
|
+
'packaging': 'ignore'
|
|
3313
3395
|
implicit-imports:
|
|
3314
3396
|
- depends:
|
|
3315
3397
|
- 'PIL.BlpImagePlugin'
|
|
@@ -3456,6 +3538,11 @@
|
|
|
3456
3538
|
change_function:
|
|
3457
3539
|
'embedded_data_path': "'(lambda: app_path())'"
|
|
3458
3540
|
|
|
3541
|
+
- module-name: 'playwright_stealth' # checksum: 3ebe1284
|
|
3542
|
+
data-files:
|
|
3543
|
+
dirs:
|
|
3544
|
+
- '.'
|
|
3545
|
+
|
|
3459
3546
|
- module-name: 'plotly.graph_objects' # checksum: bf6dd64b
|
|
3460
3547
|
anti-bloat:
|
|
3461
3548
|
- description: 'remove IPython reference'
|
|
@@ -3576,10 +3663,19 @@
|
|
|
3576
3663
|
'from extract_textpoint_fast import generate_pivot_list_fast, restore_poly': 'from .extract_textpoint_fast import generate_pivot_list_fast, restore_poly'
|
|
3577
3664
|
import-hacks:
|
|
3578
3665
|
- global-sys-path:
|
|
3579
|
-
|
|
3580
|
-
|
|
3666
|
+
# This package forces itself into "sys.path" and expects absolute
|
|
3667
|
+
# imports to be available.
|
|
3581
3668
|
- ''
|
|
3582
3669
|
|
|
3670
|
+
- module-name: 'preshed.counter' # checksum: 1e9d1989
|
|
3671
|
+
anti-bloat:
|
|
3672
|
+
- description: 'do not follow tests'
|
|
3673
|
+
no-auto-follow:
|
|
3674
|
+
'preshed.tests': 'ignore'
|
|
3675
|
+
implicit-imports:
|
|
3676
|
+
- depends:
|
|
3677
|
+
- 'preshed.cymem'
|
|
3678
|
+
|
|
3583
3679
|
- module-name: 'psutil' # checksum: 24d7eb52
|
|
3584
3680
|
anti-bloat:
|
|
3585
3681
|
- description: 'resolve platform specific imports at compile time'
|
|
@@ -4421,7 +4517,7 @@
|
|
|
4421
4517
|
- depends:
|
|
4422
4518
|
- 'scapy.layers.*'
|
|
4423
4519
|
|
|
4424
|
-
- module-name: 'scipy' # checksum:
|
|
4520
|
+
- module-name: 'scipy' # checksum: 80d3c475
|
|
4425
4521
|
data-files:
|
|
4426
4522
|
patterns:
|
|
4427
4523
|
- 'stats/_sobol_direction_numbers.npz' # for scipy.stats._sobol._initialize_direction_numbers
|
|
@@ -4442,8 +4538,10 @@
|
|
|
4442
4538
|
no-auto-follow:
|
|
4443
4539
|
'cupy': 'ignore'
|
|
4444
4540
|
'torch': 'ignore'
|
|
4541
|
+
bloat-mode-overrides:
|
|
4542
|
+
'pydoc': 'allow'
|
|
4445
4543
|
|
|
4446
|
-
- module-name: 'scipy._distributor_init' # checksum:
|
|
4544
|
+
- module-name: 'scipy._distributor_init' # checksum: 47635231
|
|
4447
4545
|
anti-bloat:
|
|
4448
4546
|
- description: 'workaround for scipy DLL loading'
|
|
4449
4547
|
append_plain: |
|
|
@@ -4453,7 +4551,7 @@
|
|
|
4453
4551
|
libs_dir = os.path.join(os.path.dirname(__file__), '..', 'scipy.libs')
|
|
4454
4552
|
for filename in glob.glob(os.path.join(libs_dir, '*openblas*dll')):
|
|
4455
4553
|
WinDLL(filename)
|
|
4456
|
-
when: 'win32 and version("scipy") >= (1,
|
|
4554
|
+
when: 'win32 and (1,14) > version("scipy") >= (1,9,2)'
|
|
4457
4555
|
|
|
4458
4556
|
- module-name: 'scipy._lib' # checksum: 4063ed73
|
|
4459
4557
|
implicit-imports:
|
|
@@ -4484,6 +4582,11 @@
|
|
|
4484
4582
|
def __init__(self, name):
|
|
4485
4583
|
pass
|
|
4486
4584
|
|
|
4585
|
+
- module-name: 'scipy._lib.array_api_compat.numpy' # checksum: 4d6580fa
|
|
4586
|
+
implicit-imports:
|
|
4587
|
+
- depends:
|
|
4588
|
+
- 'scipy._lib.array_api_compat.numpy.fft'
|
|
4589
|
+
|
|
4487
4590
|
- module-name: 'scipy.integrate._quadrature' # checksum: 97a85907
|
|
4488
4591
|
anti-bloat:
|
|
4489
4592
|
- description: 'remove useless function copying'
|
|
@@ -4576,10 +4679,11 @@
|
|
|
4576
4679
|
- depends:
|
|
4577
4680
|
- 'scipy.special._ufuncs_cxx'
|
|
4578
4681
|
|
|
4579
|
-
- module-name: 'scipy.special._ufuncs' # checksum:
|
|
4682
|
+
- module-name: 'scipy.special._ufuncs' # checksum: 79044be3
|
|
4580
4683
|
implicit-imports:
|
|
4581
4684
|
- depends:
|
|
4582
4685
|
- 'scipy.special._cdflib'
|
|
4686
|
+
- 'scipy.special._special_ufuncs'
|
|
4583
4687
|
|
|
4584
4688
|
- module-name: 'scipy.stats._fit' # checksum: 7547ad25
|
|
4585
4689
|
anti-bloat:
|
|
@@ -4644,6 +4748,11 @@
|
|
|
4644
4748
|
executable: 'yes'
|
|
4645
4749
|
when: 'win32'
|
|
4646
4750
|
|
|
4751
|
+
- module-name: 'selenium_stealth' # checksum: 3ebe1284
|
|
4752
|
+
data-files:
|
|
4753
|
+
dirs:
|
|
4754
|
+
- '.'
|
|
4755
|
+
|
|
4647
4756
|
- module-name: 'sentence_transformers.SentenceTransformer' # checksum: c6062648
|
|
4648
4757
|
implicit-imports:
|
|
4649
4758
|
- depends:
|
|
@@ -5314,6 +5423,49 @@
|
|
|
5314
5423
|
- 'libsndfile'
|
|
5315
5424
|
when: 'macos'
|
|
5316
5425
|
|
|
5426
|
+
- module-name: 'spacy' # checksum: 99c1e2c8
|
|
5427
|
+
data-files:
|
|
5428
|
+
dirs:
|
|
5429
|
+
- '.'
|
|
5430
|
+
anti-bloat:
|
|
5431
|
+
- description: 'do not follow tests'
|
|
5432
|
+
no-auto-follow:
|
|
5433
|
+
'spacy.tests': 'ignore'
|
|
5434
|
+
|
|
5435
|
+
- module-name: 'spacy.pipeline' # checksum: 285ab011
|
|
5436
|
+
implicit-imports:
|
|
5437
|
+
- depends:
|
|
5438
|
+
- 'thinc.extra.*'
|
|
5439
|
+
- 'spacy.pipeline.ner'
|
|
5440
|
+
|
|
5441
|
+
- module-name: 'spacy.pipeline._parser_internals' # checksum: 36eb559e
|
|
5442
|
+
implicit-imports:
|
|
5443
|
+
- depends:
|
|
5444
|
+
- 'spacy.pipeline._parser_internals._beam_utils'
|
|
5445
|
+
- 'spacy.pipeline._parser_internals._state'
|
|
5446
|
+
- 'spacy.pipeline._parser_internals.arc_eager'
|
|
5447
|
+
- 'spacy.pipeline._parser_internals.nonproj'
|
|
5448
|
+
- 'spacy.pipeline._parser_internals.stateclass'
|
|
5449
|
+
- 'spacy.pipeline._parser_internals.transition_system'
|
|
5450
|
+
- 'spacy.pipeline._parser_internals.ner'
|
|
5451
|
+
|
|
5452
|
+
- module-name: 'spacy.pipeline.dep_parser' # checksum: c61d0958
|
|
5453
|
+
implicit-imports:
|
|
5454
|
+
- depends:
|
|
5455
|
+
- 'spacy.pipeline.transition_parser'
|
|
5456
|
+
|
|
5457
|
+
- module-name: 'spacy.util' # checksum: 39e3b324
|
|
5458
|
+
implicit-imports:
|
|
5459
|
+
- depends:
|
|
5460
|
+
- 'spacy.lang.*'
|
|
5461
|
+
|
|
5462
|
+
- module-name: 'spacy.vocab' # checksum: 73f7507a
|
|
5463
|
+
implicit-imports:
|
|
5464
|
+
- depends:
|
|
5465
|
+
- 'spacy.lang.lex_attrs'
|
|
5466
|
+
- 'spacy.parts_of_speech'
|
|
5467
|
+
- 'spacy.lang.norm_exceptions'
|
|
5468
|
+
|
|
5317
5469
|
- module-name: 'sparse' # checksum: 7a56f74f
|
|
5318
5470
|
options:
|
|
5319
5471
|
checks:
|
|
@@ -5771,7 +5923,12 @@
|
|
|
5771
5923
|
'skiptests': 'un-callable'
|
|
5772
5924
|
when: 'not use_pytest'
|
|
5773
5925
|
|
|
5774
|
-
- module-name: 'tables' # checksum:
|
|
5926
|
+
- module-name: 'tables' # checksum: fc7f4f37
|
|
5927
|
+
dlls:
|
|
5928
|
+
- from_filenames:
|
|
5929
|
+
prefixes:
|
|
5930
|
+
- 'libblosc2'
|
|
5931
|
+
|
|
5775
5932
|
anti-bloat:
|
|
5776
5933
|
- description: 'remove tables.tests usage'
|
|
5777
5934
|
replacements_plain:
|
|
@@ -6265,9 +6422,11 @@
|
|
|
6265
6422
|
change_function:
|
|
6266
6423
|
'_copy_fn': "'(lambda fn: fn)'"
|
|
6267
6424
|
|
|
6268
|
-
- module-name: 'tensorflow.python.util.lazy_loader' # checksum:
|
|
6425
|
+
- module-name: 'tensorflow.python.util.lazy_loader' # checksum: f4d18284
|
|
6269
6426
|
anti-bloat:
|
|
6270
6427
|
- description: 'reduce keras usage'
|
|
6428
|
+
replacements_re:
|
|
6429
|
+
'(package_name = "(.*?)")': '\1; import \2'
|
|
6271
6430
|
replacements:
|
|
6272
6431
|
'os.environ.get("TF_USE_LEGACY_KERAS", None)': 'repr(os.environ.get("TF_USE_LEGACY_KERAS", None))'
|
|
6273
6432
|
'keras.__version__': 'repr(version_str("keras"))'
|
|
@@ -6357,11 +6516,41 @@
|
|
|
6357
6516
|
'IPython': 'ignore'
|
|
6358
6517
|
when: 'not use_ipython'
|
|
6359
6518
|
|
|
6519
|
+
- module-name: 'thinc' # checksum: a21af6c5
|
|
6520
|
+
dlls:
|
|
6521
|
+
- from_filenames:
|
|
6522
|
+
relative_path: 'backends'
|
|
6523
|
+
prefixes:
|
|
6524
|
+
- '_custom_kernels'
|
|
6525
|
+
- '_murmur3'
|
|
6526
|
+
suffixes:
|
|
6527
|
+
- 'cu'
|
|
6528
|
+
|
|
6529
|
+
anti-bloat:
|
|
6530
|
+
- description: 'do not follow tests'
|
|
6531
|
+
no-auto-follow:
|
|
6532
|
+
'thinc.tests': 'ignore'
|
|
6533
|
+
|
|
6360
6534
|
- module-name: 'thinc.backends.cblas' # checksum: 53774cbb
|
|
6361
6535
|
implicit-imports:
|
|
6362
6536
|
- depends:
|
|
6363
6537
|
- 'blis'
|
|
6364
6538
|
|
|
6539
|
+
- module-name: 'thinc.backends.numpy_ops' # checksum: a904b0a4
|
|
6540
|
+
implicit-imports:
|
|
6541
|
+
- depends:
|
|
6542
|
+
- 'thinc.backends.linalg'
|
|
6543
|
+
|
|
6544
|
+
- module-name: 'thinc.backends.numpy_ops.NumpyOps' # checksum: 53774cbb
|
|
6545
|
+
implicit-imports:
|
|
6546
|
+
- depends:
|
|
6547
|
+
- 'blis'
|
|
6548
|
+
|
|
6549
|
+
- module-name: 'thinc.layers.concatenate' # checksum: 90d2f7a2
|
|
6550
|
+
implicit-imports:
|
|
6551
|
+
- depends:
|
|
6552
|
+
- 'blis.py'
|
|
6553
|
+
|
|
6365
6554
|
- module-name: 'tifffile.tifffile' # checksum: 9838c964
|
|
6366
6555
|
anti-bloat:
|
|
6367
6556
|
- description: 'remove module ability to run as a binary'
|
|
@@ -7073,6 +7262,11 @@
|
|
|
7073
7262
|
replacements_plain:
|
|
7074
7263
|
'coro.cr_frame.f_locals.setdefault(LOCALS_KEY_KI_PROTECTION_ENABLED, system_task)': ''
|
|
7075
7264
|
|
|
7265
|
+
- module-name: 'tsdownsample._rust' # checksum: d072aa03
|
|
7266
|
+
implicit-imports:
|
|
7267
|
+
- depends:
|
|
7268
|
+
- 'numpy.core.multiarray'
|
|
7269
|
+
|
|
7076
7270
|
- module-name: 'tsfresh.feature_extraction.data' # checksum: 59682295
|
|
7077
7271
|
anti-bloat:
|
|
7078
7272
|
- description: 'remove dask reference via distributed module'
|
|
@@ -7356,6 +7550,17 @@
|
|
|
7356
7550
|
replacements_plain:
|
|
7357
7551
|
"';' + interop_dll_path(platform)": "';' + os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib', platform))"
|
|
7358
7552
|
|
|
7553
|
+
- module-name: 'webview.platforms.winforms' # checksum: 38f993f6
|
|
7554
|
+
anti-bloat:
|
|
7555
|
+
- replacements_plain:
|
|
7556
|
+
'ExtractIconW(handle, sys.executable, 0)': 'ExtractIconW(handle, sys.argv[0], 0)'
|
|
7557
|
+
when: 'standalone and win32'
|
|
7558
|
+
|
|
7559
|
+
- module-name: 'werkzeug.debug.repr' # checksum: f8cccd39
|
|
7560
|
+
anti-bloat:
|
|
7561
|
+
- no-auto-follow:
|
|
7562
|
+
'pydoc': 'ignore'
|
|
7563
|
+
|
|
7359
7564
|
- module-name: 'werkzeug.serving' # checksum: fcfdb30e
|
|
7360
7565
|
anti-bloat:
|
|
7361
7566
|
- description: 'remove ability to run with reloader'
|
|
@@ -7626,6 +7831,16 @@
|
|
|
7626
7831
|
prefixes:
|
|
7627
7832
|
- 'zaber-motion-lib'
|
|
7628
7833
|
|
|
7834
|
+
- module-name: 'zeroconf._listener' # checksum: a6a63ed5
|
|
7835
|
+
implicit-imports:
|
|
7836
|
+
- depends:
|
|
7837
|
+
- 'zeroconf._handlers.answers'
|
|
7838
|
+
|
|
7839
|
+
- module-name: 'zeroconf._services.info' # checksum: abf003b9
|
|
7840
|
+
implicit-imports:
|
|
7841
|
+
- depends:
|
|
7842
|
+
- 'zeroconf._utils.ipaddress'
|
|
7843
|
+
|
|
7629
7844
|
- module-name: 'zmq' # checksum: b0320bcc
|
|
7630
7845
|
dlls:
|
|
7631
7846
|
# Do not look at this one, using dest_path and suffixes is not
|
|
@@ -9,11 +9,32 @@
|
|
|
9
9
|
- depends:
|
|
10
10
|
- 'asyncio'
|
|
11
11
|
|
|
12
|
+
- module-name: '_curses_panel' # checksum: c9b072ec
|
|
13
|
+
implicit-imports:
|
|
14
|
+
- depends:
|
|
15
|
+
- 'curses'
|
|
16
|
+
|
|
17
|
+
- module-name: '_elementtree' # checksum: 109ba176
|
|
18
|
+
implicit-imports:
|
|
19
|
+
- depends:
|
|
20
|
+
- 'xml.etree.ElementPath'
|
|
21
|
+
- 'pyexpat'
|
|
22
|
+
|
|
12
23
|
- module-name: '_osx_support' # checksum: e893ad4b
|
|
13
24
|
anti-bloat:
|
|
14
25
|
- no-auto-follow:
|
|
15
26
|
'distutils': 'ignore'
|
|
16
27
|
|
|
28
|
+
- module-name: '_sitebuiltins' # checksum: f8cccd39
|
|
29
|
+
anti-bloat:
|
|
30
|
+
- no-auto-follow:
|
|
31
|
+
'pydoc': 'ignore'
|
|
32
|
+
|
|
33
|
+
- module-name: '_ssl' # checksum: 84c2a8c5
|
|
34
|
+
implicit-imports:
|
|
35
|
+
- depends:
|
|
36
|
+
- 'socket'
|
|
37
|
+
|
|
17
38
|
- module-name: '_zoneinfo' # checksum: 8de2a2bd
|
|
18
39
|
implicit-imports:
|
|
19
40
|
- depends:
|
|
@@ -238,6 +259,13 @@
|
|
|
238
259
|
"args += ['-c', cmd % r]": "args += ['--multiprocessing-resource-tracker', str(r)]"
|
|
239
260
|
when: 'not module_mode'
|
|
240
261
|
|
|
262
|
+
- module-name: 'opcode' # checksum: bef1771d
|
|
263
|
+
implicit-imports:
|
|
264
|
+
# Overcome default non-inclusion of this module, required now
|
|
265
|
+
- depends:
|
|
266
|
+
- '_opcode'
|
|
267
|
+
when: 'python313_or_higher'
|
|
268
|
+
|
|
241
269
|
- module-name: 'pdb' # checksum: 447bd07e
|
|
242
270
|
anti-bloat:
|
|
243
271
|
- description: 'remove module ability to run as a binary'
|
|
@@ -270,13 +298,15 @@
|
|
|
270
298
|
change_function:
|
|
271
299
|
'_main': "'(lambda: None)'"
|
|
272
300
|
|
|
273
|
-
- module-name: 'pydoc' # checksum:
|
|
301
|
+
- module-name: 'pydoc' # checksum: 408973d4
|
|
274
302
|
anti-bloat:
|
|
275
303
|
- description: 'remove module ability to display GUI with tkinter and topics data'
|
|
276
304
|
replacements:
|
|
277
305
|
'import pydoc_data.topics': "'raise ImportError'"
|
|
278
306
|
change_function:
|
|
279
|
-
'gui':
|
|
307
|
+
'gui': 'un-callable'
|
|
308
|
+
'cli': 'un-callable'
|
|
309
|
+
'browse': 'un-callable'
|
|
280
310
|
|
|
281
311
|
- module-name: 'quopri' # checksum: 6a44b57d
|
|
282
312
|
anti-bloat:
|
|
@@ -374,6 +404,12 @@
|
|
|
374
404
|
- depends:
|
|
375
405
|
- 'xml.sax.expatreader'
|
|
376
406
|
|
|
407
|
+
- module-name: 'xmlrpc.server' # checksum: 105ff40e
|
|
408
|
+
anti-bloat:
|
|
409
|
+
- replacements_plain:
|
|
410
|
+
'import pydoc': ''
|
|
411
|
+
when: 'not use_pydoc'
|
|
412
|
+
|
|
377
413
|
- module-name: 'zipapp' # checksum: 6a44b57d
|
|
378
414
|
anti-bloat:
|
|
379
415
|
- description: 'remove module ability to run as a binary'
|
nuitka/tools/testing/Common.py
CHANGED
|
@@ -25,6 +25,7 @@ from nuitka.utils.AppDirs import getCacheDir
|
|
|
25
25
|
from nuitka.utils.Execution import (
|
|
26
26
|
check_output,
|
|
27
27
|
createProcess,
|
|
28
|
+
executeProcess,
|
|
28
29
|
getNullInput,
|
|
29
30
|
getNullOutput,
|
|
30
31
|
)
|
|
@@ -34,6 +35,7 @@ from nuitka.utils.FileOperations import (
|
|
|
34
35
|
getFileContentByLine,
|
|
35
36
|
getFileContents,
|
|
36
37
|
getFileList,
|
|
38
|
+
getParentDirectories,
|
|
37
39
|
isFilenameSameAsOrBelowPath,
|
|
38
40
|
makePath,
|
|
39
41
|
openTextFile,
|
|
@@ -470,9 +472,13 @@ def checkCompilesNotWithCPython(dirname, filename, search_mode):
|
|
|
470
472
|
def checkSucceedsWithCPython(filename):
|
|
471
473
|
command = [_python_executable, filename]
|
|
472
474
|
|
|
473
|
-
|
|
475
|
+
stdout, stderr, exit_code = executeProcess(command)
|
|
474
476
|
|
|
475
|
-
|
|
477
|
+
if exit_code != 0:
|
|
478
|
+
my_print("stdout", stdout)
|
|
479
|
+
my_print("stderr", stderr)
|
|
480
|
+
|
|
481
|
+
return exit_code == 0
|
|
476
482
|
|
|
477
483
|
|
|
478
484
|
def getDebugPython():
|
|
@@ -1392,6 +1398,7 @@ def checkLoadedFileAccesses(loaded_filenames, current_dir):
|
|
|
1392
1398
|
current_dir = os.path.normpath(current_dir)
|
|
1393
1399
|
current_dir = os.path.normcase(current_dir)
|
|
1394
1400
|
current_dir_ext = os.path.normcase(getExternalUsePath(current_dir))
|
|
1401
|
+
current_dir_real = os.path.realpath(current_dir)
|
|
1395
1402
|
|
|
1396
1403
|
illegal_accesses = []
|
|
1397
1404
|
|
|
@@ -1436,6 +1443,17 @@ def checkLoadedFileAccesses(loaded_filenames, current_dir):
|
|
|
1436
1443
|
if loaded_filename.startswith(current_dir_ext):
|
|
1437
1444
|
continue
|
|
1438
1445
|
|
|
1446
|
+
if loaded_filename.startswith(current_dir_real):
|
|
1447
|
+
continue
|
|
1448
|
+
|
|
1449
|
+
# Parent directories are OK too
|
|
1450
|
+
if (
|
|
1451
|
+
loaded_filename in getParentDirectories(current_dir)
|
|
1452
|
+
or loaded_filename in getParentDirectories(current_dir_ext)
|
|
1453
|
+
or loaded_filename in getParentDirectories(current_dir_real)
|
|
1454
|
+
):
|
|
1455
|
+
continue
|
|
1456
|
+
|
|
1439
1457
|
ignore = True
|
|
1440
1458
|
for ignored_dir in (
|
|
1441
1459
|
# System configuration is OK
|
|
@@ -1456,6 +1474,7 @@ def checkLoadedFileAccesses(loaded_filenames, current_dir):
|
|
|
1456
1474
|
# Themes may of course be loaded.
|
|
1457
1475
|
"/usr/share/themes",
|
|
1458
1476
|
# Terminal info files are OK too.
|
|
1477
|
+
"/usr/share/terminfo",
|
|
1459
1478
|
"/lib/terminfo",
|
|
1460
1479
|
):
|
|
1461
1480
|
if isFilenameSameAsOrBelowPath(ignored_dir, loaded_filename):
|
|
@@ -1762,6 +1781,7 @@ def checkLoadedFileAccesses(loaded_filenames, current_dir):
|
|
|
1762
1781
|
|
|
1763
1782
|
# macOS uses these:
|
|
1764
1783
|
if loaded_basename in (
|
|
1784
|
+
"libc.dylib",
|
|
1765
1785
|
"libcrypto.1.0.0.dylib",
|
|
1766
1786
|
"libssl.1.0.0.dylib",
|
|
1767
1787
|
"libcrypto.1.1.dylib",
|
nuitka/tree/InternalModule.py
CHANGED
|
@@ -42,7 +42,6 @@ def once_decorator(func):
|
|
|
42
42
|
return replacement
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
@once_decorator
|
|
46
45
|
def getInternalModule():
|
|
47
46
|
"""Get the singleton internal module."""
|
|
48
47
|
|
|
@@ -63,6 +62,7 @@ def makeInternalHelperFunctionBody(name, parameters, inline_const_args=False):
|
|
|
63
62
|
parameters=parameters,
|
|
64
63
|
flags=None,
|
|
65
64
|
auto_release=None,
|
|
65
|
+
code_prefix="helper_function",
|
|
66
66
|
source_ref=internal_source_ref,
|
|
67
67
|
)
|
|
68
68
|
|