This document describes each of they keys in the construct.yaml
file,
which is the main configuration file of a constructor configuration
directory.
All keys are optional, except otherwise noted. Also, the keys specs
and packages
take either a list of items, or a path to a file,
which contains one item per line (excluding lines starting with #
).
Also note, that any line in construct.yaml
may contain a selector at the
end, in order to allow customization for selected platforms.
required: True
argument type(s): str
,
Name of the installer. May also contain uppercase letter. The installer name is independent of the names of any of the conda packages the installer is composed of.
required: True
argument type(s): str
,
Version of the installer. Just like the installer name, this version is independent of any conda package versions contained in the installer.
required: False
argument type(s): list
,
The conda channels from which packages are retrieved, when using the specs
key below, but also when using the packages
key ,unless the full URL is
given in the packages
list (see below).
required: False
argument type(s): list
,
List of (src, dest)
channels, from which, channels from src
are also
considered while running solver, but are replaced by corresponding values from
dest when writing urls{,.txt}
. Example use:
channels_remap:
-
src: file:///tmp/a3/conda-bld
dest: https://repo.anaconda.com/pkgs/main
-
src: file:///tmp/r/conda-bld
dest: https://repo.anaconda.com/pkgs/r
required: False
argument type(s): list
, str
,
List of package specifications, e.g. python 2.7*
, pyzmq
or numpy >=1.8
.
This list of specifications if given to the conda resolver (as if you were
to create a new environment with those specs). The packages may also be
specified by their entire URL,
e.g.https://repo.anaconda.com/pkgs/main/osx-64/openssl-1.0.2o-h26aff7b_0.tar.bz2
.
required: False
argument type(s): list
, str
,
List of package specifications to be recorded as "user-requested" for the initial environment in conda's history file. If not given, user-requested specs will fall back to 'specs'.
required: False
argument type(s): list
,
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
.
required: False
argument type(s): list
,
Packages for menu items will be installed (if the conda package contains the necessary metadata in "Menu/.json"). Menu items are currently only supported on Windows. By default, all menu items will be installed.
required: False
argument type(s): bool
,
By default, constructor will error out when adding packages with duplicate files in them. Enable this option to warn instead and continue.
required: False
argument type(s): bool
,
By default the conda packages included in the created installer are installed
in alphabetical order, Python is always installed first for technical
reasons. Using this option, the packages are installed in their dependency
order (unless the explicit list in packages
is used).
required: False
argument type(s): list
,
You can list conda channels here which will be the default conda channels of the created installer (if it includes conda).
required: False
argument type(s): str
,
The filename of the installer being created. A reasonable default filename
will determined by the name
, version
, platform and installer type.
required: False
argument type(s): str
,
The type of the installer being created. Possible values are "sh", "pkg", and "exe". By default, the type is "sh" on Unix, and "exe" on Windows.
required: False
argument type(s): str
,
Path to the license file being displayed by the installer during the install process.
required: False
argument type(s): bool
,
By default, no conda packages are preserved after running the created
installer in the pkgs
directory. Using this option changes the default
behavior.
required: False
argument type(s): str
,
By default, the MacOS pkg installer isn't signed. If an identity name is specified using this option, it will be used to sign the installer. Note that you will need to have a certificate and corresponding private key together called an 'identity' in one of your accessible keychains.
required: False
argument type(s): bool
,
By default, conda packages are extracted into the root environment and then
patched. Enabling this option will result into extraction of the packages into
the pkgs
directory and the files in the root environment will be hardlinks to
the files kept in the pkgs
directory and then patched accordingly.
required: False
argument type(s): bool
,
By default, no .condarc file is written. If set, a .condarc file is written to the base environment if there are any channels or conda_default_channels is set.
required: False
argument type(s): str
,
Name of the company/entity who is responsible for the installer.
required: False
argument type(s): str
,
Application name in the Windows "Programs and Features" control panel.
Defaults to ${NAME} ${VERSION} (Python ${PYVERSION} ${ARCH})
.
required: False
argument type(s): str
,
Path to a pre install (bash - Unix only) script.
required: False
argument type(s): str
,
Path to a post install (bash for Unix - .bat for Windows) script.
required: False
argument type(s): str
,
Short description of the "post_install" script to be displayed as label of the "Do not run post install script" checkbox in the windows installer. If used and not an empty string, the "Do not run post install script" checkbox will be displayed with this label.
required: False
argument type(s): str
,
Path to a pre uninstall (.bat for Windows) script. Only supported on Windows.
required: False
argument type(s): str
,
Path to an image (in any common image format .png
, .jpg
, .tif
, etc.)
which is used as the welcome image for the Windows installer.
The image is re-sized to 164 x 314 pixels.
By default, an image is automatically generated.
required: False
argument type(s): str
,
Like welcome_image
for Windows, re-sized to 150 x 57 pixels.
required: False
argument type(s): str
,
Like welcome_image
for Windows, re-sized to 256 x 256 pixels.
required: False
argument type(s): str
,
The color of the default images (when not providing explicit image files)
used on Windows. Possible values are red
, green
, blue
, yellow
.
The default is blue
.
required: False
argument type(s): str
,
If welcome_image
is not provided, use this text when generating the image
(Windows only). Defaults to name
.
required: False
argument type(s): str
,
If header_image
is not provided, use this text when generating the image
(Windows only). Defaults to name
.
required: False
argument type(s): bool
,
Default choice for whether to add the installation to the PATH environment variable. The user is still able to change this during interactive installation.
required: False
argument type(s): bool
,
Default choice for whether to register the installed Python instance as the system's default Python. The user is still able to change this during interactive installation. (Windows only)
aarch64
armv7l
linux
linux32
linux64
osx
ppc64le
unix
win
win32
win64
x86
x86_64