Skip to content

Commit

Permalink
Pin the precise version of MarkupSafe in python deps
Browse files Browse the repository at this point in the history
Jinja2 deps list contains a too wide range of acceptable MarkupSafe versions,
as a result MarkupSafe v2.1.0 contains changes that break Jinja2
See pallets/markupsafe#286
  • Loading branch information
valeros authored Feb 18, 2022
1 parent 30a762b commit cdf5491
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builder/frameworks/freedom-e-sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
except ImportError:
env.Execute(
env.VerboseAction(
"$PYTHONEXE -m pip install pyparsing==2.4.5 Jinja2==2.10.1",
# Note: a specific version of MarkupSafe is requrired to avoid
# the ImportError of 'soft_unicode' in Jinja2
"$PYTHONEXE -m pip install pyparsing==2.4.5 MarkupSafe==2.0.1 Jinja2==2.10.1",
"Installing Freedom E SDK's Python dependencies",
)
)
Expand Down

0 comments on commit cdf5491

Please sign in to comment.