Nuitka-winsvc 2.1.2__cp311-cp311-win_amd64.whl → 2.1.3__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Nuitka-winsvc
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: Nuitka but support compile as Windows service
5
5
  Home-page: https://github.com/tabris17/Nuitka-winsvc
6
6
  Author: tabris17
@@ -1,5 +1,5 @@
1
- Nuitka_winsvc-2.1.2.data/scripts/nuitka-run.bat,sha256=zzCZ6CymZcBcI_BMB1RwNIegL0JcACGwKTMeIW-aaOU,924
2
- Nuitka_winsvc-2.1.2.data/scripts/nuitka.bat,sha256=G-3yCOmURvmaYtciOLW4cMRGEcutzcsea4qDJqfezg0,1061
1
+ Nuitka_winsvc-2.1.3.data/scripts/nuitka-run.bat,sha256=zzCZ6CymZcBcI_BMB1RwNIegL0JcACGwKTMeIW-aaOU,924
2
+ Nuitka_winsvc-2.1.3.data/scripts/nuitka.bat,sha256=G-3yCOmURvmaYtciOLW4cMRGEcutzcsea4qDJqfezg0,1061
3
3
  nuitka/Builtins.py,sha256=IPBD00YlX9eNfKyKxyGRukVmwtoiaeJ4YLNdm1LoLOo,7560
4
4
  nuitka/BytecodeCaching.py,sha256=KFVx1wDKEG8bydgerI6k2YK6VXIZLmTfMxgZmUhkBWo,5787
5
5
  nuitka/Bytecodes.py,sha256=7kFpFEWpyL9clv1LIHtIhYPJi0psItCcn0RYf4paEuA,3800
@@ -9,7 +9,7 @@ nuitka/Errors.py,sha256=cUzzWhvemFoumoYpBDacJSydfDivm-rweWVXk2ELUVo,2479
9
9
  nuitka/HardImportRegistry.py,sha256=mquDn6znusONCBZkd1qSSIIseNG2B9EWc62AWIZ0ufQ,10335
10
10
  nuitka/MainControl.py,sha256=MpUcKFw16tiXmOKtrnLArHNlp3XEjinQjwalK7Ozp1Q,38348
11
11
  nuitka/ModuleRegistry.py,sha256=lIElF9BCVa2JmmhsBjyjAt6MSFo2vusJ71RUrkaMAQo,8616
12
- nuitka/OptionParsing.py,sha256=wTecTFl-o0ele9vHSSxB64Qz-NNtCmjPmE3SfZbMQtI,63838
12
+ nuitka/OptionParsing.py,sha256=ofKRnuwNLL-hDI7wA8kUDozbTkgi74xtKGr_x1jJFS0,64040
13
13
  nuitka/Options.py,sha256=bNDx2h_ZNHTU7bO-9e2hyFyZrDBMeMHOKoXoYViPnPc,75543
14
14
  nuitka/OutputDirectories.py,sha256=7hM8zVNoclTVup6StkxUuhRJ8IEHjhaKXX3lb03BmcY,5276
15
15
  nuitka/PostProcessing.py,sha256=8IeVz3GNx4OkgEaP2HALSbZi1bFdaIicioD10l5_n3o,14940
@@ -22,7 +22,7 @@ nuitka/SourceCodeReferences.py,sha256=quGcd9Kg3FjYwsSDDv49MWi_Yec2AurRp-cVspo5qq
22
22
  nuitka/Tracing.py,sha256=7BE6sDP5XmOWzoQnjC05ll2b5i38KLzXr2V5zI4eXX4,13335
23
23
  nuitka/TreeXML.py,sha256=SKL4lL6Tcfu7Uetq-KaFo3q0-M18bp6Szc4eMrNwrfw,3513
24
24
  nuitka/Variables.py,sha256=53u-p0l58lrBg8nNSYd5DjR3AOGezMayUM7C05vANVM,15470
25
- nuitka/Version.py,sha256=dQvWF7kFkUJINi-kD1YFJYUx6Ra9jDMc8z8ngBdTw4M,2466
25
+ nuitka/Version.py,sha256=sWCe4Jb2CJGmTg7D7BrBkV9GcPWs2QYz16s1Mz-tRfc,2466
26
26
  nuitka/__init__.py,sha256=TkW50aBd9haxBi-DXHM71oVA31d5oPeL06ZwuBSkPqo,865
27
27
  nuitka/__main__.py,sha256=HZFjEt3fdlQLqcreBI6dlUvA53IqQMnZE4Aj5FPwu1s,6373
28
28
  nuitka/__past__.py,sha256=x9W6PDKU2SOY2Qbeu5kgiwgJ5edjG4BUPhdA-6qQ7mY,5604
@@ -36,7 +36,7 @@ nuitka/build/SconsHacks.py,sha256=uK_fTLqNrRwC6G6JJDsRoHhJxST13EmObiApOdeAvxo,55
36
36
  nuitka/build/SconsInterface.py,sha256=_RUO06b97KtcH1w9rT48TFqQfKyuL4Yke2E1C-sgj84,15933
37
37
  nuitka/build/SconsProgress.py,sha256=KoJDqgKxDRPjX00rB9a48YIij_oA1dwobBD1LMCpJ9k,2704
38
38
  nuitka/build/SconsSpawn.py,sha256=g2BzLuCeIMpt5OHYK7jelyRgm8QlHQxoCKA33mg3y4g,13210
39
- nuitka/build/SconsUtils.py,sha256=48txghK3cKDLzOPXM-V9mXS5fR57IOAjjN8C05TjFUs,26956
39
+ nuitka/build/SconsUtils.py,sha256=vVMu5C8Pf7edz_1G39ulm6mBnYP0KmU_0_63TUcBp00,26957
40
40
  nuitka/build/__init__.py,sha256=TkW50aBd9haxBi-DXHM71oVA31d5oPeL06ZwuBSkPqo,865
