Skip to content

Project dependencies are not installed when usedevelop=False #197

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

Closed
pytoxbot opened this issue Sep 17, 2016 · 11 comments
Closed

Project dependencies are not installed when usedevelop=False #197

pytoxbot opened this issue Sep 17, 2016 · 11 comments

Comments

@pytoxbot
Copy link

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:

  1. run tox to initialize test environment
  2. activate test environment
  3. remove a package my project depends on
  4. run tox again and see failed test due to unsatisfied dependency

When I set usedevelop=True the problem disappears.

@pytoxbot
Copy link
Author

Original comment by @DXist

For now I just toggle usedevelop value in my config whenever I add new dependencies. This forces installation of them.

@pytoxbot
Copy link
Author

Original comment by @DXist

I'd like to have ini option.

@pytoxbot
Copy link
Author

Original comment by @hpk42

maybe, would you rather have an ini or command line opt?

@pytoxbot
Copy link
Author

Original comment by @DXist

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.

@pytoxbot
Copy link
Author

Original comment by @hpk42

speed for the common case. after all, typing "-r" to force recreation is a bit annoying but not super bad IMHO :)

@pytoxbot
Copy link
Author

Original comment by @DXist

Could you explain the reason for this?

@pytoxbot
Copy link
Author

Original comment by @hpk42

it does use it but with "--no-deps".

@pytoxbot
Copy link
Author

Original comment by @DXist

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.

@pytoxbot
Copy link
Author

Original comment by @hpk42

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.

@pytoxbot
Copy link
Author

Original comment by @DXist

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 update install_requires dependencies after I changed them in new project version. As I said usedevelop=True fixes it but I'd like to install my project from source distribution and not to use this mode.

@pytoxbot
Copy link
Author

Original comment by @hpk42

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?

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant