Skip to content

Commit adbe094

Browse files
committed
Workaround yaml/pyyaml#601
Signed-off-by: Pedro Algarvio <[email protected]>
1 parent 8475968 commit adbe094

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

noxfile.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,17 @@ def _install_requirements(
123123
session.install(*install_command, silent=PIP_INSTALL_SILENT)
124124

125125
if onedir is False and install_salt:
126-
session.install("--progress-bar=off", SALT_REQUIREMENT, silent=PIP_INSTALL_SILENT)
126+
try:
127+
session.install("--progress-bar=off", SALT_REQUIREMENT, silent=PIP_INSTALL_SILENT)
128+
except CommandFailed:
129+
# Workaround pyyaml issue https://github.com/yaml/pyyaml/issues/601
130+
session.install(
131+
"--progress-bar=off",
132+
"Cython<3.0",
133+
"--no-build-isolation",
134+
SALT_REQUIREMENT,
135+
silent=PIP_INSTALL_SILENT,
136+
)
127137

128138
if install_test_requirements:
129139
install_extras.append("tests")

0 commit comments

Comments
 (0)