Nuitka-winsvc 2.1.3__cp311-cp311-win_amd64.whl → 2.1.5__cp311-cp311-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of Nuitka-winsvc might be problematic. Click here for more details.

@@ -390,14 +390,19 @@
390
390
  change_function:
391
391
  'test': 'un-callable'
392
392
 
393
- - module-name: 'bitsandbytes.cextension' # checksum: 70a78a03
393
+ - module-name: 'bitsandbytes' # checksum: 14f2c5d0
394
394
  dlls:
395
395
  - from_filenames:
396
396
  prefixes:
397
397
  - 'libbitsandbytes_'
398
398
  suffixes:
399
- # Applies currently to all OSes in bitsandbytes wheels.
399
+ # Applied to all OSes in bitsandbytes wheels.
400
400
  - 'so'
401
+ when: 'version("bitsandbytes") < (0,43)'
402
+ - from_filenames:
403
+ prefixes:
404
+ - 'libbitsandbytes_'
405
+ when: 'version("bitsandbytes") >= (0,43)'
401
406
 
402
407
  - module-name: 'bitsandbytes.triton.dequantize_rowwise' # checksum: 291bbd89
403
408
  anti-bloat:
@@ -852,12 +857,23 @@
852
857
  patterns:
853
858
  - 'dask.yaml'
854
859
 
860
+ - module-name: 'dask.dataframe' # checksum: b6b8eaf
861
+ implicit-imports:
862
+ - depends:
863
+ - 'pyarrow._*'
864
+
855
865
  - module-name: 'dask.dataframe._compat' # checksum: 78ecb250
856
866
  anti-bloat:
857
867
  - description: 'remove pandas.testing reference'
858
868
  replacements_plain:
859
869
  'import pandas.testing as tm': ''
860
870
 
871
+ - module-name: 'dask.dataframe.utils' # checksum: 5af31dde
872
+ anti-bloat:
873
+ - description: 'remove pandas.testing reference'
874
+ replacements_plain:
875
+ 'from dask.dataframe._compat import PANDAS_GE_150, tm': ''
876
+
861
877
  - module-name: 'dask.dot' # checksum: ddcb31f2
862
878
  anti-bloat:
863
879
  - description: 'remove IPython reference'
@@ -893,6 +909,14 @@
893
909
  replacements_plain:
894
910
  '__version__ = get_distribution(__name__).version': 'raise DistributionNotFound'
895
911
 
912
+ - module-name: 'deepspeed' # checksum: 5af29274
913
+ anti-bloat:
914
+ - description: 'remove setuptools usage via triton'
915
+ no-auto-follow:
916
+ 'triton': 'ignore'
917
+ 'torch.utils.cpp_extension': 'ignore'
918
+ when: 'not use_setuptools'
919
+
896
920
  - module-name: 'delphifmx' # checksum: f818d46e
897
921
  dlls:
898
922
  - from_filenames:
@@ -1851,6 +1875,29 @@
1851
1875
  prefixes:
1852
1876
  - 'libusb'
1853
1877
 
1878
+ - module-name: 'lightgbm' # checksum: 38422ad6
1879
+ data-files:
1880
+ dirs:
1881
+ - 'locales'
1882
+ patterns:
1883
+ - '*.bin'
1884
+ - 'VERSION.txt'
1885
+ dlls:
1886
+ - from_filenames:
1887
+ relative_path: 'bin'
1888
+ prefixes:
1889
+ - 'lib_lightgbm'
1890
+
1891
+ - module-name: 'lightgbm.dask' # checksum: f12519e1
1892
+ anti-bloat:
1893
+ - description: 'remove docstrings'
1894
+ replacements_plain:
1895
+ " _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition('**kwargs') # type: ignore": ''
1896
+ ' {_before_kwargs}client : dask.distributed.Client or None, optional (default=None)': ''
1897
+ ? " {' ':4}Dask client. If ``None``, ``distributed.default_client()`` will be used at runtime. The Dask client used by this class will not be saved if the model object is pickled."
1898
+ : ''
1899
+ ' {_kwargs}{_after_kwargs}': ''
1900
+
1854
1901
  - module-name: 'lightgbm.libpath' # checksum: f4a8da46