41
41
  nuitka/build/include/nuitka/allocator.h,sha256=9kww_KyeLT0C1N25lMTjKje6aja6sYTMKrq5YyvoUdg,8001
42
42
  nuitka/build/include/nuitka/builtins.h,sha256=QhRpXRaFLANnurU3yqbgj_pmdgmze5ThItnV4RpR8Xs,3499
@@ -470,7 +470,7 @@ nuitka/build/static_src/HelpersOperationInplacePow.c,sha256=1-X0lSTpsjHpi-1FYqtN
470
470
  nuitka/build/static_src/HelpersOperationInplaceRshift.c,sha256=OURy7FnAKkkUmnCCR_PElUTK39dy3NpDsCxB4xRV4KY,45341
471
471
  nuitka/build/static_src/HelpersOperationInplaceSub.c,sha256=A4DP2OjlFsQFP4lEuaAZU69JXVC1Ygnan4IVSIWWVx0,82871
472
472
  nuitka/build/static_src/HelpersOperationInplaceTruediv.c,sha256=ZUakGR_slGnhs2GCg2I2MyhpFyLiXNPlkbTDhu6PkXA,76950
473
- nuitka/build/static_src/HelpersProfiling.c,sha256=8WK3sJ0h52mQ-IEVncEoFHXLv0UuIYKluDVbt6hV9lM,3328
473
+ nuitka/build/static_src/HelpersProfiling.c,sha256=vtPFWMfPv14uxbu1mlYizN2hUGp-_qsyBvzAGQDQrfs,3394
474
474
  nuitka/build/static_src/HelpersPythonPgo.c,sha256=knEuVNnJg-H8oXQbvu_9YqVg0uIA1rkWKi4Ebk6WvJ8,3840
475
475
  nuitka/build/static_src/HelpersRaising.c,sha256=GJy7hqMQBO732V4agnqlylM9-_Mgl6_VgKajZJPuHK8,15663
476
476
  nuitka/build/static_src/HelpersSafeStrings.c,sha256=Uo24UHxgCtmaKpr0qhJayqdutIL0bubVBpP5NHsEruw,3868
@@ -562,7 +562,7 @@ nuitka/code_generation/c_types/CTypePyObjectPointers.py,sha256=ByZl4gMX2YczpiM9g
562
562
  nuitka/code_generation/c_types/CTypeVoids.py,sha256=VEwcj1bXAE-GcnAkozePYqNpl23hmJLWLQDlgg0U3-k,2885
563
563
  nuitka/code_generation/c_types/__init__.py,sha256=TkW50aBd9haxBi-DXHM71oVA31d5oPeL06ZwuBSkPqo,865
564
564
  nuitka/code_generation/templates/CodeTemplatesAsyncgens.py,sha256=exms_JURf6hjfkNU4O1d8DTXsjOqArLcZrNXX-oEXoI,2948
565
- nuitka/code_generation/templates/CodeTemplatesConstants.py,sha256=UfPpg9SSv6Woj6_Ik2Hg0hBjJL1niuwue9PaSlxDW1c,8907
565
+ nuitka/code_generation/templates/CodeTemplatesConstants.py,sha256=xfMmx1yXDbakG4qTCT0N7lkHMcacXo7MKlA21QoDLDI,8928
566
566
  nuitka/code_generation/templates/CodeTemplatesCoroutines.py,sha256=ETCq5cbhvOxm5qZ5reynszi5TfzAuPx0BgNMPVgLOlE,3040
567
567
  nuitka/code_generation/templates/CodeTemplatesExceptions.py,sha256=Q9H_6sPGO5scugMj0-suKAY6OX5yVBMr27hwUCAFcHc,2358
568
568
  nuitka/code_generation/templates/CodeTemplatesFrames.py,sha256=QP6fABpLbYYiPpuvyjOX6Ke9k49_dWVoO33VjAbfcpw,6483
@@ -744,7 +744,7 @@ nuitka/optimizations/ValueTraces.py,sha256=m_d8JbsGWFbnxuV58sOPVPtnU-Rh6Br3pAAtA
744
744
  nuitka/optimizations/__init__.py,sha256=TkW50aBd9haxBi-DXHM71oVA31d5oPeL06ZwuBSkPqo,865
745
745
  nuitka/pgo/PGO.py,sha256=9oSnX1hXeuECPOujz4vadlGI6-wFYICWjdTBrE04G9c,4932
746
746
  nuitka/pgo/__init__.py,sha256=TkW50aBd9haxBi-DXHM71oVA31d5oPeL06ZwuBSkPqo,865
747
- nuitka/plugins/PluginBase.py,sha256=I1hCNChRqMJCzXCBcU0wQTYizXRL3LRFljQ5vNR582Q,56620
747
+ nuitka/plugins/PluginBase.py,sha256=4Zd7nXjeLYzadBFKozPhDXto7Ol4G1AsXn3jdwSv8bI,56670
748
748
  nuitka/plugins/Plugins.py,sha256=6wOakwXv24G0rnvEyzafZF5xLT84Y_gx5fp5ToOwxEI,59723
749
749
  nuitka/plugins/__init__.py,sha256=TkW50aBd9haxBi-DXHM71oVA31d5oPeL06ZwuBSkPqo,865
750
750
  nuitka/plugins/standard/AntiBloatPlugin.py,sha256=cgEC5sM5yXVBnScn7kXvq_wIxrNP8HoGqJ6I2aQ52hg,30408
