forked from conda/constructor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstruct.schema.json
More file actions
1381 lines (1381 loc) · 53.4 KB
/
Copy pathconstruct.schema.json
File metadata and controls
1381 lines (1381 loc) · 53.4 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
{
"$defs": {
"BuildOutputs": {
"description": "Allowed keys in 'build_outputs' setting.",
"enum": [
"hash",
"info.json",
"licenses",
"lockfile",
"pkgs_list"
],
"title": "BuildOutputs",
"type": "string"
},
"ChannelRemap": {
"additionalProperties": false,
"properties": {
"dest": {
"description": "Target channel, after being mapped",
"minLength": 1,
"title": "Dest",
"type": "string"
},
"src": {
"description": "Source channel, before being mapped",
"minLength": 1,
"title": "Src",
"type": "string"
}
},
"required": [
"src",
"dest"
],
"title": "ChannelRemap",
"type": "object"
},
"CondaInitialization": {
"enum": [
"classic",
"condabin"
],
"title": "CondaInitialization",
"type": "string"
},
"ExtraEnv": {
"additionalProperties": false,
"properties": {
"channels": {
"anyOf": [
{
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Solve specs using these channels; if not provided, the global value is used. To override inheritance, set it to an empty list.",
"title": "Channels"
},
"channels_remap": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/ChannelRemap"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Same as global option, for this env; if not provided, the global value is used. To override inheritance, set it to an empty list.",
"title": "Channels Remap"
},
"environment": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Same as global option, for this environment",
"title": "Environment"
},
"environment_file": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Same as global option, for this environment",
"title": "Environment File"
},
"exclude": {
"anyOf": [
{
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Same as the global option, but for this env. See global option for notes about overrides.",
"title": "Exclude"
},
"freeze_env": {
"anyOf": [
{
"additionalProperties": {
"additionalProperties": true,
"type": "object"
},
"propertyNames": {
"const": "conda"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "Same as `freeze_base`, but for this conda environment.",
"title": "Freeze Env"
},
"menu_packages": {
"anyOf": [
{
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Same as the global option, but for this env. If not provided, global value is _not_ used.",
"title": "Menu Packages"
},
"specs": {
"default": [],
"description": "Which packages to install in this environment",
"items": {
"minLength": 1,
"type": "string"
},
"title": "Specs",
"type": "array"
},
"user_requested_specs": {
"anyOf": [
{
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Same as the global option, but for this env. If not provided, global value is _not_ used.",
"title": "User Requested Specs"
}
},
"title": "ExtraEnv",
"type": "object"
},
"GuaranteedAlgorithmsEnum": {
"enum": [
"blake2b",
"blake2s",
"md5",
"sha1",
"sha224",
"sha256",
"sha384",
"sha3_224",
"sha3_256",
"sha3_384",
"sha3_512",
"sha512",
"shake_128",
"shake_256"
],
"title": "GuaranteedAlgorithmsEnum",
"type": "string"
},
"HashBuildOutput": {
"additionalProperties": false,
"description": "The hash of the installer files. The output file is designed to work with the `shasum` command and thus has POSIX line endings, including on Windows",
"properties": {
"hash": {
"$ref": "#/$defs/_HashBuildOutputOptions"
}
},
"required": [
"hash"
],
"title": "HashBuildOutput",
"type": "object"
},
"InfoJsonBuildOutput": {
"additionalProperties": false,
"description": "The internal `info` object, serialized to JSON. Takes no options.",
"properties": {
"info_json": {
"$ref": "#/$defs/_InfoJsonBuildOutputOptions"
}
},
"required": [
"info_json"
],
"title": "InfoJsonBuildOutput",
"type": "object"
},
"InstallerTypes": {
"enum": [
"all",
"exe",
"pkg",
"sh"
],
"title": "InstallerTypes",
"type": "string"
},
"LicensesBuildOutput": {
"additionalProperties": false,
"description": "Generate a JSON file with the licensing details of all included packages.",
"properties": {
"licenses": {
"$ref": "#/$defs/_LicensesBuildOutputOptions"
}
},
"required": [
"licenses"
],
"title": "LicensesBuildOutput",
"type": "object"
},
"LockfileBuildOutput": {
"additionalProperties": false,
"description": "An `@EXPLICIT` lockfile for a given environment.",
"properties": {
"lockfile": {
"$ref": "#/$defs/_LockfileBuildOutputOptions"
}
},
"required": [
"lockfile"
],
"title": "LockfileBuildOutput",
"type": "object"
},
"PkgDomains": {
"enum": [
"enable_anywhere",
"enable_currentUserHome",
"enable_localSystem"
],
"title": "PkgDomains",
"type": "string"
},
"PkgsListBuildOutput": {
"additionalProperties": false,
"description": "The list of packages contained in a given environment.",
"properties": {
"pkgs_list": {
"$ref": "#/$defs/_PkgsListBuildOutputOptions"
}
},
"required": [
"pkgs_list"
],
"title": "PkgsListBuildOutput",
"type": "object"
},
"WinSignTools": {
"enum": [
"azuresigntool",
"azuresigntool.exe",
"signtool",
"signtool.exe"
],
"title": "WinSignTools",
"type": "string"
},
"_HashBuildOutputOptions": {
"additionalProperties": false,
"properties": {
"algorithm": {
"anyOf": [
{
"$ref": "#/$defs/GuaranteedAlgorithmsEnum"
},
{
"items": {
"$ref": "#/$defs/GuaranteedAlgorithmsEnum"
},
"type": "array"
}
],
"description": "The hash algorithm. Must be one of `hashlib.algorithms_guaranteed`.",
"title": "Algorithm"
}
},
"required": [
"algorithm"
],
"title": "_HashBuildOutputOptions",
"type": "object"
},
"_InfoJsonBuildOutputOptions": {
"additionalProperties": false,
"properties": {},
"title": "_InfoJsonBuildOutputOptions",
"type": "object"
},
"_LicensesBuildOutputOptions": {
"additionalProperties": false,
"properties": {
"include_text": {
"default": false,
"description": "Whether to dump the license text in the JSON. If false, only the path will be included.",
"title": "Include Text",
"type": "boolean"
},
"text_errors": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "How to handle decoding errors when reading the license text. Only relevant if `include_text` is True. Any str accepted by `open()`'s 'errors' argument is valid. See https://docs.python.org/3/library/functions.html#open.",
"title": "Text Errors"
}
},
"title": "_LicensesBuildOutputOptions",
"type": "object"
},
"_LockfileBuildOutputOptions": {
"additionalProperties": false,
"properties": {
"env": {
"default": "base",
"description": "Name of an environment in 'extra_envs' to be exported.",
"minLength": 1,
"title": "Env",
"type": "string"
}
},
"title": "_LockfileBuildOutputOptions",
"type": "object"
},
"_PkgsListBuildOutputOptions": {
"additionalProperties": false,
"properties": {
"env": {
"default": "base",
"description": "Name of an environment in 'extra_envs' to be exported.",
"minLength": 1,
"title": "Env",
"type": "string"
}
},
"title": "_PkgsListBuildOutputOptions",
"type": "object"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"description": "Schema for constructor.yaml input files.",
"properties": {
"$schema": {
"default": "https://schemas.conda.org/constructor/v0/construct.schema.json",
"description": "JSON Schema URL or path used to validate this input file.",
"minLength": 1,
"title": "$Schema",
"type": "string"
},
"attempt_hardlinks": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
],
"default": true,
"deprecated": true,
"description": "_Obsolete_. The current version of constructor relies on the standalone conda executable for its installation behavior. This option is now ignored with a warning.",
"title": "Attempt Hardlinks"
},
"batch_mode": {
"default": false,
"description": "Only affects `.sh` installers. If `False`, the installer launches an interactive wizard guiding the user through the available options. If `True`, the installer runs automatically as if `-b` was passed.",
"title": "Batch Mode",
"type": "boolean"
},
"build_outputs": {
"default": [],
"description": "Additional artifacts to be produced after building the installer. It expects either a list of strings or single-key dictionaries.\nAllowed strings / keys: `hash`, `info.json`, `licenses`, `lockfile`, `pkgs_list`.",
"items": {
"anyOf": [
{
"$ref": "#/$defs/BuildOutputs"
},
{
"$ref": "#/$defs/HashBuildOutput"
},
{
"$ref": "#/$defs/InfoJsonBuildOutput"
},
{
"$ref": "#/$defs/PkgsListBuildOutput"
},
{
"$ref": "#/$defs/LockfileBuildOutput"
},
{
"$ref": "#/$defs/LicensesBuildOutput"
}
]
},
"title": "Build Outputs",
"type": "array"
},
"channels": {
"default": [],
"description": "The conda channels from which packages are retrieved. At least one channel must be supplied, either in `channels` or `channels_remap`.\nSee notes in `channels_remap` for details about local channels.",
"items": {
"minLength": 1,
"type": "string"
},
"title": "Channels",
"type": "array"
},
"channels_remap": {
"default": [],
"description": "A list of `src/dest` channel URL pairs. When building the installer, conda will use the `src` channels to solve and fetch the packages. However, the resulting installation will see the packages as coming from the `dest` equivalent. This allows an installer to be built against a different set of channels than will be present when the installer is actually used. Example use:\n```yaml\nchannels_remap:\n - src: file:///tmp/a3/conda-bld # [unix]\n dest: https://repo.anaconda.com/pkgs/main # [unix]\n - src: file:///D:/tmp/a3/conda-bld # [win]\n dest: https://repo.anaconda.com/pkgs/main # [win]\n```\nAt least one channel must be supplied, either in `channels` or `channels_remap`.",
"items": {
"$ref": "#/$defs/ChannelRemap"
},
"title": "Channels Remap",
"type": "array"
},
"check_path_length": {
"default": false,
"deprecated": true,
"description": "_Deprecated_. Path length validation is now always performed using the computed maximum relative path length from the package contents. This option will be removed in a future version. (Windows only).",
"title": "Check Path Length",
"type": "boolean"
},
"check_path_spaces": {
"default": true,
"description": "Check if the path where the distribution is installed contains spaces. To allow installations with spaces, change to False. Note that:\n- A recent conda-standalone (>=22.11.1) or equivalent is needed for full support.\n- `conda` cannot be present in the `base` environment",
"title": "Check Path Spaces",
"type": "boolean"
},
"company": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Name of the company/entity responsible for the installer.",
"title": "Company"
},
"conclusion_file": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "If `installer_type` is `pkg` on macOS, this message will be shown at the end of the installer upon success. File can be plain text (.txt), rich text (.rtf) or HTML (.html). If both `conclusion_file` and `conclusion_text` are provided, `conclusion_file` takes precedence.\nIf the installer is for Windows, the file type must be nsi.",
"title": "Conclusion File"
},
"conclusion_text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "A message that will be shown at the end of the installer upon success. The behaviour is slightly different across installer types:\n- PKG: If this key is missing, it defaults to a message about Anaconda Cloud. You can disable it altogether so it defaults to the system message if you set this key to `\"\"` (empty string).\n- EXE: The first line will be used as a title. The following lines will be used as text.",
"title": "Conclusion Text"
},
"conda_channel_alias": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The channel alias that would be assumed for the created installer (only useful if it includes `conda`).",
"title": "Conda Channel Alias"
},
"conda_default_channels": {
"default": [],
"description": "If this value is provided as well as `write_condarc`, then the channels in this list will be included as the value of the `default_channels:` option in the environment's `.condarc` file. This will have an impact only if `conda` is included in the environmnent.",
"items": {
"minLength": 1,
"type": "string"
},
"title": "Conda Default Channels",
"type": "array"
},
"condarc": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "If set, a `.condarc` file is written to the base environment containing the contents of this value. The value can either be a string (likely a multi-line string) or a dictionary, which will be converted to a YAML string for writing. _Note:_ if this option is used, then all other options related to the construction of a `.condarc` file (`write_condarc`, `conda_default_channels`, etc.) are ignored.",
"title": "Condarc"
},
"default_image_color": {
"default": "blue",
"description": "The color of the default images (when not providing explicit image files) used on Windows.",
"enum": [
"red",
"green",
"blue",
"yellow"
],
"title": "Default Image Color",
"type": "string"
},
"default_location_pkg": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Default installation subdirectory in the chosen volume. In PKG installers, default installation locations are configured differently. The user can choose between a \"Just me\" installation (which would result in `~/<PKG_NAME>`) or another volume (which defaults to `<VOLUME>/<PKG_NAME>`). If you want a different default, you can add a middle component with this option, let's call it `location`. It would result in these default values: `~/<LOCATION>/<PKG_NAME>` for \"Just me\", `<VOLUME>/<LOCATION>/<PKG_NAME>` for custom volumes. For example, setting this option to `/Library` in a \"Just me\" installation will give you `~/Library/<PKG_NAME>`. Internally, this is passed to `pkgbuild --install-location`. macOS only.",
"title": "Default Location Pkg"
},
"default_prefix": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Set default install prefix. On Linux, if not provided, the default prefix is `${HOME}/<NAME>` (or, if `HOME` is not set, `/opt/<NAME>`). On Windows, this is used only for \"Just Me\" installations; for \"All Users\" installations, use the `default_prefix_all_users` key. If not provided, the default prefix is `%USERPROFILE%\\<NAME>`. Environment variables will be expanded at install time.",
"title": "Default Prefix"
},
"default_prefix_all_users": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Set default installation prefix for All Users installations. If not provided, the installation prefix will be `%ALLUSERSPROFILE%\\<NAME>`. Environment variables will be expanded at install time. Windows only.",
"title": "Default Prefix All Users"
},
"default_prefix_domain_user": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Set default installation prefix for domain users. If not provided, the installation prefix for domain users will be `%LOCALAPPDATA%\\<NAME>`. By default, it is different from the `default_prefix` value to avoid installing the distribution into the roaming profile. Environment variables will be expanded at install time. Windows only.",
"title": "Default Prefix Domain User"
},
"environment": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Name of the environment to construct from. If this option is present, the `specs` argument will be ignored. Using this option allows the user to curate the enviromment interactively using standard `conda` commands, and run constructor with full confidence that the exact environment will be reproduced.",
"title": "Environment"
},
"environment_file": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to an environment file (TXT or YAML) to construct from. If this option is present, the `specs` argument will be ignored. Instead, constructor will call conda to create a temporary environment, constructor will build an installer from that, and the temporary environment will be removed. This ensures that constructor is using the precise local conda configuration to discover and install the packages. The created environment MUST include `python`.\nSee notes about the solver in the `specs` field for more information.",
"title": "Environment File"
},
"exclude": {
"default": [],
"description": "A list of package names to be excluded after the `specs` have been resolved. For example, you can say that `readline` should be excluded, even though it is contained as a result of resolving the specs for `python 2.7`.",
"items": {
"minLength": 1,
"type": "string"
},
"title": "Exclude",
"type": "array"
},
"extra_envs": {
"default": {},
"description": "Create more environments in addition to the default `base` provided by `specs`, `environment` or `environment_file`.\nNotes:\n- `ignore_duplicate_files` will always be considered `True` if `extra_envs` is in use.\n- `conda` needs to be present in the `base` environment (via `specs`)\n- If a global `exclude` option is used, it will have an effect on the environments created by `extra_envs` too. For example, if the global environment excludes `tk`, none of the extra environments will have it either. Unlike the global option, an error will not be thrown if the excluded package is not found in the packages required by the extra environment. To override the global `exclude` value, use an empty list `[]`.",
"patternProperties": {
"^[^/:# ]+$": {
"$ref": "#/$defs/ExtraEnv"
}
},
"propertyNames": {
"minLength": 1
},
"title": "Extra Envs",
"type": "object"
},
"extra_files": {
"default": [],
"description": "Extra, non-packaged files that should be added to the installer. If provided as relative paths, they will be considered relative to the directory where `construct.yaml` is. This setting can be passed as a list of:\n- `str`: each found file will be copied to the root prefix\n- `Mapping[str, str]`: map of path in disk to path in prefix.",
"items": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"additionalProperties": {
"minLength": 1,
"type": "string"
},
"propertyNames": {
"minLength": 1
},
"type": "object"
}
]
},
"title": "Extra Files",
"type": "array"
},
"freeze_base": {
"anyOf": [
{
"additionalProperties": {
"additionalProperties": true,
"type": "object"
},
"propertyNames": {
"const": "conda"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "Protects the conda base environment against modifications by supported package managers.\nSupported package managers: - `conda`: Protects against conda modifications\nFor `conda`, the dictionary is written into the `frozen` marker file. See CEP-22 for the `frozen` marker file specification. For example:\n```\nfreeze_base:\n conda:\n message: \"This base environment is frozen and cannot be modified.\"\n```",
"title": "Freeze Base"
},
"header_image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Like `welcome_image` for Windows, re-sized to 150 x 57 pixels.",
"title": "Header Image"
},
"header_image_text": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "If `header_image` is not provided, use this text when generating the image (Windows only). Defaults to `name`.",
"title": "Header Image Text"
},
"icon_image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Like `welcome_image` for Windows, re-sized to 256 x 256 pixels.",
"title": "Icon Image"
},
"ignore_duplicate_files": {
"default": true,
"description": "By default, constructor will warn you when adding packages with duplicate files in them. Setting this option to false will raise an error instead.",
"title": "Ignore Duplicate Files",
"type": "boolean"
},
"initialize_by_default": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Default value for the option added by `initialize_conda`. The default is true for PKG installers, and false for EXE and SH shell installers. The user is able to change the default during interactive installations. Non-interactive installations are not affected by this value: users must explicitly request to add to `PATH` via CLI options. NOTE: For Windows, `/AddToPath` is disabled when `/InstallationType=AllUsers`.\nOnly applies if `initialize_conda` is not false.",
"title": "Initialize By Default"
},
"initialize_conda": {
"anyOf": [
{
"$ref": "#/$defs/CondaInitialization"
},
{
"type": "boolean"
}
],
"default": true,
"description": "Add an option to the installer so the user can choose whether to run `conda init` after the installation (Unix), or to add certain subdirectories of the installation to PATH (Windows). Requires `conda` to be part of the `base` environment. Valid options:\n- `classic` or `True`: runs `conda init` on Unix, which injects a shell function in the shell profiles. On Windows, it adds `$INSTDIR`, `$INSTDIR/Scripts`, `$INSTDIR/Library/bin` to `PATH`. This is the default.\n- `condabin`: only adds `$INSTDIR/condabin` to `PATH`. On Unix, `conda>=25.5.0` is required in `base`.\n- `False`: the installer doesn't perform initialization.\nSee also `initialize_by_default`.",
"title": "Initialize Conda"
},
"install_in_dependency_order": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
],
"default": true,
"deprecated": true,
"description": "_Obsolete_. The current version of constructor relies on the standalone conda executable for its installation behavior. This option is now ignored with a warning.",
"title": "Install In Dependency Order"
},
"install_path_exists_error_text": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Error message that will be shown if the installation path already exists. You cannot use double quotes or newlines. The placeholder `{CHOSEN_PATH}` is available and set to the destination causing the error. Defaults to:\n> '{CHOSEN_PATH}' already exists. Please, relaunch the installer and choose another location in the Destination Select step.\n(PKG only)",
"title": "Install Path Exists Error Text"
},
"installer_filename": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The filename of the installer being created. If not supplied, a reasonable default will be determined by the `name`, `version`, `platform`, and `installer_type`.",
"title": "Installer Filename"
},
"installer_type": {
"anyOf": [
{
"$ref": "#/$defs/InstallerTypes"
},
{
"items": {
"$ref": "#/$defs/InstallerTypes"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "The type of the installer being created. Possible values are:\n- `sh`: shell-based installer for Linux or macOS\n- `pkg`: macOS GUI installer built with Apple's `pkgbuild`\n- `exe`: Windows GUI installer built with NSIS\nThe default type is `sh` on Linux and macOS, and `exe` on Windows. A special value of `all` builds _both_ `sh` and `pkg` installers on macOS, as well as `sh` on Linux and `exe` on Windows.",
"title": "Installer Type"
},
"keep_pkgs": {
"default": false,
"description": "If `False`, the package cache in the `pkgs` subdirectory is removed when the installation process is complete. If `True`, this subdirectory and its contents are preserved. If `keep_pkgs` is `False`, Unix `.sh` and Windows `.exe` installers offer a command-line option (`-k` and `/KeepPkgCache`, respectively) to preserve the package cache.",
"title": "Keep Pkgs",
"type": "boolean"
},
"license_file": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to the license file being displayed by the installer during the install process. It must be plain text (.txt) for shell-based installers. For PKG, .txt, .rtf and .html are supported. On Windows, .txt and .rtf are supported.",
"title": "License File"
},
"menu_packages": {
"anyOf": [
{
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "A list of packages with menu items to be installed. The packages must have necessary metadata in `Menu/<package name>.json`. By default, all menu items found in the installation will be created; supplying this list allows a subset to be selected instead. If an empty list is supplied, no shortcuts will be created.\nIf all environments (`extra_envs` included) set `menu_packages` to an empty list, no UI options about shortcuts will be offered to the user.\nNote: This option is not fully implemented when `micromamba` is used as the `--conda-exe` binary. The only accepted value is an empty list (`[]`).",
"title": "Menu Packages"
},
"mirrored_channels": {
"additionalProperties": {
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
"default": {},
"description": "A mapping of channels to their mirror URLs. Each channel maps to a list of mirror URLs that will be used as fallbacks. The mirrored channels will be included in the `.condarc` file of the installer.\nRequires `mamba` to be listed in the `base` environment, and `write_condarc` to be `True`.\nExample use:\n```yaml\nmirrored_channels:\n conda-forge:\n - \"https://conda.anaconda.org/conda-forge\"\n - \"https://conda.anaconda.org/conda-forge-mirror\"\n defaults:\n - \"https://repo.anaconda.com/pkgs/main\"\n - \"https://repo.anaconda.com/pkgs/main-mirror\"\n```",
"propertyNames": {
"minLength": 1
},
"title": "Mirrored Channels",
"type": "object"
},
"name": {
"description": "Name of the installer. Names may be composed of letters, numbers, underscores, dashes, and periods, but must not begin or end with a dash or period.",
"minLength": 1,
"pattern": "^[a-zA-Z0-9_]([a-zA-Z0-9._-]*[a-zA-Z0-9_])?$",
"title": "Name",
"type": "string"
},
"notarization_identity_name": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "If the pkg installer is going to be signed with `signing_identity_name`, you can also prepare the bundle for notarization. This will use Apple's `codesign` to sign `conda.exe`. For this, you need an \"Application certificate\" (different from the \"Installer certificate\" mentioned above). Common values for this option follow the format `Developer ID Application: Name of the owner (XXXXXX)`.",
"title": "Notarization Identity Name"
},
"nsis_template": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to an NSIS template file to use instead of the default template. (Windows only)",
"title": "Nsis Template"
},
"pkg_domains": {
"additionalProperties": {
"type": "boolean"
},
"default": {
"enable_anywhere": true,
"enable_currentUserHome": true
},
"description": "The domains the package can be installed into. For a detailed explanation, see: https://developer.apple.com/library/archive/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html constructor defaults to `enable_anywhere=true` and `enable_currentUserHome=true`. `enable_localSystem` should not be set to true unless `default_location_pkg` is set as well. macOS only.",
"propertyNames": {
"$ref": "#/$defs/PkgDomains"
},
"title": "Pkg Domains",
"type": "object"
},
"pkg_name": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Internal identifier for the installer. This is used in the build prefix and will determine part of the default location path. Combine with `default_location_pkg` for more flexibility. If not provided, the value of `name` will be used. (macOS only)",
"title": "Pkg Name"
},
"post_install": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to a post-install script. Some notes:\n- For Unix `.sh` installers, the shebang line is respected if present; otherwise, the script is run by the POSIX shell `sh`. Note that the use of a shebang can reduce the portability of the installer. The installation path is available as `${PREFIX}`. Installer metadata is available in the `${INSTALLER_NAME}`, `${INSTALLER_VER}`, `${INSTALLER_PLAT}` environment variables. `${INSTALLER_TYPE}` is set to `SH`. `${INSTALLER_UNATTENDED}` will be `\"1\"` in batch mode (`-b`), `\"0\"` otherwise.\n- For PKG installers, the shebang line is respected if present; otherwise, `bash` is used. The same variables mentioned for `sh` installers are available here. `${INSTALLER_TYPE}` is set to `PKG`. `${INSTALLER_UNATTENDED}` will be `\"1\"` for command line installs, `\"0\"` otherwise.\n- For Windows `.exe` installers, the script must be a `.bat` file. Installation path is available as `%PREFIX%`. Metadata about the installer can be found in the `%INSTALLER_NAME%`, `%INSTALLER_VER%`, `%INSTALLER_PLAT%` environment variables. `%INSTALLER_TYPE%` is set to `EXE`. `%INSTALLER_UNATTENDED%` will be `\"1\"` in silent mode (`/S`), `\"0\"` otherwise.\nIf necessary, you can activate the installed `base` environment like this:\n- Unix: `. \"$PREFIX/etc/profile.d/conda.sh\" && conda activate \"$PREFIX\"`\n- Windows: `call \"%PREFIX%\\Scripts\\activate.bat\"`",
"title": "Post Install"