Skip to content

Commit

Permalink
Fix the Salt 3005.x builds
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
  • Loading branch information
s0undt3ch committed Sep 20, 2023
1 parent d1e728a commit b0e32bb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions salt/3005.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM python:3.7

RUN env python -m pip install --no-build-isolation 'cython<3.0' pyyaml==5.4.1 \
&& USE_STATIC_REQUIREMENTS=1 python -m pip install salt~=3005.0
RUN apt update \
&& apt install -y rustc build-essential
RUN echo "cython<3" > /tmp/constraint.txt \
&& echo "pyyaml==5.4.1" >> /tmp/constraint.txt \
&& export PIP_CONSTRAINT=/tmp/constraint.txt \
&& export USE_STATIC_REQUIREMENTS=1 \
&& python -m pip install salt~=3005.0

0 comments on commit b0e32bb

Please sign in to comment.