@@ -776,11 +776,11 @@ nuitka/plugins/standard/TransformersPlugin.py,sha256=9MAbtousSksrIzHbYjW-UPlsIXf
776
776
  nuitka/plugins/standard/TrioPlugin.py,sha256=5tIrmbLsuEn_koP4S9F2CuOEw6kyAQ7NyOESPtsF54Q,1106
777
777
  nuitka/plugins/standard/UpxPlugin.py,sha256=1I3WouiEmKQAvTkzhgmJ2FRjDKHC0oH9onENntmFphg,5668
778
778
  nuitka/plugins/standard/__init__.py,sha256=TkW50aBd9haxBi-DXHM71oVA31d5oPeL06ZwuBSkPqo,865
779
- nuitka/plugins/standard/standard.nuitka-package.config.yml,sha256=gy8K_06zqP3krWX4gTcm5kjM7_cEKEusJLKZWcjpwyc,226505
779
+ nuitka/plugins/standard/standard.nuitka-package.config.yml,sha256=ire0ManiZO2mdS09VaOAioTRKe4IxMPNygVQXXNKhDQ,232908
780
780
  nuitka/plugins/standard/stdlib2.nuitka-package.config.yml,sha256=AUjtaX5pUWpvPru9WiTjvKDFeISY4XXv-UDO25MdrAM,2352
781
781
  nuitka/plugins/standard/stdlib3.nuitka-package.config.yml,sha256=Y_vbnb_R_q3sHjtUUgOkxpIi1cBaS9DAX38gTb7yk68,12392
782
782
  nuitka/plugins/standard/DillPlugin/DillPlugin.c,sha256=XEr9N_2U2vKOEhTnth3UyIHTYowgKWfin_8jS1jaMXA,1646
783
- nuitka/plugins/standard/DillPlugin/dill-postLoad.py,sha256=czPPuN6xQ-RxKmzfDNOZL6m-qPeA7MCzIZOzROdsz0s,9661
783
+ nuitka/plugins/standard/DillPlugin/dill-postLoad.py,sha256=WICFdsvx5ZZKqgfX-GuYWqsuL7avFDqxlFk6UA3qihk,9826
784
784
  nuitka/reports/CompilationReportReader.py,sha256=0tviyGwsHIw-qxGRnCxCNIJshir61KdGMMCA3hYaIXk,2287
785
785
  nuitka/reports/LicenseReport.rst.j2,sha256=CPxGcCfBlYXRDHUOOuzVs-bcVj8IQ5kA4GAn5ayRIzc,2089
786
786
  nuitka/reports/Reports.py,sha256=tVZy9pAzfLNV_DblOtSrk-kbPX3JzL9QzqVISvIv_yo,27389
@@ -896,7 +896,7 @@ nuitka/utils/InstanceCounters.py,sha256=0exppiVjIcdQvw_4o0ZedPs-ZEYc3lUqMNefUoE1
896
896
  nuitka/utils/Jinja2.py,sha256=IitTCo5DDy4U9z-yV1B_aHxGhTp5zMZYOnDX_9yWtqc,4586
897
897
  nuitka/utils/Json.py,sha256=8tOXO-qE1JH1_9CJBknFZxWwlc_3OPX1pwsRctj5axU,1271
898
898
  nuitka/utils/MacOSApp.py,sha256=XmxhWvR7IQgqtw23p6CeEbmowHt8mRn0M2ckXGk0P_I,4477
899
- nuitka/utils/MemoryUsage.py,sha256=4iqF0ObA6UNUV30fbrz6y1XMA03oEvlJWtM98S7oURE,5073
899
+ nuitka/utils/MemoryUsage.py,sha256=QeanxAep9aOvtYvhL4viCHrlRqN3i9OcgfmcV0dhq1c,5092
900
900
  nuitka/utils/ModuleNames.py,sha256=bLtm5e3ojZ_F0GuPbXFbFG4q2vTQXdO-OvMuiSoUO5I,9951
901
901
  nuitka/utils/ReExecute.py,sha256=iFwFyfyfASWkWZfcgtM-sKnPoND-obcBaaNxJU4yfN4,4588
902
902
  nuitka/utils/Rest.py,sha256=zP9jjG6pOSuLKVuZbbj_Wwq1CLZ6hk16wdhHkR_m2oE,1889
@@ -912,9 +912,9 @@ nuitka/utils/WindowsFileUsage.py,sha256=UglAr8IbR1IGOysHMEuBUT-tnwF3tTcR80fNGSMl
912
912
  nuitka/utils/WindowsResources.py,sha256=npt3jbcTgh1M5G6jyEv6uFqiZIf84XEea3wXQ_sXGdM,19837
913
913
  nuitka/utils/Yaml.py,sha256=aeYsCj6mM8uYiMSg0TIkVSKsa-8lYzJXmfpbyLRsMi4,7014
914
914
  nuitka/utils/__init__.py,sha256=TkW50aBd9haxBi-DXHM71oVA31d5oPeL06ZwuBSkPqo,865