1855
1902
  dlls:
1856
1903
  - from_filenames:
@@ -1927,7 +1974,7 @@
1927
1974
  - depends:
1928
1975
  - 'markdown.extensions.*'
1929
1976
 
1930
- - module-name: 'matplotlib' # checksum: faefaad3
1977
+ - module-name: 'matplotlib' # checksum: 977975bb
1931
1978
  anti-bloat:
1932
1979
  - description: 'remove setuptools and pytest testing framework reference'
1933
1980
  replacements:
@@ -1937,11 +1984,33 @@
1937
1984
  '_init_tests': "'None'"
1938
1985
  'test': "'None'"
1939
1986
  '_get_version': "'(lambda : _version.version)'"
1987
+ - description: 'avoid PySide6 unless used'
1988
+ no-auto-follow:
1989
+ 'PySide6': 'ignore'
1990
+ when: 'not use_pyside6'
1991
+ - description: 'avoid PySide2 unless used'
1992
+ no-auto-follow:
1993
+ 'PySide2': 'ignore'
1994
+ when: 'not use_pyside2'
1995
+ - description: 'avoid PyQt5 unless used'
1996
+ no-auto-follow:
1997
+ 'PyQt5': 'ignore'
1998
+ when: 'not use_pyqt5'
1999
+ - description: 'avoid PyQt6 unless used'
2000
+ no-auto-follow:
2001
+ 'PyQt6': 'ignore'
2002
+ when: 'not use_pyqt6'
2003
+
1940
2004
  implicit-imports:
1941
2005
  - depends:
1942
2006
  - 'matplotlib.backend_managers'
1943
2007
  - 'matplotlib.backend_bases'
1944
2008
  - 'mpl_toolkits'
2009
+ options:
2010
+ checks:
2011
+ - description: "For matplotlib a GUI tooltkit selection might be needed use, use '--enable-plugin=tk-inter|PySide6|PySide2|PyQt6|PyQt5', or use '--enable-plugin=no-qt' for headless mode."
2012
+ support_info: 'plugin'
2013
+ when: 'not macos and not (use_noqt or use_pyqt5 or use_pyqt6 or use_pyside2 or use_pyside6)'
1945
2014
 
1946
2015
  - module-name: 'matplotlib.backend_bases' # checksum: 5954e33d
1947
2016
  anti-bloat:
@@ -2171,6 +2240,11 @@
2171
2240
  - depends:
2172
2241
  - '_cffi_backend'
2173
2242
 
2243
+ - module-name: 'names' # checksum: 4d754910
2244
+ data-files:
2245
+ patterns:
2246
+ - 'dist.*'
2247
+
2174
2248
  - module-name: 'networkx' # checksum: 6f2aa88a
2175
2249
  anti-bloat:
2176
2250
  - description: 'remove networkx.testing usage and pytest reference (via nose)'
@@ -3406,6 +3480,12 @@
3406
3480
  'setuptools_scm': 'ignore'
3407
3481
  when: 'not use_setuptools'
3408
3482
 
3483
+ - module-name: 'pyarrow.dataset' # checksum: 37675d7a
3484
+ implicit-imports:
3485
+ - depends:
3486
+ - 'pyarrow._acero'
3487
+ - 'pyarrow._json'
3488
+
3409
3489
  - module-name: 'pyarrow.lib' # checksum: 302be0c2
3410
3490
  implicit-imports:
3411
3491
  - depends:
@@ -4044,6 +4124,11 @@
4044
4124
  dirs:
4045
4125
  - 'fonts'
4046
4126
 
4127
+ - module-name: 'randomname' # checksum: 8d6f0c80
4128
+ data-files:
4129
+ dirs:
4130
+ - 'wordlists'
4131
+
4047
4132
  - module-name: 'rapidfuzz' # checksum: 2248cb4c
4048
4133
  implicit-imports:
4049
4134
  - depends:
