Modulemd.BuildConfig¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Modulemd.BuildConfig(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
Initialize a new
Modulemd.BuildConfig
representing a module build configuration.New in version 2.11.
- add_buildtime_requirement(module_name, stream_name)¶
- Parameters:
Add a build-time dependency for this module.
New in version 2.11.
- add_runtime_requirement(module_name, stream_name)¶
- Parameters:
Add a build-time dependency for this module.
New in version 2.11.
- clear_buildtime_requirements()¶
Remove all build-time dependencies for this module.
New in version 2.11.
- clear_runtime_requirements()¶
Remove all run-time dependencies for this module.
New in version 2.11.
- compare(self_2)¶
- Parameters:
self_2 (
Modulemd.BuildConfig
) – A pointer to aModulemd.BuildConfig
object.- Returns:
Less than zero if self sorts less than self_2, zero for equal, greater than zero if self is greater than self_2.
- Return type:
New in version 2.11.
- copy()¶
- Returns:
A deep copy of self
- Return type:
New in version 2.11.
- equals(self_2)¶
- Parameters:
self_2 (
Modulemd.BuildConfig
) – A pointer to aModulemd.BuildConfig
object.- Returns:
True
, if self and self_2 are pointers toModulemd.BuildConfig
objects containing equivalent data.False
, otherwise.- Return type:
New in version 2.11.
- get_buildopts()¶
- Returns:
The build options for this module’s components.
- Return type:
New in version 2.11.
- get_buildtime_modules_as_strv()¶
- Returns:
An ordered #GStrv list of module names that this module depends on at build-time.
- Return type:
[
str
]
New in version 2.11.
- get_buildtime_requirement_stream(module_name)¶
- Parameters:
module_name (
str
) – The name of the module this module depends on.- Returns:
The name of the stream matching this module name in the build-time dependencies.
- Return type:
New in version 2.11.
- get_context()¶
- Returns:
The string representing the context that this build configuration produces.
- Return type:
Get the context that this build configuration produces.
Note: This function returns the context as stored internally. If you want to be sure that it is in the correct format, call
Modulemd.BuildConfig.validate
() first.New in version 2.11.
- get_platform()¶
- Returns:
The string representing the platform that this build configuration applies to.
- Return type:
Get the platform that this build configuration applies to.
New in version 2.11.
- get_runtime_modules_as_strv()¶
- Returns:
An ordered #GStrv list of module names that this module depends on at run-time.
- Return type:
[
str
]
New in version 2.11.
- get_runtime_requirement_stream(module_name)¶
- Parameters:
module_name (
str
) – The name of the module this module depends on.- Returns:
The name of the stream matching this module name in the run-time dependencies.
- Return type:
New in version 2.11.
- remove_buildtime_requirement(module_name)¶
- Parameters:
module_name (
str
) – The name of the module to be removed.
Remove a build-time dependency for this module.
New in version 2.11.
- remove_runtime_requirement(module_name)¶
- Parameters:
module_name (
str
) – The name of the module to be removed.
Remove a run-time dependency for this module.
New in version 2.11.
- set_buildopts(buildopts)¶
- Parameters:
buildopts (
Modulemd.Buildopts
) – AModulemd.Buildopts
object describing build options that apply globally to components in this module.
Set build options for this module’s components.
New in version 2.11.
- set_context(context)¶
- Parameters:
context (
str
) – A string of up to ten alphanumeric characters.
Set the context that this build configuration produces.
Note: For consistency in the API, this function does not validate the input context. This validation will be performed as part of the
Modulemd.BuildConfig.validate
() routine where it can be reported cleanly.New in version 2.11.
- set_platform(platform)¶
- Parameters:
platform (
str
) – A string of up to ten alphanumeric characters.
Set the platform that this build configuration applies to.
New in version 2.11.
- validate()¶
- Raises:
- Returns:
True
if validation passes. ReturnsFalse
and sets error appropriately on validation failure.- Return type:
Determine if this
Modulemd.BuildConfig
is valid according to the YAML specification.New in version 2.11.