Skip to content

Commit

Permalink
chore: Revert cython patch (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
mildaniel authored Jul 21, 2023
1 parent 19b58fd commit b9cbc77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions build-image-src/Dockerfile-python310
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ ARG AWS_CLI_ARCH
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$AWS_CLI_ARCH.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install && rm awscliv2.zip && rm -rf ./aws

# Install SAM CLI in a dedicated Python virtualenv
# Note: Remove cython<3.0.0 line once the issue with building pyyaml from source is fixed
ARG SAM_CLI_VERSION
RUN curl -L "https://github.com/awslabs/aws-sam-cli/archive/v$SAM_CLI_VERSION.zip" -o "samcli.zip" && \
unzip samcli.zip && python3 -m venv /usr/local/opt/sam-cli && \
/usr/local/opt/sam-cli/bin/pip3 install wheel && /usr/local/opt/sam-cli/bin/pip3 install --no-build-isolation "cython<3.0.0" pyyaml==5.4.1 && /usr/local/opt/sam-cli/bin/pip3 uninstall wheel cython --yes && \
/usr/local/opt/sam-cli/bin/pip3 --no-cache-dir install -r ./aws-sam-cli-$SAM_CLI_VERSION/requirements/base.txt && \
/usr/local/opt/sam-cli/bin/pip3 --no-cache-dir install ./aws-sam-cli-$SAM_CLI_VERSION && \
rm samcli.zip && rm -rf aws-sam-cli-$SAM_CLI_VERSION
Expand Down
2 changes: 0 additions & 2 deletions build-image-src/Dockerfile-python311
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ ARG AWS_CLI_ARCH
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$AWS_CLI_ARCH.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install && rm awscliv2.zip && rm -rf ./aws

# Install SAM CLI in a dedicated Python virtualenv
# Note: Remove cython<3.0.0 line once the issue with building pyyaml from source is fixed
ARG SAM_CLI_VERSION
RUN curl -L "https://github.com/awslabs/aws-sam-cli/archive/v$SAM_CLI_VERSION.zip" -o "samcli.zip" && \
unzip samcli.zip && python3 -m venv /usr/local/opt/sam-cli && \
/usr/local/opt/sam-cli/bin/pip3 install wheel && /usr/local/opt/sam-cli/bin/pip3 install "cython<3.0.0" pyyaml==5.4.1 --no-build-isolation && /usr/local/opt/sam-cli/bin/pip3 uninstall wheel cython --yes && \
/usr/local/opt/sam-cli/bin/pip3 --no-cache-dir install -r ./aws-sam-cli-$SAM_CLI_VERSION/requirements/base.txt && \
/usr/local/opt/sam-cli/bin/pip3 --no-cache-dir install ./aws-sam-cli-$SAM_CLI_VERSION && \
rm samcli.zip && rm -rf aws-sam-cli-$SAM_CLI_VERSION
Expand Down

0 comments on commit b9cbc77

Please sign in to comment.