@@ -4194,7 +4279,7 @@
4194
4279
  - depends:
4195
4280
  - 'scapy.layers.*'
4196
4281
 
4197
- - module-name: 'scipy' # checksum: 2e8d63ef
4282
+ - module-name: 'scipy' # checksum: 30cb05e1
4198
4283
  data-files:
4199
4284
  patterns:
4200
4285
  - 'stats/_sobol_direction_numbers.npz' # for scipy.stats._sobol._initialize_direction_numbers
@@ -4210,6 +4295,12 @@
4210
4295
  - ''
4211
4296
  when: 'win32'
4212
4297
 
4298
+ anti-bloat:
4299
+ - description: 'torch and cupy checks should not cause usage'
4300
+ no-auto-follow:
4301
+ 'cupy': 'ignore'
4302
+ 'torch': 'ignore'
4303
+
4213
4304
  - module-name: 'scipy._distributor_init' # checksum: 3316da5c
4214
4305
  anti-bloat:
4215
4306
  - description: 'workaround for scipy DLL loading'
@@ -4341,6 +4432,11 @@
4341
4432
  - depends:
4342
4433
  - 'scipy.special._ufuncs_cxx'
4343
4434
 
4435
+ - module-name: 'scipy.special._ufuncs' # checksum: 4ded0e67
4436
+ implicit-imports:
4437
+ - depends:
4438
+ - 'scipy.special._cdflib'
4439
+
4344
4440
  - module-name: 'scipy.stats._fit' # checksum: 7547ad25
4345
4441
  anti-bloat:
4346
4442
  - no-auto-follow:
@@ -5572,13 +5668,16 @@
5572
5668
  'notebook': "'(lambda: None)'"
5573
5669
  when: 'not use_ipython'
5574
5670
 
5575
- - module-name: 'tensorflow' # checksum: 5ed34611
5671
+ - module-name: 'tensorflow' # checksum: 13d6e6a5
5576
5672
  dlls:
5577
5673
  - from_filenames:
5578
5674
  relative_path: 'core/platform'
5579
5675
  prefixes:
5580
5676
  - '_cpu_feature_guard'
5581
5677
  anti-bloat:
5678
+ - description: 'allow unittest inside of tensorflow, too dependent to remove'
5679
+ bloat-mode-overrides:
5680
+ 'unittest': 'allow'
5582
5681
  - description: 'remove useless distutils and test framework usage'
5583
5682
  replacements_plain:
5584
5683
  'import distutils as _distutils': '_distutils = None'
@@ -5593,14 +5692,12 @@
5593
5692
  append_plain: |
5594
5693
  import sys
5595
5694
  sys.modules["tensorflow.compat"] = compat
5695
+ sys.modules["tensorflow.experimental"] = experimental
5596
5696
  sys.modules["tensorflow.compat.v1"] = compat.v1
5597
5697
  sys.modules["tensorflow.compat.v2"] = compat.v2
5598
5698
  sys.modules["tensorflow.compat.v1.logging"] = compat.v1.logging
5599
5699
  sys.modules["tensorflow.compat.v2.experimental"] = compat.v2.experimental
5600
5700
  sys.modules["tensorflow.keras"] = keras
5601
- sys.modules["tensorflow.keras.layers"] = keras.layers
5602
- sys.modules["tensorflow.keras.activations"] = keras.activations
5603
- sys.modules["tensorflow.keras.models"] = keras.models
5604
5701
  when: 'standalone'
5605
5702
  - description: 'remove kubernetes as default dependency'
5606
5703
  no-auto-follow:
@@ -5613,6 +5710,12 @@
5613
5710
  - 'tensorflow_estimator'
5614
5711
  - 'keras.api._v2.keras'
5615
5712
 
5713
+ options:
5714
+ checks:
5715
+ - description: "'tensorflow' is not fully supported before version 2.16"
5716
+ support_info: 'warning'
5717
+ when: 'version("tensorflow") < (2,16)'
5718
+
5616
5719
  - module-name: 'tensorflow._api.v1.compat.v1' # checksum: 3e84bd8b
