From d561d66d1c2704a11589f604d3c067ef4c1c22c3 Mon Sep 17 00:00:00 2001 From: Sanjay Kumar Sakamuri Kamalakar Date: Sat, 6 Sep 2025 14:04:12 +0530 Subject: [PATCH 1/2] Change make command to use altinstall for Python --- tooling/debug/Dockerfile.pandas-debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/debug/Dockerfile.pandas-debug b/tooling/debug/Dockerfile.pandas-debug index d674e9c0ee1e0..e3e1ede9cca15 100644 --- a/tooling/debug/Dockerfile.pandas-debug +++ b/tooling/debug/Dockerfile.pandas-debug @@ -6,7 +6,7 @@ RUN apt-get install -y build-essential git valgrind # cpython dev install RUN git clone -b 3.10 --depth 1 https://github.com/python/cpython.git /clones/cpython RUN apt-get install -y libbz2-dev libffi-dev libssl-dev zlib1g-dev liblzma-dev libsqlite3-dev libreadline-dev -RUN cd /clones/cpython && ./configure --with-pydebug && CFLAGS="-g3" make -s -j$(nproc) && make install +RUN cd /clones/cpython && ./configure --with-pydebug && CFLAGS="-g3" make -s -j$(nproc) && make altinstall # gdb installation RUN apt-get install -y wget libgmp-dev From c872d7136a057716d0d779c90bbdedb4024efec2 Mon Sep 17 00:00:00 2001 From: Sanjay Kumar Sakamuri Kamalakar Date: Sun, 7 Sep 2025 18:47:51 +0530 Subject: [PATCH 2/2] Create symlink for python3 to python --- tooling/debug/Dockerfile.pandas-debug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tooling/debug/Dockerfile.pandas-debug b/tooling/debug/Dockerfile.pandas-debug index e3e1ede9cca15..97c5dc7f34da0 100644 --- a/tooling/debug/Dockerfile.pandas-debug +++ b/tooling/debug/Dockerfile.pandas-debug @@ -7,6 +7,7 @@ RUN apt-get install -y build-essential git valgrind RUN git clone -b 3.10 --depth 1 https://github.com/python/cpython.git /clones/cpython RUN apt-get install -y libbz2-dev libffi-dev libssl-dev zlib1g-dev liblzma-dev libsqlite3-dev libreadline-dev RUN cd /clones/cpython && ./configure --with-pydebug && CFLAGS="-g3" make -s -j$(nproc) && make altinstall +RUN ln -sf /usr/local/bin/python3.10 /usr/local/bin/python3 # gdb installation RUN apt-get install -y wget libgmp-dev @@ -31,4 +32,4 @@ RUN python3 -m pip install \ # with meson where only having a python3 executable and not python # would cause the build to fail. This symlink could be removed if # users stick to always calling python3 within the container -RUN ln -s /usr/local/bin/python3 /usr/local/bin/python +RUN ln -sf /usr/local/bin/python3 /usr/local/bin/python