-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Install pytest and pytest-cov using pip rather than pacman #5231
Conversation
It seems the issue isn't Edit: Also found msys2/MINGW-packages#7806, maybe that will fix it once it is in the package repo? |
Keeping pytest and pytest-cov pacman with pytest>=6.2.2 still failed somehow. Switching both pytest and pytest-cov from pacman to pip did pass, so that is an alternative to this PR - not a problem, but I also don't see the advantage. |
Haven't tested it, but I suspect
A (very slightly) shorter install time would be one advantage, since pytest wouldn't have to be installed twice. |
Ah - Ok, I've changed this PR to swapping both pacman lines for pip. |
In general, is there an advantage to installing via pacman instead of pip? |
For binary packages, the advantage is much shorter install times (no need to compile), and sometimes there might be a patch applied to the pacman version needed to get a package to work. I wouldn't expect much of a difference for pure-python packages such as pytest (pytest and pytest-cov don't have any patches, just an install script for the My understanding is that MSYS2 provides pacman packages only for those libraries that require patches, and their dependencies. Pytest is likely only available because it is a dependency of something else. |
Pytest does update quite frequently, and like you say, is pure Python. Pytest is a dependency at least for lots of pytest plugins, perhaps there's one of those which needs building. Anyway, let's go with this PR. Can always switch back if needed. Thanks both! |
Fixes an error that has started appearing on MSYS jobs. Seen in #5230 (https://github.com/python-pillow/Pillow/pull/5230/checks?check_run_id=1779961003#step:6:32) and #5232, and will presumably be seen in master with the next merge.