5617
5720
  anti-bloat:
5618
5721
  - description: 'remove useless tensorflow testing usage'
@@ -5627,14 +5730,12 @@
5627
5730
  'from . import test': 'test = None'
5628
5731
  'from tensorflow._api.v1.compat.v2 import test': 'test = None'
5629
5732
 
5630
- - module-name: 'tensorflow._api.v2.__internal__' # checksum: 4958c951
5733
+ - module-name: 'tensorflow._api.v2.__internal__' # checksum: 92facfb8
5631
5734
  anti-bloat:
5632
5735
  - description: 'remove useless tensorflow testing usage'
5633
5736
  replacements_plain:
5634
5737
  'from . import test': 'test = None'
5635
- 'from . import distribute': 'distribute = None'
5636
5738
  'from tensorflow._api.v2.__internal__ import test': 'test = None'
5637
- 'from tensorflow._api.v2.__internal__ import distribute': 'distribute = None'
5638
5739
 
5639
5740
  - module-name: 'tensorflow._api.v2.compat.v1' # checksum: 53024ed1
5640
5741
  anti-bloat:
@@ -5662,31 +5763,12 @@
5662
5763
  'from . import test': 'test = None'
5663
5764
  'from tensorflow._api.v2.compat.v2 import test': 'test = None'
5664
5765
 
5665
- - module-name: 'tensorflow._api.v2.compat.v2.__internal__' # checksum: 6992c716
5766
+ - module-name: 'tensorflow._api.v2.compat.v2.__internal__' # checksum: 970797b3
5666
5767
  anti-bloat:
5667
5768
  - description: 'remove useless tensorflow testing usage'
5668
5769
  replacements_plain:
5669
- # TODO: Really need to make the "un-usable" a thing
5670
5770
  'from . import test': 'test = None'
5671
5771
  'from tensorflow._api.v2.compat.v2.__internal__ import test': 'test = None'
5672
- 'from . import distribute': 'distribute = None'
5673
-
5674
- - module-name: 'tensorflow._api.v2.compat.v2.__internal__.distribute' # checksum: a5d90e6f
5675
- anti-bloat:
5676
- - description: 'remove useless tensorflow testing usage'
5677
- replacements_plain:
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'
5690
5772
 
5691
5773
  - module-name: 'tensorflow._api.v2.compat.v2.compat.v1' # checksum: 31fdcb26
5692
5774
  anti-bloat:
@@ -5737,15 +5819,6 @@
5737
5819
  - 'tensorflow.contrib.boosted_trees.python.ops._boosted_trees_ops'
5738
5820
  when: 'not win32'
5739
5821
 
5740
- - module-name: 'tensorflow.contrib.eager.python.tfe' # checksum: 9ea31d00
5741
- anti-bloat:
5742
- - description: 'remove unittest reference'
5743
- replacements_plain:
5744
- 'from tensorflow.python.framework.test_util import run_in_graph_and_eager_modes as run_test_in_graph_and_eager_modes': 'run_test_in_graph_and_eager_modes = None'
5745
- ? 'from tensorflow.python.framework.test_util import run_all_in_graph_and_eager_modes as run_all_tests_in_graph_and_eager_modes'
5746
- : 'run_all_tests_in_graph_and_eager_modes = None'
5747
- when: 'not use_unittest'
5748
-
5749
5822
  - module-name: 'tensorflow.contrib.factorization.python.ops.factorization_ops' # checksum: 4ea2083
5750
5823
  dlls:
5751
5824
  - from_filenames:
@@ -5959,14 +6032,6 @@
5959
6032
  replacements_plain:
5960
6033
  'ag_logging.warning(': 'if False: ag_logging.warning('
5961
6034
 
5962
- - module-name: 'tensorflow.python.autograph.impl.conversion' # checksum: fe4e1edb
5963
- anti-bloat:
5964
- - description: 'remove unittest usage'
5965
- replacements_plain:
5966
- 'import unittest': ''
5967
- 'issubclass(owner_class, unittest.TestCase)': 'False'
5968
- when: 'not use_unittest'
5969
-
5970
6035
  - module-name: 'tensorflow.python.compiler.tensorrt.trt_convert' # checksum: 9471824c
