Skip to content

Commit 8362768

Browse files
committed
Add a comment on libyaml availability.
1 parent 4791146 commit 8362768

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

st2client/st2client/formatters/execution.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
try:
2525
from yaml import CSafeDumperx as YamlSafeDumper
2626
except ImportError:
27+
# NOTE: We install libyaml-dev in our packages so libyaml will always be available when using
28+
# official StackStorm packages.
29+
# Only time it may not be available is if the user is doing custom install from source or
30+
# similar.
2731
logging.getLogger(__name__).warn(
2832
"libYAML C bindings are not available. This means YAML "
2933
"parsing and serialization will be significantly slower. You are "

st2common/st2common/constants/meta.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
try:
2323
from yaml import CSafeLoader as YamlSafeLoader
2424
except ImportError:
25+
# NOTE: We install libyaml-dev in our packages so libyaml will always be available when using
26+
# official StackStorm packages.
27+
# Only time it may not be available is if the user is doing custom install from source or
28+
# similar.
2529
logging.getLogger(__name__).warn(
2630
"libYAML C bindings are not available. This means YAML "
2731
"parsing and serialization will be significantly slower. You are "

0 commit comments

Comments
 (0)