- edited description
Project dependencies are not installed when usedevelop=False
I run tox without -r option. At he moment I have to manually install project dependencies when they are changed.
Steps I do to reproduce this:
- run tox to initialize test environment
- activate test environment
- remove a package my project depends on
- run tox again and see failed test due to unsatisfied dependency
When I set usedevelop=True
the problem disappears.
Comments (14)
-
reporter -
repo owner - changed status to invalid
tox presumes it controls the virtual environments and that you don't do manual changes in between. How comes you work on the
.tox/*
virtualenvs yourself? -
reporter I activate
.tox/*
test environment and manipulate it just to show a possible way to reproduce the issue. My actual problem is that tox doesn't updateinstall_requires
dependencies after I changed them in new project version. As I saidusedevelop=True
fixes it but I'd like to install my project from source distribution and not to use this mode. -
repo owner yes, it's a known issue (although i can't find an issue number currently) that tox does not know what setup.py contains in terms of dependencies. We could maybe look into the sdist/package's requirements and see if that changed, however, not sure. There are some issues like issue #13 and issue #149 which are similar.
-
reporter Thank you for the links! Why does not tox run
install_command
for sdist'ed tarball? This way it could update dependencies when updates are available. -
repo owner it does use it but with "--no-deps".
-
reporter Could you explain the reason for this?
-
repo owner speed for the common case. after all, typing "-r" to force recreation is a bit annoying but not super bad IMHO :)
-
reporter In my case adding '-r' option makes the build 5-6 times longer - that's why I prefer not to set it. When environment is already prepared pip dependency checks are quite fast and introduce much smaller time overhead than full env recreation.
I think it would be nice to make "--no-deps" option presence configurable.
-
repo owner maybe, would you rather have an ini or command line opt?
-
reporter I'd like to have ini option.
-
reporter For now I just toggle
usedevelop
value in my config whenever I add new dependencies. This forces installation of them. -
This issue has been moved to GitHub: https://github.com/tox-dev/tox/issues/197
-
- changed status to on hold
- Log in to comment