5971
6036
  implicit-imports:
5972
6037
  - depends:
@@ -5987,90 +6052,12 @@
5987
6052
  - depends:
5988
6053
  - 'tensorflow.python.data.ops.shuffle_op'
5989
6054
 
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
6015
- anti-bloat:
6016
- - description: 'remove useless tensorflow testing usage'
6017
- replacements_plain:
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'
6023
-
6024
- - module-name: 'tensorflow.python.distribute.multi_worker_test_base' # checksum: 28f6ca1b
6025
- anti-bloat:
6026
- - description: 'remove useless tensorflow testing usage'
6027
- replacements_plain:
6028
- 'import unittest': 'test = None'
6029
- 'from tensorflow.python.framework import test_util': 'test_util = None'
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'
6050
-
6051
- - module-name: 'tensorflow.python.distribute.strategy_combinations' # checksum: 4c4b9841
6052
- anti-bloat:
6053
- - description: 'remove useless tensorflow testing usage'
6054
- replacements_plain:
6055
- 'from tensorflow.python.distribute import test_util': 'test_util = None'
6056
- 'from tensorflow.python.framework import test_util as framework_test_util': 'framework_test_util = None'
6057
- 'from tensorflow.python.distribute import multi_process_runner': 'multi_process_runner = None'
6058
- 'from tensorflow.python.distribute import multi_worker_test_base': 'multi_worker_test_base = None'
6059
- 'import unittest': 'unittest = None'
6060
-
6061
6055
  - module-name: 'tensorflow.python.framework' # checksum: 98664efa
6062
6056
  implicit-imports:
6063
6057
  - depends:
6064
6058
  - 'tensorflow.python.framework.fast_tensor_util'
6065
6059
  when: 'not win32'
6066
6060
 
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
-
6074
6061
  - module-name: 'tensorflow.python.framework.dtypes' # checksum: 25144a68
6075
6062
  implicit-imports:
6076
6063
  - depends:
@@ -6098,6 +6085,13 @@
6098
6085
  change_function:
6099
6086
  '_copy_fn': "'(lambda fn: fn)'"
6100
6087
 
6088
+ - module-name: 'tensorflow.python.util.lazy_loader' # checksum: d4c83239
6089
+ anti-bloat:
6090
+ - description: 'reduce keras usage'
6091
+ replacements:
6092
+ 'os.environ.get("TF_USE_LEGACY_KERAS", None)': 'repr(os.environ.get("TF_USE_LEGACY_KERAS", None))'
6093
+ 'keras.__version__': 'repr(version_str("keras"))'
6094
+
6101
6095
  - module-name: 'tensorflow_core' # checksum: f377875c
6102
6096
  anti-bloat:
6103
6097
  - description: 'remove useless distutils usage'
@@ -6121,6 +6115,13 @@
6121
6115
  - depends:
6122
6116
  - 'keras.api._v2'
6123
6117
 
6118
+ - module-name: 'tensorrt_libs' # checksum: cb30dde5
6119
+ dlls:
6120
+ - from_filenames:
6121
+ prefixes:
6122
+ - 'libnv'
6123
+ dest_path: '.'
6124
+
6124
6125
  - module-name: 'text_unidecode' # checksum: e24d920b
6125
6126
  data-files:
6126
6127
  patterns:
@@ -6136,6 +6137,13 @@
6136
6137
  - depends:
6137
6138
  - '._*'
6138
6139
 
6140
+ - module-name: 'tf_keras.src' # checksum: 9760fd72
6141
+ anti-bloat:
6142
+ - description: 'remove unittest reference'
6143
+ replacements_plain:
6144
+ 'from keras.src.testing_infra import test_utils': 'test_utils = None'
6145
+ when: 'not use_unittest'
6146
+
6139
6147
  - module-name: 'tf_keras.src.utils.vis_utils' # checksum: 7d07a2d1
