Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from May 8, 2024

Conversation

mayeut
Copy link
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
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
@HarithaVattikuti HarithaVattikuti merged commit 7c3d29f into actions:main May 8, 2024
18 checks passed
@mayeut mayeut deleted the test-multiple-pip branch May 8, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants