You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ x] I have searched the issue tracker and believe that this is not a duplicate.
Summary: latest pdm is not compatible with python 3.12.7 changes to argparse internals and pdm install will fail on pdm --help execution in ErrorArgumentParser
Steps to reproduce
On Debian Trixie, it is installing python 3.7.12. This can be reproduced with this dockerfile:
# syntax=docker/dockerfile:1
ARG DEBIAN_VERSION=trixie
FROM debian:${DEBIAN_VERSION}-slim AS deb-base
# Include global arg in this stage of the build
ARG BUILD_DIR="/opt/build"
ARG PYSETUP_DIR="${BUILD_DIR}/pysetup"
ARG PDM_HOME="${BUILD_DIR}/pdm"
ARG PDM_VESION=2.19.3
USER root
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
build-essential \
cmake \
curl \
python3-dev \
python3-pip \
python3-venv \
python-is-python3
RUN mkdir -p ${PDM_HOME}
WORKDIR ${PYSETUP_DIR}
ENV VIRTUAL_ENV="${PYSETUP_DIR}/venv" \
PATH="${PYSETUP_DIR}/venv/bin:$PATH" \
PDM_CHECK_UPDATE=false \
PDM_NON_INTERACTIVE=1 \
PATH="${PDM_HOME}/bin:$PATH"
RUN curl -sSLO https://pdm-project.org/install-pdm.py \
&& ( curl -sSL https://pdm-project.org/install-pdm.py.sha256 | shasum -a 256 -c - ) \
&& python install-pdm.py \
&& rm install-pdm.py \
&& pdm --version
Summary: latest
pdm
is not compatible with python 3.12.7 changes to argparse internals and pdm install will fail onpdm --help
execution in ErrorArgumentParserSteps to reproduce
On Debian Trixie, it is installing python 3.7.12. This can be reproduced with this dockerfile:
Copy the above to a file
Dockerfile
and run:docker buildx build --progress plain -f Dockerfile .
Actual behavior
Docker build fails with the following:
Expected behavior
It should succeed building docker and build the image with python & pdm installed.
Environment Information
N/A
The text was updated successfully, but these errors were encountered: