Skip to content

fix: use --upgrade rather than --ignore-installed to upgrade pip#268

Merged
HarithaVattikuti merged 2 commits intoactions:mainfrom
mayeut:test-multiple-pip
May 8, 2024
Merged

fix: use --upgrade rather than --ignore-installed to upgrade pip#268
HarithaVattikuti merged 2 commits intoactions:mainfrom
mayeut:test-multiple-pip

Conversation

@mayeut
Copy link
Copy Markdown
Contributor

@mayeut mayeut commented May 4, 2024

This removes left over files when upgrading pip.

See #254 for more information on the issues fixed by this PR:

Extends #254 by adding a test & fixing installers/macos-pkg-setup-template.sh

Closes #254

This removes left over files when upgrading pip.
@mayeut mayeut requested a review from a team as a code owner May 4, 2024 13:32
Comment on lines +108 to +112
- name: Delete macOS /Library/Frameworks/Python.framework
if: matrix.platform == 'darwin'
shell: bash
run: if [ -d /Library/Frameworks/Python.framework ]; then sudo rm -rf /Library/Frameworks/Python.framework; fi

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required because current macos-11 runners come with 2 outdated pip dist-info.

When installing from pkg, these will be left alone and only one out of the 2 outdated version will be removed by --upgrade thus failing the tests.

Once runners are using fixed installs of Python, this block can removed.

@mayeut mayeut mentioned this pull request May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants