Skip to content

Building Python3.11.0 with ensurepip incorrectly includes bin/pip3.10 #98682

@mkillianey

Description

@mkillianey

Bug report

Building Python3.11.0 with --ensure-pip seems to incorrectly createpip3.10 in addition to pip3 and pip3.11, where pip3.10 is identical to pip3.11.

Building Python3.11 at v3.11.0:

$ git log -n1 --oneline
deaf509e8f (HEAD, tag: v3.11.0) Python 3.11.0
$ ./configure --prefix=/tmp/python3.11 --with-ensurepip && make install 
...omitted...
$ make install
...omitted...
Installing collected packages: setuptools, pip
  WARNING: The scripts pip3, pip3.10 and pip3.11 are installed in '/tmp/python3.11/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
...omitted...

Observing the problem:

$ ls -1 /tmp/python3.11/bin/pip*
/tmp/python3.11/bin/pip3
/tmp/python3.11/bin/pip3.10
/tmp/python3.11/bin/pip3.11
$ diff -s /tmp/python3.11/bin/pip3.1{0,1}
Files /tmp/python3.11/bin/pip3.10 and /tmp/python3.11/bin/pip3.11 are identical
$ head -n1 /tmp/python3.11/bin/pip3.10
#!/tmp/python3.11/bin/python3.11

Your environment

Building on linux-x86_64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedtopic-ensurepiptype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions