Skip to content

Commit

Permalink
Add a comment on libyaml availability.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Mar 19, 2021
1 parent 4791146 commit 8362768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions st2client/st2client/formatters/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
try:
from yaml import CSafeDumperx as YamlSafeDumper
except ImportError:
# NOTE: We install libyaml-dev in our packages so libyaml will always be available when using
# official StackStorm packages.
# Only time it may not be available is if the user is doing custom install from source or
# similar.
logging.getLogger(__name__).warn(
"libYAML C bindings are not available. This means YAML "
"parsing and serialization will be significantly slower. You are "
Expand Down
4 changes: 4 additions & 0 deletions st2common/st2common/constants/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
try:
from yaml import CSafeLoader as YamlSafeLoader
except ImportError:
# NOTE: We install libyaml-dev in our packages so libyaml will always be available when using
# official StackStorm packages.
# Only time it may not be available is if the user is doing custom install from source or
# similar.
logging.getLogger(__name__).warn(
"libYAML C bindings are not available. This means YAML "
"parsing and serialization will be significantly slower. You are "
Expand Down

0 comments on commit 8362768

Please sign in to comment.