MINGW-packages: Cannot run pip within tox on MSYS2 (MINGW64)
This was reported in tox-dev/tox#1648, then in pypa/pip#8894, and now here.
When trying to use tox on MSYS2 (MINGW64), I am getting several errors when packages are installed:
ERROR: Cannot uninstall 'distlib'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
The same procedure works on powershell or on GNU/Linux.
To reproduce, see https://github.com/eine/tox/actions/runs/264949167 and the corresponding commit: eine/tox@9b702f8. The error is seen in https://github.com/eine/tox/runs/1143520398?check_suite_focus=true#step:4:28.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 24 (23 by maintainers)
Commits related to this issue
- Fix virtualenv unable to access venv setup files We aren't currently compiling the venvlauncher as part of python with gcc. Previous patches to fix #2050 removed the venvlauncher redirector by skippi... — committed to danyeaw/MINGW-packages by danyeaw 4 years ago
- Fix virtualenv unable to access venv setup files We aren't currently compiling the venvlauncher as part of python with gcc. Previous patches in PR #5625 removed the venvlauncher redirector by skippin... — committed to danyeaw/MINGW-packages by danyeaw 4 years ago
- Fix virtualenv unable to access venv setup files We aren't currently compiling the venvlauncher as part of python with gcc. Previous patches in PR #5625 removed the venvlauncher redirector by skippin... — committed to danyeaw/MINGW-packages by danyeaw 4 years ago
- Fix virtualenv unable to access venv setup files We aren't currently compiling the venvlauncher as part of python with gcc. Previous patches in PR #5625 removed the venvlauncher redirector by skippin... — committed to danyeaw/MINGW-packages by danyeaw 4 years ago
- Fix virtualenv unable to access venv setup files We aren't currently compiling the venvlauncher as part of python with gcc. Previous patches in PR #5625 removed the venvlauncher redirector by skippin... — committed to danyeaw/MINGW-packages by danyeaw 4 years ago
- Fix virtualenv unable to access venv setup files We aren't currently compiling the venvlauncher as part of python with gcc. Previous patches in PR #5625 removed the venvlauncher redirector by skippin... — committed to danyeaw/MINGW-packages by danyeaw 4 years ago
- Fix virtualenv unable to access venv setup files We aren't currently compiling the venvlauncher as part of python with gcc. Previous patches in PR #5625 removed the venvlauncher redirector by skippin... — committed to danyeaw/MINGW-packages by danyeaw 4 years ago
@eine I think we really need a separate issue for each issue, and then we can work on resolving each one. Your initial issue is for distlib not found, which is fixed. We also fixed multiple other issues with virtualenv and tox.
This issue looks like
{envpython}
doesn’t work with MINGW, it is looking for python in Scripts instead of bin. If you run tox on a project that doesn’t use {envpython} in the config, it should work fine. We should try to work with the tox project to fix this upstream.@eine I don’t think the updated package has made it in to the repo yet. @lazka how do the repo versions get rebuilt?
My PR will fix the first case.
For the second case, this is a different issue I have seen as well when trying to build a package (no wheel exists, you don’t have wheel installed, or you are trying to install from source)
For the third case, someone would need to package virtualenv.
We prefer the Linux like layout.