Skip to content

Commit

Permalink
image: hack werkzeug annotations
Browse files Browse the repository at this point in the history
this is required for python 3.9 until
we drop that.

(cherry picked from commit 070074a)
  • Loading branch information
tobias-urdin authored and mergify[bot] committed Aug 20, 2024
1 parent 1824a51 commit 5368624
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions images/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ RUN rm -rf /usr/lib/python3/dist-packages/pyparsing*
# NOTE(tobias.urdin): hack since jaraco.text in site-packages collides with our requirements
RUN rm -rf /usr/lib/python3/dist-packages/jaraco/text*

# TODO(tobias.urdin): hack remove this when we drop python 3.9
RUN sed -i '1s/^/from __future__ import annotations\n/' /usr/lib/python3/dist-packages/werkzeug/sansio/utils.py

#NOTE(sileht): really no utf-8 in 2017 !?
ENV LANG en_US.UTF-8
RUN update-locale
Expand Down

0 comments on commit 5368624

Please sign in to comment.