-
Notifications
You must be signed in to change notification settings - Fork 9
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
Wheel installation sometimes fails due to previously installed version #23
Comments
Can you at least provide some details about versions and such? A reproducer would be even better. |
Fair point. I have experienced this many times but haven't been able to reliably reproduce exactly under what circumstances it happens (I have usually just run
I am not sure why this hasn't been more of an obvious problem before, maybe I am doing something that makes pip have a more stringent comparison of previously installed vs new wheels? |
I have experienced the same thing. Some of my libs do it, and some don't. The output of tox doesn't seem indicate any difference.
But, the new ep_telemetry package isn't really updated.. |
Now that I think about it more I could only document this problem. I can't really mess with the install command since users might want to customize that. Either way... maybe make a request in the tox bug tracker to always use the |
I have encountered issues where I get a test failure in tox, change the code and re-run, then get the same test failure with the old code. This seems to be because although tox-wheel builds the new wheel with the new code, the install step fails to actually install it, presumably because there is a previously installed copy of the same wheel with the same version. If I manually uninstall the package from the venv, or change tox's
install_command
to use the-I
flag and ignore the installed package then the behaviour goes away, but it would be nice to try and make this automatic so the user doesn't have anything to manually change to use the plugin.Looking at the tox plugin hooks, the only plausible place I can see to put such a mechanism is in the
tox_package()
hook - presumably we can insert some command in there topip uninstall package
, possibly testing first to see if it is installed etc. Happy to receive alternative suggestions or a different solution to the problem, otherwise I will probably have a play-around and see if I can get something working along these lines next week.The text was updated successfully, but these errors were encountered: