Skip to content

Instantly share code, notes, and snippets.

@stestagg
Last active February 24, 2021 20:46
Show Gist options
  • Save stestagg/7c7094365ff328c5558c3d0ea4213099 to your computer and use it in GitHub Desktop.
Save stestagg/7c7094365ff328c5558c3d0ea4213099 to your computer and use it in GitHub Desktop.
FROM ubuntu:21.04
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget make clang unzip
#RUN git clone --branch exceptionGroup-stage5 https://github.com/iritkatriel/cpython
RUN wget https://github.com/iritkatriel/cpython/archive/exceptionGroup-stage5.zip
RUN unzip -x *.zip
RUN mv cpython-* cpython
RUN sed -i s/\(3434\)/\(3435\)/g /cpython/Lib/importlib/_bootstrap_external.py
RUN cd cpython && ./configure --prefix=/prefix --exec-prefix=/prefix --without-ensurepip
RUN cd cpython && make -j8 install
COPY test.py /test.py
ENTRYPOINT /prefix/bin/python3 test.py
try:
1/0
except *Exception:
print("Something went wrong")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment