Repository navigation
Expand file tree
/
Copy pathpython.html
More file actions
5254 lines (4298 loc) · 239 KB
/
Copy pathpython.html
File metadata and controls
5254 lines (4298 loc) · 239 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html>
<head>
<title>Build Docs</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
<style>
.accordion,.simple{margin-left:1.5em;text-indent:-1.5em;margin-top:.25em}
.collapsible{border-width:0 0 0 1;margin-left:.25em;padding-left:.25em;border-style:solid;
border-color:grey;display:none;}
span.fixed{display: block; float: left; clear: left; width: 1em;}
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 30ch;
background-color: #f1f1f1;
position: fixed;
height: 100%;
overflow: auto;
}
li a {
display: block;
color: #000;
padding: 8px 16px;
text-decoration: none;
}
li a.active {
background-color: #4CAF50;
color: white;
}
li a:hover:not(.active) {
background-color: #555;
color: white;
}
</style>
<script type="text/javascript">
window.addEventListener('message', (e) => {
if (e != null && e.data != null && e.data.type === "SET_BASE" && e.data.base != null) {
const existingBase = document.querySelector('base');
if (existingBase != null) {
existingBase.parentElement.removeChild(existingBase);
}
const base = document.createElement('base');
base.setAttribute('href', e.data.base);
document.head.appendChild(base);
}
});
</script>
</head>
<body><ul>
<li><h3>python package</h3></li>
<li><a href="python.html#python_binary_host">python_binary_host</a></li>
<li><a href="python.html#python_defaults">python_defaults</a></li>
<li><a href="python.html#python_library">python_library</a></li>
<li><a href="python.html#python_library_host">python_library_host</a></li>
<li><a href="python.html#python_test">python_test</a></li>
<li><a href="python.html#python_test_host">python_test_host</a></li>
</ul>
<div style="margin-left:30ch;padding:1px 16px;">
<p>
<h2 id="python_binary_host">python_binary_host</h2>
<div class="breadcrumb">
<a href=python.html#python_binary_host.name>name</a>
, <a href=python.html#python_binary_host.srcs>srcs</a>
, <a href=python.html#python_binary_host.exclude_srcs>exclude_srcs</a>
, <a href=python.html#python_binary_host.defaults>defaults</a>
, <a href=python.html#python_binary_host.arch>arch</a>
, <a href=python.html#python_binary_host.auto_gen_config>auto_gen_config</a>
, <a href=python.html#python_binary_host.autorun>autorun</a>
, <a href=python.html#python_binary_host.compile_multilib>compile_multilib</a>
, <a href=python.html#python_binary_host.data>data</a>
, <a href=python.html#python_binary_host.debug_ramdisk>debug_ramdisk</a>
, <a href=python.html#python_binary_host.device_common_data>device_common_data</a>
, <a href=python.html#python_binary_host.device_first_data>device_first_data</a>
, <a href=python.html#python_binary_host.device_specific>device_specific</a>
, <a href=python.html#python_binary_host.dist>dist</a>
, <a href=python.html#python_binary_host.dists>dists</a>
, <a href=python.html#python_binary_host.embedded_launcher>embedded_launcher</a>
, <a href=python.html#python_binary_host.enabled>enabled</a>
, <a href=python.html#python_binary_host.host_cross_supported>host_cross_supported</a>
, <a href=python.html#python_binary_host.host_required>host_required</a>
, <a href=python.html#python_binary_host.init_rc>init_rc</a>
, <a href=python.html#python_binary_host.is_internal>is_internal</a>
, <a href=python.html#python_binary_host.java_data>java_data</a>
, <a href=python.html#python_binary_host.libs>libs</a>
, <a href=python.html#python_binary_host.licenses>licenses</a>
, <a href=python.html#python_binary_host.main>main</a>
, <a href=python.html#python_binary_host.multilib>multilib</a>
, <a href=python.html#python_binary_host.native_bridge_supported>native_bridge_supported</a>
, <a href=python.html#python_binary_host.no_full_install>no_full_install</a>
, <a href=python.html#python_binary_host.odm_dlkm_specific>odm_dlkm_specific</a>
, <a href=python.html#python_binary_host.overrides>overrides</a>
, <a href=python.html#python_binary_host.owner>owner</a>
, <a href=python.html#python_binary_host.pkg_path>pkg_path</a>
, <a href=python.html#python_binary_host.product_specific>product_specific</a>
, <a href=python.html#python_binary_host.product_variables.arc>product_variables.arc</a>
, <a href=python.html#python_binary_host.product_variables.debuggable>product_variables.debuggable</a>
, <a href=python.html#python_binary_host.product_variables.featuretransformpackagename>product_variables.featuretransformpackagename</a>
, <a href=python.html#python_binary_host.product_variables.malloc_low_memory>product_variables.malloc_low_memory</a>
, <a href=python.html#python_binary_host.product_variables.native_coverage>product_variables.native_coverage</a>
, <a href=python.html#python_binary_host.product_variables.release_aidl_use_unfrozen>product_variables.release_aidl_use_unfrozen</a>
, <a href=python.html#python_binary_host.product_variables.selinuxignoreneverallows>product_variables.selinuxignoreneverallows</a>
, <a href=python.html#python_binary_host.product_variables.unbundled_build>product_variables.unbundled_build</a>
, <a href=python.html#python_binary_host.proprietary>proprietary</a>
, <a href=python.html#python_binary_host.proto>proto</a>
, <a href=python.html#python_binary_host.ramdisk>ramdisk</a>
, <a href=python.html#python_binary_host.recovery>recovery</a>
, <a href=python.html#python_binary_host.required>required</a>
, <a href=python.html#python_binary_host.shared_libs>shared_libs</a>
, <a href=python.html#python_binary_host.soc_specific>soc_specific</a>
, <a href=python.html#python_binary_host.stem>stem</a>
, <a href=python.html#python_binary_host.suffix>suffix</a>
, <a href=python.html#python_binary_host.system_dlkm_specific>system_dlkm_specific</a>
, <a href=python.html#python_binary_host.system_ext_specific>system_ext_specific</a>
, <a href=python.html#python_binary_host.target>target</a>
, <a href=python.html#python_binary_host.target.android>target.android</a>
, <a href=python.html#python_binary_host.target.host>target.host</a>
, <a href=python.html#python_binary_host.target_required>target_required</a>
, <a href=python.html#python_binary_host.team>team</a>
, <a href=python.html#python_binary_host.test_suites>test_suites</a>
, <a href=python.html#python_binary_host.use_generic_config>use_generic_config</a>
, <a href=python.html#python_binary_host.vendor>vendor</a>
, <a href=python.html#python_binary_host.vendor_dlkm_specific>vendor_dlkm_specific</a>
, <a href=python.html#python_binary_host.vendor_ramdisk>vendor_ramdisk</a>
, <a href=python.html#python_binary_host.version.py2>version.py2</a>
, <a href=python.html#python_binary_host.version.py3>version.py3</a>
, <a href=python.html#python_binary_host.vintf_fragment_modules>vintf_fragment_modules</a>
, <a href=python.html#python_binary_host.vintf_fragments>vintf_fragments</a>
, <a href=python.html#python_binary_host.visibility>visibility</a></div>
<div class="simple" id="python_binary_host.name">
<span class="fixed"> </span><b>name </b>
<i>string</i>, The name of the module. Must be unique across all modules.
</div>
<div class="simple" id="python_binary_host.srcs">
<span class="fixed"> </span><b>srcs </b>
<i>list of string</i>, list of source (.py) files compatible both with Python2 and Python3 used to compile the
Python module.
srcs may reference the outputs of other modules that produce source files like genrule
or filegroup using the syntax ":module".
Srcs has to be non-empty.
</div>
<div class="simple" id="python_binary_host.exclude_srcs">
<span class="fixed"> </span><b>exclude_srcs </b>
<i>list of string</i>, list of source files that should not be used to build the C/C++ module.
This is most useful in the arch/multilib variants to remove non-common files
</div>
<div class="simple" id="python_binary_host.defaults">
<span class="fixed"> </span><b>defaults </b>
<i>list of string</i>
</div>
<div class="simple" id="python_binary_host.arch">
<span class="fixed"> </span><b>arch </b>
<i>interface</i>
</div>
<div class="simple" id="python_binary_host.auto_gen_config">
<span class="fixed"> </span><b>auto_gen_config </b>
<i>bool</i>, Flag to indicate whether or not to create test config automatically. If AndroidTest.xml
doesn't exist next to the Android.bp, this attribute doesn't need to be set to true
explicitly.
</div>
<div class="simple" id="python_binary_host.autorun">
<span class="fixed"> </span><b>autorun </b>
<i>bool</i>, whether to use `main` when starting the executable. The default is true, when set to
false it will act much like the normal `python` executable, but with the sources and
libraries automatically included in the PYTHONPATH.
</div>
<div class="simple" id="python_binary_host.compile_multilib">
<span class="fixed"> </span><b>compile_multilib </b>
<i>string</i>, control whether this module compiles for 32-bit, 64-bit, or both. Possible values
are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both
architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit
platform).
</div>
<div class="simple" id="python_binary_host.data">
<span class="fixed"> </span><b>data </b>
<i>list of string</i>, list of files or filegroup modules that provide data that should be installed alongside
the test. the file extension can be arbitrary except for (.py).
</div>
<div class="simple" id="python_binary_host.debug_ramdisk">
<span class="fixed"> </span><b>debug_ramdisk </b>
<i>bool</i>, Whether this module is installed to debug ramdisk
</div>
<div class="simple" id="python_binary_host.device_common_data">
<span class="fixed"> </span><b>device_common_data </b>
<i>list of string</i>, Same as data, but will add dependencies on modules using the device's os variation and
the common arch variation. Useful for a host test that wants to embed a module built for
device.
</div>
<div class="simple" id="python_binary_host.device_first_data">
<span class="fixed"> </span><b>device_first_data </b>
<i>list of string</i>, Same as data, but will add dependencies on modules via a device os variation and the
device's first supported arch's variation. Useful for a host test that wants to embed a
module built for device.
</div>
<div class="simple" id="python_binary_host.device_specific">
<span class="fixed"> </span><b>device_specific </b>
<i>bool</i>, whether this module is specific to a device, not only for SoC, but also for off-chip
peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition
does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist).
This implies `soc_specific:true`.
</div>
<div class="accordion" id="python_binary_host.dist">
<span class="fixed">⊕</span><b>dist</b>
<i>Dist</i></div>
<div class="collapsible">configuration to distribute output files from this module to the distribution
directory (default: $OUT/dist, configurable with $DIST_DIR)
<div class="simple" id="python_binary_host.targets">
<span class="fixed"> </span><b>targets </b>
<i>list of string</i>, Copy the output of this module to the $DIST_DIR when `dist` is specified on the
command line and any of these targets are also on the command line, or otherwise
built
</div>
<div class="simple" id="python_binary_host.dest">
<span class="fixed"> </span><b>dest </b>
<i>string</i>, The name of the output artifact. This defaults to the basename of the output of
the module.
</div>
<div class="simple" id="python_binary_host.dir">
<span class="fixed"> </span><b>dir </b>
<i>string</i>, The directory within the dist directory to store the artifact. Defaults to the
top level directory ("").
</div>
<div class="simple" id="python_binary_host.suffix">
<span class="fixed"> </span><b>suffix </b>
<i>string</i>, A suffix to add to the artifact file name (before any extension).
</div>
<div class="simple" id="python_binary_host.append_artifact_with_product">
<span class="fixed"> </span><b>append_artifact_with_product </b>
<i>bool</i>, If true, then the artifact file will be appended with _<product name>. For
example, if the product is coral and the module is an android_app module
of name foo, then the artifact would be foo_coral.apk. If false, there is
no change to the artifact file name.
</div>
<div class="simple" id="python_binary_host.prepend_artifact_with_product">
<span class="fixed"> </span><b>prepend_artifact_with_product </b>
<i>bool</i>, If true, then the artifact file will be prepended with <product name>-. For
example, if the product is coral and the module is an android_app module
of name foo, then the artifact would be coral-foo.apk. If false, there is
no change to the artifact file name.
</div>
<div class="simple" id="python_binary_host.tag">
<span class="fixed"> </span><b>tag </b>
<i>string</i>, A string tag to select the OutputFiles associated with the tag.
If no tag is specified then it will select the default dist paths provided
by the module type. If a tag of "" is specified then it will return the
default output files provided by the modules, i.e. the result of calling
OutputFiles("").
</div></div>
<div class="simple" id="python_binary_host.dists">
<span class="fixed"> </span><b>dists </b>
<i>list of Dist</i>, a list of configurations to distribute output files from this module to the
distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
</div>
<div class="simple" id="python_binary_host.embedded_launcher">
<span class="fixed"> </span><b>embedded_launcher </b>
<i>bool</i>, whether the binary is required to be built with an embedded python interpreter, defaults to
true. This allows taking the resulting binary outside of the build and running it on machines
that don't have python installed or may have an older version of python.
</div>
<div class="simple" id="python_binary_host.enabled">
<span class="fixed"> </span><b>enabled </b>
<i>configurable bool</i>, emit build rules for this module
Disabling a module should only be done for those modules that cannot be built
in the current environment. Modules that can build in the current environment
but are not usually required (e.g. superceded by a prebuilt) should not be
disabled as that will prevent them from being built by the checkbuild target
and so prevent early detection of changes that have broken those modules.
</div>
<div class="simple" id="python_binary_host.host_cross_supported">
<span class="fixed"> </span><b>host_cross_supported </b>
<i>bool</i>, If set to true, build a variant of the module for the host cross. Defaults to true.
</div>
<div class="simple" id="python_binary_host.host_required">
<span class="fixed"> </span><b>host_required </b>
<i>list of string</i>, names of other modules to install on host if this module is installed
</div>
<div class="simple" id="python_binary_host.init_rc">
<span class="fixed"> </span><b>init_rc </b>
<i>configurable list of string</i>, init.rc files to be installed if this module is installed
</div>
<div class="simple" id="python_binary_host.is_internal">
<span class="fixed"> </span><b>is_internal </b>
<i>bool</i>, true, if the Python module is used internally, eg, Python std libs.
</div>
<div class="simple" id="python_binary_host.java_data">
<span class="fixed"> </span><b>java_data </b>
<i>list of string</i>, list of java modules that provide data that should be installed alongside the test.
</div>
<div class="simple" id="python_binary_host.libs">
<span class="fixed"> </span><b>libs </b>
<i>list of string</i>, list of the Python libraries compatible both with Python2 and Python3.
</div>
<div class="simple" id="python_binary_host.licenses">
<span class="fixed"> </span><b>licenses </b>
<i>list of string</i>, Describes the licenses applicable to this module. Must reference license modules.
</div>
<div class="simple" id="python_binary_host.main">
<span class="fixed"> </span><b>main </b>
<i>string</i>, the name of the source file that is the main entry point of the program.
this file must also be listed in srcs.
If left unspecified, module name is used instead.
If name doesn’t match any filename in srcs, main must be specified.
</div>
<div class="simple" id="python_binary_host.multilib">
<span class="fixed"> </span><b>multilib </b>
<i>interface</i>
</div>
<div class="simple" id="python_binary_host.native_bridge_supported">
<span class="fixed"> </span><b>native_bridge_supported </b>
<i>bool</i>, Whether this module is built for non-native architectures (also known as native bridge binary)
</div>
<div class="simple" id="python_binary_host.no_full_install">
<span class="fixed"> </span><b>no_full_install </b>
<i>bool</i>, When set to true, this module is not installed to the full install path (ex: under
out/target/product/<name>/<partition>). It can be installed only to the packaging
modules like android_filesystem.
</div>
<div class="simple" id="python_binary_host.odm_dlkm_specific">
<span class="fixed"> </span><b>odm_dlkm_specific </b>
<i>bool</i>, Install to partition odm_dlkm when set to true.
</div>
<div class="simple" id="python_binary_host.overrides">
<span class="fixed"> </span><b>overrides </b>
<i>list of string</i>, List of module names that are prevented from being installed when this module gets
installed.
</div>
<div class="simple" id="python_binary_host.owner">
<span class="fixed"> </span><b>owner </b>
<i>string</i>, vendor who owns this module
</div>
<div class="simple" id="python_binary_host.pkg_path">
<span class="fixed"> </span><b>pkg_path </b>
<i>string</i>, the package path prefix within the output artifact at which to place the source/data
files of the current module.
eg. Pkg_path = "a/b/c"; Other packages can reference this module by using
(from a.b.c import ...) statement.
if left unspecified, all the source/data files path is unchanged within zip file.
</div>
<div class="simple" id="python_binary_host.product_specific">
<span class="fixed"> </span><b>product_specific </b>
<i>bool</i>, whether this module is specific to a software configuration of a product (e.g. country,
network operator, etc). When set to true, it is installed into /product (or
/system/product if product partition does not exist).
</div>
<div class="accordion" id="python_binary_host.product_variables.arc">
<span class="fixed">⊕</span><b>product_variables.arc</b>
<i></i></div>
<div class="collapsible">
<div class="accordion" id="python_binary_host.exclude_srcs">
<span class="fixed">⊕</span><b>exclude_srcs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.shared_libs">
<span class="fixed">⊕</span><b>shared_libs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.srcs">
<span class="fixed">⊕</span><b>srcs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div></div>
<div class="accordion" id="python_binary_host.product_variables.debuggable">
<span class="fixed">⊕</span><b>product_variables.debuggable</b>
<i></i></div>
<div class="collapsible">
<div class="accordion" id="python_binary_host.init_rc">
<span class="fixed">⊕</span><b>init_rc</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.required">
<span class="fixed">⊕</span><b>required</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.host_required">
<span class="fixed">⊕</span><b>host_required</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.target_required">
<span class="fixed">⊕</span><b>target_required</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.shared_libs">
<span class="fixed">⊕</span><b>shared_libs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.srcs">
<span class="fixed">⊕</span><b>srcs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.exclude_srcs">
<span class="fixed">⊕</span><b>exclude_srcs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div></div>
<div class="accordion" id="python_binary_host.product_variables.featuretransformpackagename">
<span class="fixed">⊕</span><b>product_variables.featuretransformpackagename</b>
<i></i></div>
<div class="collapsible">
<div class="accordion" id="python_binary_host.shared_libs">
<span class="fixed">⊕</span><b>shared_libs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.srcs">
<span class="fixed">⊕</span><b>srcs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div></div>
<div class="accordion" id="python_binary_host.product_variables.malloc_low_memory">
<span class="fixed">⊕</span><b>product_variables.malloc_low_memory</b>
<i></i></div>
<div class="collapsible">
<div class="accordion" id="python_binary_host.shared_libs">
<span class="fixed">⊕</span><b>shared_libs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.srcs">
<span class="fixed">⊕</span><b>srcs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div></div>
<div class="accordion" id="python_binary_host.product_variables.native_coverage">
<span class="fixed">⊕</span><b>product_variables.native_coverage</b>
<i></i></div>
<div class="collapsible">
<div class="accordion" id="python_binary_host.srcs">
<span class="fixed">⊕</span><b>srcs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.exclude_srcs">
<span class="fixed">⊕</span><b>exclude_srcs</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div></div>
<div class="accordion" id="python_binary_host.product_variables.release_aidl_use_unfrozen">
<span class="fixed">⊕</span><b>product_variables.release_aidl_use_unfrozen</b>
<i></i></div>
<div class="collapsible">
<div class="accordion" id="python_binary_host.required">
<span class="fixed">⊕</span><b>required</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div>
<div class="accordion" id="python_binary_host.vintf_fragment_modules">
<span class="fixed">⊕</span><b>vintf_fragment_modules</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div></div>
<div class="accordion" id="python_binary_host.product_variables.selinuxignoreneverallows">
<span class="fixed">⊕</span><b>product_variables.selinuxignoreneverallows</b>
<i></i></div>
<div class="collapsible">
<div class="accordion" id="python_binary_host.required">
<span class="fixed">⊕</span><b>required</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.">
<span class="fixed"> </span><b> </b>
<i>[]string</i></div></div></div>
<div class="accordion" id="python_binary_host.product_variables.unbundled_build">
<span class="fixed">⊕</span><b>product_variables.unbundled_build</b>
<i></i></div>
<div class="collapsible">
<div class="accordion" id="python_binary_host.enabled">
<span class="fixed">⊕</span><b>enabled</b>
<i>Configurable[bool]</i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.Configurable[bool]">
<span class="fixed"> </span><b>Configurable[bool] </b>
<i>proptools.Configurable[bool]</i></div></div></div>
<div class="simple" id="python_binary_host.proprietary">
<span class="fixed"> </span><b>proprietary </b>
<i>bool</i>, whether this is a proprietary vendor module, and should be installed into /vendor
</div>
<div class="accordion" id="python_binary_host.proto">
<span class="fixed">⊕</span><b>proto</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.type">
<span class="fixed"> </span><b>type </b>
<i>string</i>, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
</div>
<div class="simple" id="python_binary_host.plugin">
<span class="fixed"> </span><b>plugin </b>
<i>string</i>, Proto plugin to use as the generator. Must be a cc_binary_host module.
</div>
<div class="simple" id="python_binary_host.include_dirs">
<span class="fixed"> </span><b>include_dirs </b>
<i>list of string</i>, list of directories that will be added to the protoc include paths.
</div>
<div class="simple" id="python_binary_host.local_include_dirs">
<span class="fixed"> </span><b>local_include_dirs </b>
<i>list of string</i>, list of directories relative to the bp file that will
be added to the protoc include paths.
</div>
<div class="simple" id="python_binary_host.canonical_path_from_root">
<span class="fixed"> </span><b>canonical_path_from_root </b>
<i>bool</i>, whether to identify the proto files from the root of the
source tree (the original method in Android, useful for
android-specific protos), or relative from where they were
specified (useful for external/third party protos).
This defaults to true today, but is expected to default to
false in the future.
</div></div>
<div class="simple" id="python_binary_host.ramdisk">
<span class="fixed"> </span><b>ramdisk </b>
<i>bool</i>, Whether this module is installed to ramdisk
</div>
<div class="simple" id="python_binary_host.recovery">
<span class="fixed"> </span><b>recovery </b>
<i>bool</i>, Whether this module is installed to recovery partition
</div>
<div class="simple" id="python_binary_host.required">
<span class="fixed"> </span><b>required </b>
<i>configurable list of string</i>, names of other modules to install if this module is installed
</div>
<div class="simple" id="python_binary_host.shared_libs">
<span class="fixed"> </span><b>shared_libs </b>
<i>list of string</i>, TODO: b/403060602 - add unit tests for this property and related code
list of shared libraries that should be packaged with the python code for this module.
</div>
<div class="simple" id="python_binary_host.soc_specific">
<span class="fixed"> </span><b>soc_specific </b>
<i>bool</i>, whether this module is specific to an SoC (System-On-a-Chip). When set to true,
it is installed into /vendor (or /system/vendor if vendor partition does not exist).
</div>
<div class="simple" id="python_binary_host.stem">
<span class="fixed"> </span><b>stem </b>
<i>string</i>, set the name of the output binary.
</div>
<div class="simple" id="python_binary_host.suffix">
<span class="fixed"> </span><b>suffix </b>
<i>string</i>, append to the name of the output binary.
</div>
<div class="simple" id="python_binary_host.system_dlkm_specific">
<span class="fixed"> </span><b>system_dlkm_specific </b>
<i>bool</i>, Install to partition system_dlkm when set to true.
</div>
<div class="simple" id="python_binary_host.system_ext_specific">
<span class="fixed"> </span><b>system_ext_specific </b>
<i>bool</i>, whether this module extends system. When set to true, it is installed into /system_ext
(or /system/system_ext if system_ext partition does not exist).
</div>
<div class="simple" id="python_binary_host.target">
<span class="fixed"> </span><b>target </b>
<i>interface</i>
</div>
<div class="accordion" id="python_binary_host.target.android">
<span class="fixed">⊕</span><b>target.android</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.compile_multilib">
<span class="fixed"> </span><b>compile_multilib </b>
<i>string</i>
</div>
<div class="simple" id="python_binary_host.enabled">
<span class="fixed"> </span><b>enabled </b>
<i>bool</i>
</div></div>
<div class="accordion" id="python_binary_host.target.host">
<span class="fixed">⊕</span><b>target.host</b>
<i></i></div>
<div class="collapsible">
<div class="simple" id="python_binary_host.compile_multilib">
<span class="fixed"> </span><b>compile_multilib </b>
<i>string</i>
</div></div>
<div class="simple" id="python_binary_host.target_required">
<span class="fixed"> </span><b>target_required </b>
<i>list of string</i>, names of other modules to install on target if this module is installed
</div>
<div class="simple" id="python_binary_host.team">
<span class="fixed"> </span><b>team </b>
<i>string</i>, The team (defined by the owner/vendor) who owns the property.
</div>
<div class="simple" id="python_binary_host.test_suites">
<span class="fixed"> </span><b>test_suites </b>
<i>list of string</i>, list of compatibility suites (for example "cts", "vts") that the module should be
installed into.
</div>
<div class="simple" id="python_binary_host.use_generic_config">
<span class="fixed"> </span><b>use_generic_config </b>
<i>bool</i>, Set to true if this module must be generic and does not require product-specific information.
To be included in the system image, this property must be set to true.
</div>
<div class="simple" id="python_binary_host.vendor">
<span class="fixed"> </span><b>vendor </b>
<i>bool</i>, whether this module is specific to an SoC (System-On-a-Chip). When set to true,
it is installed into /vendor (or /system/vendor if vendor partition does not exist).
Use `soc_specific` instead for better meaning.
</div>
<div class="simple" id="python_binary_host.vendor_dlkm_specific">
<span class="fixed"> </span><b>vendor_dlkm_specific </b>
<i>bool</i>, Install to partition vendor_dlkm when set to true.
</div>
<div class="simple" id="python_binary_host.vendor_ramdisk">
<span class="fixed"> </span><b>vendor_ramdisk </b>
<i>bool</i>, Whether this module is installed to vendor ramdisk
</div>
<div class="accordion" id="python_binary_host.version.py2">
<span class="fixed">⊕</span><b>version.py2</b>
<i>VersionProperties</i></div>
<div class="collapsible">Python2-specific properties, including whether Python2 is supported for this module
and version-specific sources, exclusions and dependencies.
<div class="simple" id="python_binary_host.enabled">
<span class="fixed"> </span><b>enabled </b>
<i>bool</i>, whether the module is required to be built with this version.
Defaults to true for Python 3, and false otherwise.
</div>
<div class="simple" id="python_binary_host.srcs">
<span class="fixed"> </span><b>srcs </b>
<i>list of string</i>, list of source files specific to this Python version.
Using the syntax ":module", srcs may reference the outputs of other modules that produce source files,
e.g. genrule or filegroup.
</div>
<div class="simple" id="python_binary_host.exclude_srcs">
<span class="fixed"> </span><b>exclude_srcs </b>
<i>list of string</i>, list of source files that should not be used to build the Python module for this version.
This is most useful to remove files that are not common to all Python versions.
</div>
<div class="simple" id="python_binary_host.libs">
<span class="fixed"> </span><b>libs </b>
<i>list of string</i>, list of the Python libraries used only for this Python version.
</div>
<div class="simple" id="python_binary_host.embedded_launcher">
<span class="fixed"> </span><b>embedded_launcher </b>
<i>bool</i>, whether the binary is required to be built with embedded launcher for this version, defaults to true.
</div></div>
<div class="accordion" id="python_binary_host.version.py3">
<span class="fixed">⊕</span><b>version.py3</b>
<i>VersionProperties</i></div>
<div class="collapsible">Python3-specific properties, including whether Python3 is supported for this module
and version-specific sources, exclusions and dependencies.
<div class="simple" id="python_binary_host.enabled">
<span class="fixed"> </span><b>enabled </b>
<i>bool</i>, whether the module is required to be built with this version.
Defaults to true for Python 3, and false otherwise.
</div>
<div class="simple" id="python_binary_host.srcs">
<span class="fixed"> </span><b>srcs </b>
<i>list of string</i>, list of source files specific to this Python version.
Using the syntax ":module", srcs may reference the outputs of other modules that produce source files,
e.g. genrule or filegroup.
</div>
<div class="simple" id="python_binary_host.exclude_srcs">
<span class="fixed"> </span><b>exclude_srcs </b>
<i>list of string</i>, list of source files that should not be used to build the Python module for this version.
This is most useful to remove files that are not common to all Python versions.
</div>
<div class="simple" id="python_binary_host.libs">
<span class="fixed"> </span><b>libs </b>
<i>list of string</i>, list of the Python libraries used only for this Python version.
</div>
<div class="simple" id="python_binary_host.embedded_launcher">
<span class="fixed"> </span><b>embedded_launcher </b>
<i>bool</i>, whether the binary is required to be built with embedded launcher for this version, defaults to true.
</div></div>
<div class="simple" id="python_binary_host.vintf_fragment_modules">
<span class="fixed"> </span><b>vintf_fragment_modules </b>
<i>configurable list of string</i>, vintf_fragment Modules required from this module.
</div>
<div class="simple" id="python_binary_host.vintf_fragments">
<span class="fixed"> </span><b>vintf_fragments </b>
<i>configurable list of string</i>, VINTF manifest fragments to be installed if this module is installed
</div>
<div class="simple" id="python_binary_host.visibility">
<span class="fixed"> </span><b>visibility </b>
<i>list of string</i>, Controls the visibility of this module to other modules. Allowable values are one or more of
these formats:
<pre>
["//visibility:public"]: Anyone can use this module.
["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
this module.
["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
Can only be used at the beginning of a list of visibility rules.
["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
other/package (defined in some/package/*.bp and other/package/*.bp) have access to
this module. Note that sub-packages do not have access to the rule; for example,
//some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
is a special module and must be used verbatim. It represents all of the modules in the
package.
["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
or other or in one of their sub-packages have access to this module. For example,
//project:rule, //project/library:lib or //other/testing/internal:munge are allowed
to depend on this rule (but not //independent:evil)
["//project"]: This is shorthand for ["//project:__pkg__"]
[":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
//project is the module's package. e.g. using [":__subpackages__"] in
packages/apps/Settings/Android.bp is equivalent to
//packages/apps/Settings:__subpackages__.
["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
for now. It is an error if it is used in a module.
</pre>
If a module does not specify the `visibility` property then it uses the
`default_visibility` property of the `package` module in the module's package.
If the `default_visibility` property is not set for the module's package then
it will use the `default_visibility` of its closest ancestor package for which
a `default_visibility` property is specified.
If no `default_visibility` property can be found then the module uses the
global default of `//visibility:legacy_public`.
The `visibility` property has no effect on a defaults module although it does
apply to any non-defaults module that uses it. To set the visibility of a
defaults module, use the `defaults_visibility` property on the defaults module;
not to be confused with the `default_visibility` property on the package module.
See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for
more details.
</div>
<p>
<h2 id="python_defaults">python_defaults</h2>
<div class="breadcrumb">
<a href=python.html#python_defaults.name>name</a>
, <a href=python.html#python_defaults.srcs>srcs</a>
, <a href=python.html#python_defaults.exclude_srcs>exclude_srcs</a>
, <a href=python.html#python_defaults.defaults>defaults</a>
, <a href=python.html#python_defaults.host_supported>host_supported</a>
, <a href=python.html#python_defaults.device_supported>device_supported</a>
, <a href=python.html#python_defaults.apex_available>apex_available</a>
, <a href=python.html#python_defaults.arch>arch</a>
, <a href=python.html#python_defaults.auto_gen_config>auto_gen_config</a>
, <a href=python.html#python_defaults.autorun>autorun</a>
, <a href=python.html#python_defaults.compile_multilib>compile_multilib</a>
, <a href=python.html#python_defaults.data>data</a>
, <a href=python.html#python_defaults.debug_ramdisk>debug_ramdisk</a>
, <a href=python.html#python_defaults.defaults_visibility>defaults_visibility</a>
, <a href=python.html#python_defaults.device_common_data>device_common_data</a>
, <a href=python.html#python_defaults.device_first_data>device_first_data</a>
, <a href=python.html#python_defaults.device_specific>device_specific</a>
, <a href=python.html#python_defaults.dist>dist</a>
, <a href=python.html#python_defaults.dists>dists</a>
, <a href=python.html#python_defaults.embedded_launcher>embedded_launcher</a>
, <a href=python.html#python_defaults.enabled>enabled</a>
, <a href=python.html#python_defaults.host_required>host_required</a>
, <a href=python.html#python_defaults.init_rc>init_rc</a>
, <a href=python.html#python_defaults.is_internal>is_internal</a>
, <a href=python.html#python_defaults.java_data>java_data</a>
, <a href=python.html#python_defaults.libs>libs</a>
, <a href=python.html#python_defaults.licenses>licenses</a>
, <a href=python.html#python_defaults.main>main</a>
, <a href=python.html#python_defaults.multilib>multilib</a>
, <a href=python.html#python_defaults.native_bridge_supported>native_bridge_supported</a>
, <a href=python.html#python_defaults.no_full_install>no_full_install</a>
, <a href=python.html#python_defaults.odm_dlkm_specific>odm_dlkm_specific</a>
, <a href=python.html#python_defaults.overrides>overrides</a>
, <a href=python.html#python_defaults.owner>owner</a>
, <a href=python.html#python_defaults.pkg_path>pkg_path</a>
, <a href=python.html#python_defaults.product_specific>product_specific</a>
, <a href=python.html#python_defaults.product_variables.arc>product_variables.arc</a>
, <a href=python.html#python_defaults.product_variables.debuggable>product_variables.debuggable</a>
, <a href=python.html#python_defaults.product_variables.featuretransformpackagename>product_variables.featuretransformpackagename</a>
, <a href=python.html#python_defaults.product_variables.malloc_low_memory>product_variables.malloc_low_memory</a>
, <a href=python.html#python_defaults.product_variables.native_coverage>product_variables.native_coverage</a>
, <a href=python.html#python_defaults.product_variables.release_aidl_use_unfrozen>product_variables.release_aidl_use_unfrozen</a>
, <a href=python.html#python_defaults.product_variables.selinuxignoreneverallows>product_variables.selinuxignoreneverallows</a>
, <a href=python.html#python_defaults.product_variables.unbundled_build>product_variables.unbundled_build</a>
, <a href=python.html#python_defaults.proprietary>proprietary</a>
, <a href=python.html#python_defaults.proto>proto</a>
, <a href=python.html#python_defaults.ramdisk>ramdisk</a>
, <a href=python.html#python_defaults.recovery>recovery</a>
, <a href=python.html#python_defaults.required>required</a>
, <a href=python.html#python_defaults.shared_libs>shared_libs</a>
, <a href=python.html#python_defaults.soc_specific>soc_specific</a>
, <a href=python.html#python_defaults.stem>stem</a>
, <a href=python.html#python_defaults.suffix>suffix</a>
, <a href=python.html#python_defaults.system_dlkm_specific>system_dlkm_specific</a>
, <a href=python.html#python_defaults.system_ext_specific>system_ext_specific</a>
, <a href=python.html#python_defaults.target>target</a>
, <a href=python.html#python_defaults.target.android>target.android</a>
, <a href=python.html#python_defaults.target.host>target.host</a>
, <a href=python.html#python_defaults.target_required>target_required</a>
, <a href=python.html#python_defaults.team>team</a>
, <a href=python.html#python_defaults.test_suites>test_suites</a>
, <a href=python.html#python_defaults.use_generic_config>use_generic_config</a>
, <a href=python.html#python_defaults.vendor>vendor</a>
, <a href=python.html#python_defaults.vendor_dlkm_specific>vendor_dlkm_specific</a>
, <a href=python.html#python_defaults.vendor_ramdisk>vendor_ramdisk</a>
, <a href=python.html#python_defaults.version.py2>version.py2</a>
, <a href=python.html#python_defaults.version.py3>version.py3</a>
, <a href=python.html#python_defaults.vintf_fragment_modules>vintf_fragment_modules</a>
, <a href=python.html#python_defaults.vintf_fragments>vintf_fragments</a>
, <a href=python.html#python_defaults.visibility>visibility</a></div>
<div class="simple" id="python_defaults.name">
<span class="fixed"> </span><b>name </b>
<i>string</i>, The name of the module. Must be unique across all modules.
</div>
<div class="simple" id="python_defaults.srcs">
<span class="fixed"> </span><b>srcs </b>
<i>list of string</i>, list of source (.py) files compatible both with Python2 and Python3 used to compile the
Python module.