915
- Nuitka_winsvc-2.1.2.dist-info/LICENSE.txt,sha256=ZWq74m8T3pVbRFjCBu74q_4GyW11rCqtYB_1vZ4rQ88,11348
916
- Nuitka_winsvc-2.1.2.dist-info/METADATA,sha256=wl9ord5IYOZht0QyiDZoLFfcM_ybIfIhUB4bf3drjf8,4909
917
- Nuitka_winsvc-2.1.2.dist-info/WHEEL,sha256=nSybvzWlmdJnHiUQSY-d7V1ycwEVUTqXiTvr2eshg44,102
918
- Nuitka_winsvc-2.1.2.dist-info/entry_points.txt,sha256=jeBnijqxZ4U0WpNEdtaogpNMNlv5jw8H7yMOsf2isFc,308
919
- Nuitka_winsvc-2.1.2.dist-info/top_level.txt,sha256=TRrfKxSYukbo1yzTGfwyH7wVzhDpKlwQsLjhIr15yqY,7
920
- Nuitka_winsvc-2.1.2.dist-info/RECORD,,
915
+ Nuitka_winsvc-2.1.3.dist-info/LICENSE.txt,sha256=ZWq74m8T3pVbRFjCBu74q_4GyW11rCqtYB_1vZ4rQ88,11348
916
+ Nuitka_winsvc-2.1.3.dist-info/METADATA,sha256=xNeevHxQE_tPkL-G_ECDItFTU87IfSGy9q_ARLZmnZ0,4909
917
+ Nuitka_winsvc-2.1.3.dist-info/WHEEL,sha256=nSybvzWlmdJnHiUQSY-d7V1ycwEVUTqXiTvr2eshg44,102
918
+ Nuitka_winsvc-2.1.3.dist-info/entry_points.txt,sha256=jeBnijqxZ4U0WpNEdtaogpNMNlv5jw8H7yMOsf2isFc,308
919
+ Nuitka_winsvc-2.1.3.dist-info/top_level.txt,sha256=TRrfKxSYukbo1yzTGfwyH7wVzhDpKlwQsLjhIr15yqY,7
920
+ Nuitka_winsvc-2.1.3.dist-info/RECORD,,
nuitka/OptionParsing.py CHANGED
@@ -36,15 +36,18 @@ from nuitka.Version import getCommercialVersion, getNuitkaVersion
36
36
 
37
37
  # Indicator if we were called as "nuitka-run" in which case we assume some
38
38
  # other defaults and work a bit different with parameters.
39
- is_nuitka_run = os.path.basename(sys.argv[0]).lower().endswith("-run")
39
+ _nuitka_binary_name = os.path.basename(sys.argv[0])
40
+ if _nuitka_binary_name == "__main__.py":
41
+ _nuitka_binary_name = "%s -m nuitka" % os.path.basename(sys.executable)
42
+ is_nuitka_run = _nuitka_binary_name.lower().endswith("-run")
40
43
 
41
44
  if not is_nuitka_run:
42
- usage = "usage: %prog [--module] [--run] [options] main_module.py"
45
+ usage_template = "usage: %s [--module] [--run] [options] main_module.py"
43
46
  else:
44
- usage = "usage: %prog [options] main_module.py"
47
+ usage_template = "usage: %s [options] main_module.py"
45
48
 
46
49
 
47
- parser = makeOptionsParser(usage=usage)
50
+ parser = makeOptionsParser(usage=usage_template % _nuitka_binary_name)
48
51
 