6140
6148
  anti-bloat:
6141
6149
  - description: 'remove IPython reference'
@@ -6682,7 +6690,7 @@
6682
6690
  'load_cuda_kernels': 'un-callable'
6683
6691
  when: 'not use_setuptools'
6684
6692
 
6685
- - module-name: 'transformers.models.deformable_detr.modling_deformable_detr' # checksum: baab8e6b
6693
+ - module-name: 'transformers.models.deformable_detr.modeling_deformable_detr' # checksum: baab8e6b
6686
6694
  anti-bloat:
6687
6695
  - description: 'remove setuptools usage'
6688
6696
  change_function:
@@ -6696,9 +6704,11 @@
6696
6704
  'load_cuda_kernels': 'un-callable'
6697
6705
  when: 'not use_setuptools'
6698
6706
 
6699
- - module-name: 'transformers.models.mra.modeling_mra' # checksum: baab8e6b
6707
+ - module-name: 'transformers.models.mra.modeling_mra' # checksum: a554c6d
6700
6708
  anti-bloat:
6701
6709
  - description: 'remove setuptools usage'
6710
+ replacements_plain:
6711
+ 'from torch.utils.cpp_extension import load': ''
6702
6712
  change_function:
6703
6713
  'load_cuda_kernels': 'un-callable'
6704
6714
  when: 'not use_setuptools'
@@ -7269,6 +7279,11 @@
7269
7279
  'import dask.array as dask_array': 'raise ImportError'
7270
7280
  when: 'not use_dask'
7271
7281
 
7282
+ - module-name: 'xarray.core.nputils' # checksum: 46ca5d07
7283
+ data-files:
7284
+ include-metadata:
7285
+ - 'numpy'
7286
+
7272
7287
  - module-name: 'xarray.core.parallel' # checksum: 37f8ca49
7273
7288
  anti-bloat:
7274
7289
  - description: 'remove optional dask usage'
nuitka/reports/Reports.py CHANGED
@@ -49,7 +49,11 @@ from nuitka.utils.Distributions import (
49
49
  getDistributionsFromModuleName,
50
50
  getDistributionVersion,
51
51
  )
52
- from nuitka.utils.FileOperations import getReportPath, putTextFileContents
52
+ from nuitka.utils.FileOperations import (
53
+ getReportPath,
54
+ putBinaryFileContents,
55
+ putTextFileContents,
56
+ )
53
57
  from nuitka.utils.Jinja2 import getTemplate
54
58
  from nuitka.utils.MemoryUsage import getMemoryInfos
55
59
  from nuitka.utils.Utils import getArchitecture, getOS
@@ -643,10 +647,13 @@ def writeCompilationReport(report_filename, report_input_data, diffable):
643
647
  ),
644
648
  )
645
649
 
650
+ contents = TreeXML.toString(root)
651
+
652
+ if type(contents) is not bytes:
653
+ contents = contents.encode("utf8")
654
+
646
655
  try:
647
- putTextFileContents(
648
- filename=report_filename, contents=TreeXML.toString(root), encoding="utf8"
649
- )
656
+ putBinaryFileContents(filename=report_filename, contents=contents)
650
657
  except OSError as e:
651
658
  reports_logger.warning(
652
659
  "Compilation report write to file '%s' failed due to: %s."
@@ -818,6 +818,22 @@ def putTextFileContents(filename, contents, encoding=None):
818
818
  _writeContents(output_file)
819
819
 
820
820
 
821
+ def putBinaryFileContents(filename, contents):
822
+ """Write a binary file from given contents.
823
+
824
+ Args:
825
+ filename: str with the file to be created
826
+ contents: bytes that should be written into the file
827
+
828
+ Returns:
829
+ None
830
+ """
831
+
832
+ with withFileLock("writing file %s" % filename):
833
+ with openTextFile(filename, "wb") as output_file:
834
+ output_file.write(contents)
835
+
836
+
821
837
  def changeTextFileContents(filename, contents, encoding=None, compare_only=False):
822
838
  """Write a text file from given contents.
823
839