Proposing update_env_if construct to CM script meta #482
arjunsuresh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently CM script meta is not having an option to update env variables based on some conditions and these updates need to happen in customize.py. This works fine for small scripts but for generic scripts like
get-generic-python-lib
this increases the complexity of the code in customize.py.Any
deps
can update a ENV variables - for exampledetect-cpu
can setCPU_ARCHITECTURE
asx86
and ifget-generic-sys-util
has selected a package sayX
we can update the installation source forX
onx86
in_cm.yml
itself if we can have the below construct.Here, we can use
skip_if_env
,enable_if_env
,skip_if_any_env
andenable_if_any_env
which we currently use to conditionally turn on dependencies.Beta Was this translation helpful? Give feedback.
All reactions