49
52
  parser.add_option(
50
53
  "--version",
nuitka/Version.py CHANGED
@@ -20,7 +20,7 @@
20
20
  """
21
21
 
22
22
  version_string = """\
23
- Nuitka V2.1.2
23
+ Nuitka V2.1.3
24
24
  Copyright (C) 2024 Kay Hayen."""
25
25
 
26
26
 
@@ -609,7 +609,7 @@ def scanSourceDir(env, dirname, plugins):
609
609
 
610
610
  # Only C files are of interest here.
611
611
  if not hasFilenameExtension(
612
- filename_base, (".c", "cpp")
612
+ filename_base, (".c", ".cpp")
613
613
  ) or not filename_base.startswith(("module.", "__", "plugin.")):
614
614
  continue
615
615
 
@@ -44,7 +44,9 @@ void startProfiling(void) {
44
44
  abort();
45
45
  }
46
46
 
47
- PyObject *result = CALL_FUNCTION_WITH_SINGLE_ARG(PyObject_GetAttrString(vmprof_module, "enable"),
47
+ PyThreadState *tstate = PyThreadState_GET();
48
+
49
+ PyObject *result = CALL_FUNCTION_WITH_SINGLE_ARG(tstate, PyObject_GetAttrString(vmprof_module, "enable"),
48
50
  PyInt_FromLong(fileno(tempfile_profile)));
49
51
 
50
52
  if (result == NULL) {
@@ -65,7 +67,7 @@ void stopProfiling(void) {
65
67
  PyTracebackObject *save_exception_tb;
66
68
  FETCH_ERROR_OCCURRED(tstate, &save_exception_type, &save_exception_value, &save_exception_tb);
67
69
 
68
- PyObject *result = CALL_FUNCTION_NO_ARGS(PyObject_GetAttrString(vmprof_module, "disable"));
70
+ PyObject *result = CALL_FUNCTION_NO_ARGS(tstate, PyObject_GetAttrString(vmprof_module, "disable"));
69
71
 
70
72
  if (result == NULL) {
71
73
  CLEAR_ERROR_OCCURRED(tstate);
@@ -25,7 +25,7 @@ PyObject *Nuitka_dunder_compiled_value = NULL;
25
25
  #ifdef _NUITKA_STANDALONE
26
26
  extern PyObject *getStandaloneSysExecutablePath(PyObject *basename);
27
27
 
28
- static PyObject *STRIP_DIRNAME(PyObject *path) {
28
+ NUITKA_MAY_BE_UNUSED static PyObject *STRIP_DIRNAME(PyObject *path) {
29
29
  #if PYTHON_VERSION < 0x300
30
30
  char const *path_cstr = PyString_AS_STRING(path);
31
31
 
@@ -17,6 +17,7 @@ import functools
17
17
  import inspect
18
18
  import os
19
19
  import sys
20
+ import unittest
20
21
 
21
22
  from nuitka import Options
22
23
  from nuitka.__past__ import iter_modules, unicode
@@ -155,6 +156,7 @@ def _getEvaluationContext():
155
156
  "os": os,
156
157
  "importlib": _getImportLibModule(),
157
158
  "appdirs": getAppdirsModule(),
159
+ "unittest": unittest,
158
160
  # Python version string
159
161
  "python_version_str": python_version_str,
160
162
  "python_version_full_str": python_version_full_str,
@@ -236,6 +236,10 @@ def save_compiled_function(pickler, obj):
236
236
  dill._dill.StockPickler.save_global(pickler, obj)
237
237
 
238
238
 
239
+ if __compiled__.standalone: # pylint: disable=undefined-variable
240
+ builtins.compiled_method = compiled_method
241
+ builtins.compiled_function = compiled_function
242
+
239
243
  # Part of "Nuitka", an optimizing Python compiler that is compatible and
240
244
  # integrates with CPython, but also works on its own.
241
245
  #
@@ -350,13 +350,18 @@
350
350
  - 'av.plane'
351
351
  - 'av.video.plane'
352
352
 
353
- - module-name: 'babel' # checksum: e320e7f1
353
+ - module-name: 'babel' # checksum: 37b8fa6d
354
354
  data-files:
355
355
  dirs:
356
356
  - 'locale-data'
357
357
  patterns:
358
358
  - 'global.dat'
359
359
 
360
+ implicit-imports:
361
+ - depends:
362
+ - 'babel.dates'
363
+ - 'babel.numbers'
364
+
360
365
  - module-name: 'backports.zoneinfo._common' # checksum: 70450440
361
366
  implicit-imports:
362
367
  - depends:
@@ -1014,11 +1019,15 @@
1014
1019
  'load_ipython_extension': 'un-callable'
1015
1020
  when: 'not use_ipython'
1016
1021
 
1017
- - module-name: 'dotenv.main' # checksum: 406cfc35
1022
+ - module-name: 'dotenv.main' # checksum: cb869e1f
1018
1023
  anti-bloat:
1019
1024
  - description: 'workaround to avoid dotenv requiring package directories'
1020
1025
  replacements_plain:
1021
1026
  "raise IOError('Starting path not found')": 'pass'
1027
+ - description: 'workaround to avoid dotenv requiring python filenames'
1028
+ replacements_plain:
1029
+ 'while frame.f_code.co_filename == current_file': 'if False'
1030
+ 'frame_filename = frame.f_code.co_filename': 'frame_filename = os.path.dirname(__file__)'
1022
1031
 
1023
1032
  - module-name: 'easyocr' # checksum: fb59d361
1024
1033
  data-files:
@@ -1488,6 +1497,31 @@
1488
1497
  patterns:
1489
1498
  - '_cython/_credentials/roots.pem'
1490
1499
 
1500
+ - module-name: 'gruut' # checksum: 19583930
1501
+ data-files:
1502
+ patterns:
1503
+ - 'VERSION'
1504
+
1505
+ implicit-imports:
1506
+ - depends:
1507
+ - 'gruut_ipa'
1508
+ - 'gruut_lang_en'
1509
+
1510
+ - module-name: 'gruut_ipa' # checksum: 810a705a
1511
+ data-files:
1512
+ dirs:
1513
+ - 'data'
1514
+
1515
+ - module-name: 'gruut_lang_en' # checksum: 206e4c65
1516
+ data-files:
1517
+ dirs:
1518
+ - 'espeak'
1519
+ - 'g2p'
1520
+ - 'pos'
1521
+ patterns:
1522
+ - 'VERSION'
1523
+ - 'lexicon.db'
1524
+
1491
1525
  - module-name: 'gtk._gtk' # checksum: 4fb4a03b
1492
1526
  implicit-imports:
1493
1527
  - depends:
@@ -3402,6 +3436,17 @@
3402
3436
  - 'pycparser.yacctab'
3403
3437
  - 'pycparser.lextab'
3404
3438
 
3439
+ - module-name: 'pycrfsuite' # checksum: 452bfc81
3440
+ dlls:
3441
+ - from_filenames:
3442
+ prefixes:
3443
+ - '_pycrfsuite'
3444
+
3445
+ implicit-imports:
3446
+ - depends:
3447
+ - 'pycrfsuite._dumpparser'
3448
+ - 'pycrfsuite._logparser'
3449
+
3405
3450
  - module-name: 'pydantic' # checksum: fb2935eb
3406
3451
  implicit-imports:
3407
3452
  - depends:
@@ -3781,7 +3826,7 @@
3781
3826
  - find-dlls-near-module:
3782
3827
  - 'shiboken2'
3783
3828
 
3784
- - module-name: 'PySide6' # checksum: f259f70e
3829
+ - module-name: 'PySide6' # checksum: db68a9cc
3785
3830
  implicit-imports:
3786
3831
  - post-import-code:
3787
3832
  - |
@@ -3803,6 +3848,11 @@
3803
3848
  if not slot.im_func.__name__.startswith("_pyside6_workaround_"):
3804
3849
  slot.im_func.__name__ = "_pyside6_workaround_" + slot.im_func.__name__
3805
3850
 
3851
+ try:
3852
+ setattr(slot.im_self.__class__, slot.im_func.__name__, slot.im_func)
3853
+ except Exception:
3854
+ pass
3855
+
3806
3856
  return orig_connect(self, slot, type)
3807
3857
 
3808
3858
  from PySide6 import QtCore
@@ -5522,7 +5572,7 @@
5522
5572
  'notebook': "'(lambda: None)'"
5523
5573
  when: 'not use_ipython'
5524
5574
 
5525
- - module-name: 'tensorflow' # checksum: 3e41f159
5575
+ - module-name: 'tensorflow' # checksum: 5ed34611
5526
5576
  dlls:
5527
5577
  - from_filenames:
5528
5578
  relative_path: 'core/platform'
@@ -5539,6 +5589,7 @@
5539
5589
  # TODO: Have "unusable", something that triggers a telling "RuntimeError" when used.
5540
5590
  'from tensorflow._api.v1 import test': 'test = None'
5541
5591
  'from ._api.v2 import test': 'test = None'
5592
+ 'from tensorflow._api.v2 import test': 'test = None'
5542
5593
  append_plain: |
5543
5594
  import sys
5544
5595
  sys.modules["tensorflow.compat"] = compat
@@ -5576,18 +5627,21 @@
5576
5627
  'from . import test': 'test = None'
5577
5628
  'from tensorflow._api.v1.compat.v2 import test': 'test = None'
5578
5629
 
5579
- - module-name: 'tensorflow._api.v2.__internal__' # checksum: 6575e290
5630
+ - module-name: 'tensorflow._api.v2.__internal__' # checksum: 4958c951
5580
5631
  anti-bloat:
5581
5632
  - description: 'remove useless tensorflow testing usage'
5582
5633
  replacements_plain:
5583
5634
  'from . import test': 'test = None'
5584
5635
  'from . import distribute': 'distribute = None'
5636
+ 'from tensorflow._api.v2.__internal__ import test': 'test = None'
5637
+ 'from tensorflow._api.v2.__internal__ import distribute': 'distribute = None'
5585
5638
 
5586
- - module-name: 'tensorflow._api.v2.compat.v1' # checksum: 3b5c62cb
5639
+ - module-name: 'tensorflow._api.v2.compat.v1' # checksum: 53024ed1
5587
5640
  anti-bloat:
5588
5641
  - description: 'remove useless tensorflow testing usage'
5589
5642
  replacements_plain:
5590
5643
  'from . import test': 'test = None'
5644
+ 'from tensorflow._api.v2.compat.v1 import test': 'test = None'
5591
5645
 
5592
5646
  - module-name: 'tensorflow._api.v2.compat.v1.compat.v1' # checksum: 31fdcb26
5593
5647
  anti-bloat:
@@ -5601,25 +5655,38 @@
5601
5655
  replacements_plain:
5602
5656
  'from tensorflow._api.v2.compat.v2 import test': 'test = None'
5603
5657
 
5604
- - module-name: 'tensorflow._api.v2.compat.v2' # checksum: 3b5c62cb
5658
+ - module-name: 'tensorflow._api.v2.compat.v2' # checksum: b1ce7f9
5605
5659
  anti-bloat:
5606
5660
  - description: 'remove useless tensorflow testing usage'
5607
5661
  replacements_plain:
5608
5662
  'from . import test': 'test = None'
5663
+ 'from tensorflow._api.v2.compat.v2 import test': 'test = None'
5609
5664
 
5610
- - module-name: 'tensorflow._api.v2.compat.v2.__internal__' # checksum: 6575e290
5665
+ - module-name: 'tensorflow._api.v2.compat.v2.__internal__' # checksum: 6992c716
5611
5666
  anti-bloat:
5612
5667
  - description: 'remove useless tensorflow testing usage'
5613
5668
  replacements_plain:
5614
5669
  # TODO: Really need to make the "un-usable" a thing
5615
5670
  'from . import test': 'test = None'
5671
+ 'from tensorflow._api.v2.compat.v2.__internal__ import test': 'test = None'
5616
5672
  'from . import distribute': 'distribute = None'
5617
5673
 
5618
- - module-name: 'tensorflow._api.v2.compat.v2.__internal__.distribute' # checksum: 6d039981
5674
+ - module-name: 'tensorflow._api.v2.compat.v2.__internal__.distribute' # checksum: a5d90e6f
5619
5675
  anti-bloat:
5620
5676
  - description: 'remove useless tensorflow testing usage'
5621
5677
  replacements_plain:
5622
5678
  'from . import multi_process_runner': 'multi_process_runner = None'
5679
+ 'from tensorflow._api.v2.compat.v2.__internal__.distribute import combinations': 'combinations = None'
5680
+ 'from tensorflow._api.v2.compat.v2.__internal__.distribute import interim': 'interim = None'
5681
+ 'from tensorflow._api.v2.compat.v2.__internal__.distribute import multi_process_runner': 'multi_process_runner=None'
5682
+ when: 'not use_unittest'
5683
+
5684
+ - module-name: 'tensorflow._api.v2.compat.v2.__internal__.distribute.multi_process_runner' # checksum: b50f5527
5685
+ anti-bloat:
5686
+ - description: 'remove unittest reference'
5687
+ replacements_plain:
5688
+ 'from tensorflow.python.distribute.multi_worker_test_base import create_cluster_spec': 'pass'
5689
+ when: 'not use_unittest'
5623
5690
 
5624
5691
  - module-name: 'tensorflow._api.v2.compat.v2.compat.v1' # checksum: 31fdcb26
5625
5692
  anti-bloat:
@@ -5892,12 +5959,13 @@
5892
5959
  replacements_plain:
5893
5960
  'ag_logging.warning(': 'if False: ag_logging.warning('
5894
5961
 
5895
- - module-name: 'tensorflow.python.autograph.impl.conversion' # checksum: eddb826f
5962
+ - module-name: 'tensorflow.python.autograph.impl.conversion' # checksum: fe4e1edb
5896
5963
  anti-bloat:
5897
- - description: 'remove unitest usage'
5964
+ - description: 'remove unittest usage'
5898
5965
  replacements_plain:
5899
5966
  'import unittest': ''
5900
5967
  'issubclass(owner_class, unittest.TestCase)': 'False'
5968
+ when: 'not use_unittest'
5901
5969
 
5902
5970
  - module-name: 'tensorflow.python.compiler.tensorrt.trt_convert' # checksum: 9471824c
5903
5971
  implicit-imports:
@@ -5919,21 +5987,68 @@
5919
5987
  - depends:
5920
5988
  - 'tensorflow.python.data.ops.shuffle_op'
5921
5989
 
5922
- - module-name: 'tensorflow.python.distribute.multi_process_runner' # checksum: 3b5c62cb
5990
+ - module-name: 'tensorflow.python.distribute.combinations' # checksum: 6cb7adcb
5991
+ anti-bloat:
5992
+ - description: 'remove unittest reference'
5993
+ replacements_plain:
5994
+ 'from tensorflow.python.framework import test_combinations as combinations_lib': 'combinations_lib = None'
5995
+ 'from tensorflow.python.framework import test_util': 'test_util = None'
5996
+ 'from tensorflow.python.framework import test_combinations': 'test_combinations = None'
5997
+ 'import unittest': ''
5998
+ 'from tensorflow.python.distribute import multi_worker_test_base': ''
5999
+ replacements:
6000
+ 'unittest.TestLoader.testMethodPrefix': 'unittest.TestLoader.testMethodPrefix'
6001
+ change_function:
6002
+ '_test_runner': 'un-callable'
6003
+ '_multi_worker_test': 'un-callable'
6004
+ when: 'not use_unittest'
6005
+
6006
+ - module-name: 'tensorflow.python.distribute.multi_process_lib' # checksum: b7c69e56
6007
+ anti-bloat:
6008
+ - description: 'remove unittest reference'
6009
+ replacements_plain:
6010
+ 'import unittest': 'unittest = None'
6011
+ 'from tensorflow.python.eager import test': 'test = None'
6012
+ when: 'not use_unittest'
6013
+
6014
+ - module-name: 'tensorflow.python.distribute.multi_process_runner' # checksum: fc293e17
5923
6015
  anti-bloat:
5924
6016
  - description: 'remove useless tensorflow testing usage'
5925
6017
  replacements_plain:
5926
6018
  'from . import test': 'test = None'
6019
+ 'from tensorflow.python.framework import test_util': 'test_util = None'
6020
+ 'test_util.is_tsan_enabled()': 'False'
6021
+ 'import unittest': 'unittest = None'
6022
+ when: 'not use_unittest'
5927
6023
 
5928
- - module-name: 'tensorflow.python.distribute.multi_worker_test_base' # checksum: 3d614bbf
6024
+ - module-name: 'tensorflow.python.distribute.multi_worker_test_base' # checksum: 28f6ca1b
5929
6025
  anti-bloat:
5930
6026
  - description: 'remove useless tensorflow testing usage'
5931
6027
  replacements_plain:
5932
6028
  'import unittest': 'test = None'
5933
6029
  'from tensorflow.python.framework import test_util': 'test_util = None'
5934
6030
  'from tensorflow.python.platform import test': 'test = None'
6031
+ 'pick_unused_port = test_util.pick_unused_port': ''
6032
+ append_plain: |
6033
+ ASSIGNED_PORTS: set()
6034
+ lock = threading.Lock()
6035
+
6036
+ def pick_unused_port():
6037
+ import portpicker
6038
+ global ASSIGNED_PORTS
6039
+ with lock:
6040
+ while True:
6041
+ try:
6042
+ port = portpicker.pick_unused_port()
6043
+ except portpicker.NoFreePortFoundError as porterror:
6044
+ raise unittest.SkipTest("") from porterror
6045
+ if port > 10000 and port not in ASSIGNED_PORTS:
6046
+ ASSIGNED_PORTS.add(port)
6047
+ logging.info("Using local port %r", port)
6048
+ return port
6049
+ when: 'not use_unittest'
5935
6050
 
5936
- - module-name: 'tensorflow.python.distribute.strategy_combinations' # checksum: 2911563d
6051
+ - module-name: 'tensorflow.python.distribute.strategy_combinations' # checksum: 4c4b9841
5937
6052
  anti-bloat:
5938
6053
  - description: 'remove useless tensorflow testing usage'
5939
6054
  replacements_plain:
@@ -5941,6 +6056,7 @@
5941
6056
  'from tensorflow.python.framework import test_util as framework_test_util': 'framework_test_util = None'
5942
6057
  'from tensorflow.python.distribute import multi_process_runner': 'multi_process_runner = None'
5943
6058
  'from tensorflow.python.distribute import multi_worker_test_base': 'multi_worker_test_base = None'
6059
+ 'import unittest': 'unittest = None'
5944
6060
 
5945
6061
  - module-name: 'tensorflow.python.framework' # checksum: 98664efa
5946
6062
  implicit-imports:
@@ -5948,6 +6064,13 @@
5948
6064
  - 'tensorflow.python.framework.fast_tensor_util'
5949
6065
  when: 'not win32'
5950
6066
 
6067
+ - module-name: 'tensorflow.python.framework.combinations' # checksum: dd5e29c2
6068
+ anti-bloat:
6069
+ - description: 'remove unittest reference'
6070
+ replacements_plain:
6071
+ 'from tensorflow.python.framework import test_combinations': 'test_combinations = None'
6072
+ when: 'not use_unittest'
6073
+
5951
6074
  - module-name: 'tensorflow.python.framework.dtypes' # checksum: 25144a68
5952
6075
  implicit-imports:
5953
6076
  - depends:
@@ -6136,10 +6259,12 @@
6136
6259
  dirs:
6137
6260
  - 'resources'
6138
6261
 
6139
- - module-name: 'toga_winforms' # checksum: 286969f5
6262
+ - module-name: 'toga_winforms' # checksum: 5dda2bcf
6140
6263
  data-files:
6141
6264
  dirs:
6142
6265
  - 'resources'
6266
+ include-metadata:
6267
+ - 'toga-winforms'
6143
6268
  dlls:
6144
6269
  - from_filenames:
6145
6270
  relative_path: 'libs/WebView2/arm64'
@@ -6508,7 +6633,7 @@
6508
6633
  patterns:
6509
6634
  - '*.css'
6510
6635
 
6511
- - module-name: 'transformers' # checksum: 81d84f69
6636
+ - module-name: 'transformers' # checksum: a442ab87
6512
6637
  data-files:
6513
6638
  include-metadata:
6514
6639
  - 'accelerate'
@@ -6530,6 +6655,12 @@
6530
6655
  - 'timm'
6531
6656
  - 'openai'
6532
6657
 
6658
+ anti-bloat:
6659
+ - description: 'remove IPython reference'
6660
+ no-auto-follow:
6661
+ 'IPython': 'ignore'
6662
+ when: 'not use_ipython'
6663
+
6533
6664
  - module-name: 'transformers.integrations' # checksum: ccb3fd3
6534
6665
  anti-bloat:
6535
6666
  - description: 'remove IPython reference'
@@ -6551,6 +6682,27 @@
6551
6682
  'load_cuda_kernels': 'un-callable'
6552
6683
  when: 'not use_setuptools'
6553
6684
 
6685
+ - module-name: 'transformers.models.deformable_detr.modling_deformable_detr' # checksum: baab8e6b
6686
+ anti-bloat:
6687
+ - description: 'remove setuptools usage'
6688
+ change_function:
6689
+ 'load_cuda_kernels': 'un-callable'
6690
+ when: 'not use_setuptools'
6691
+
6692
+ - module-name: 'transformers.models.deta.modeling_deta' # checksum: baab8e6b
6693
+ anti-bloat:
6694
+ - description: 'remove setuptools usage'
6695
+ change_function:
6696
+ 'load_cuda_kernels': 'un-callable'
6697
+ when: 'not use_setuptools'
6698
+
6699
+ - module-name: 'transformers.models.mra.modeling_mra' # checksum: baab8e6b
6700
+ anti-bloat:
6701
+ - description: 'remove setuptools usage'
6702
+ change_function:
6703
+ 'load_cuda_kernels': 'un-callable'
6704
+ when: 'not use_setuptools'
6705
+
6554
6706
  - module-name: 'transformers.models.rwkv.modeling_rwkv' # checksum: f186b69e
6555
6707
  anti-bloat:
6556
6708
  - description: 'remove setuptools usage'
@@ -6558,6 +6710,13 @@
6558
6710
  'load_wkv_cuda_kernel': "'(lambda : None)'"
6559
6711
  when: 'not use_setuptools'
6560
6712
 
6713
+ - module-name: 'transformers.models.yoso.modeling_deta' # checksum: baab8e6b
6714
+ anti-bloat:
6715
+ - description: 'remove setuptools usage'
6716
+ change_function:
6717
+ 'load_cuda_kernels': 'un-callable'
6718
+ when: 'not use_setuptools'
6719
+
6561
6720
  - module-name: 'transformers.models.yoso.modeling_yoso' # checksum: 7f1a78b7
6562
6721
  anti-bloat:
6563
6722
  - description: 'remove setuptools usage'
@@ -6571,13 +6730,6 @@
6571
6730
  replacements_plain:
6572
6731
  'transformers_module = direct_transformers_import(Path(__file__).parent)': 'import transformers as transformers_module'
6573
6732
 
6574
- - module-name: 'transformers.tools.agent_types' # checksum: 7d07a2d1
6575
- anti-bloat:
6576
- - description: 'remove IPython reference'
6577
- no-auto-follow:
6578
- 'IPython': 'ignore'
6579
- when: 'not use_ipython'
6580
-
6581
6733
  - module-name: 'transformers.trainer' # checksum: f71d17eb
6582
6734
  anti-bloat:
6583
6735
  - description: 'remove IPython reference'
@@ -6798,6 +6950,13 @@
6798
6950
  - 'websockets.legacy.server'
6799
6951
  - 'uvicorn.logging'
6800
6952
 
6953
+ - module-name: 'uvicorn.importer' # checksum: ada37bba
6954
+ anti-bloat:
6955
+ - description: 'better error message for string imports'
6956
+ replacements_plain:
6957
+ 'Could not import module "{module_str}"': 'Nuitka: Could not import module "{module_str}" use "--include-module={module_str}" option during compilation'
6958
+ when: 'not deployment'
6959
+
6801
6960
  - module-name: 'uvicorn.lifespan' # checksum: f7b81412
6802
6961
  implicit-imports:
6803
6962
  - depends:
@@ -6990,6 +7149,16 @@
6990
7149
  - 'win32comext'
6991
7150
  when: 'win32'
6992
7151
 
7152
+ - module-name: 'win32com.server.register' # checksum: d2ea40f3
7153
+ anti-bloat:
7154
+ - replacements_plain:
7155
+ 'not pythoncom.frozen': 'False'
7156
+ change_function:
7157
+ 'ReExecuteElevated': "'''raise (RuntimeError('Nuitka: Needs to be elevated already, use --windows-uac-admin'))'''"
7158
+ implicit-imports:
7159
+ - depends:
7160
+ - 'win32timezone'
7161
+
6993
7162
  - module-name: 'win32ui' # checksum: 2f1beca2
6994
7163
  implicit-imports:
6995
7164
  - pre-import-code:
@@ -96,7 +96,7 @@ def getMemoryInfos():
96
96
 
97
97
 
98
98
  def collectMemoryUsageValue(memory_usage_name):
99
- assert memory_usage_name not in _memory_infos
99
+ assert memory_usage_name not in _memory_infos, memory_usage_name
100
100
  _memory_infos[memory_usage_name] = getOwnProcessMemoryUsage()
101
101
 
102
102
  return _memory_infos[memory_usage_name]