Skip to content

Two dist-info directories for pip on macOS 11 (20230803) #713

Description

@ilia1243

Description

macOS 11 (20230803) has two dist-info directories installed for pip that causes its unexpected behavior.

See steps to reproduce and AR & ER below.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Image: https://github.com/actions/runner-images/releases/tag/macOS-11%2F20230803.1
Build: https://github.com/Netcracker/KubeMarine/actions/runs/5806754239

Is it regression?

Yes, the problem does not reproduce on previous build 20230709.1

Expected behavior

  1. Only one dist-info directory /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip-23.2.1.dist-info
  2. pip install pip==23.0 should downgrade the pip package.

Actual behavior

  1. Two dist-info directories
    /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip-23.1.2.dist-info
    /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip-23.2.1.dist-info
    
  2. pip install pip==23.0 "upgrades" the pip package to 23.2.1.

Repro steps

Synthetic job configuration:

  test-pip:
    runs-on: macos-11
    steps:
      - run: |
          find /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages -name 'pip-*.dist-info'
      - uses: actions/setup-python@v4
        with:
          python-version: "3.11"
      - run: |
          pip show pip
          pip install pip==23.0
          pip show pip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions