-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Environment is not recreated when install_requires in setup.py is changed #93
Comments
Original comment by @graingert pull request #64 should help with this: simply configure your setup.py to pull |
Original comment by @graingert You also get the same problem if |
Original comment by @graingert Might be an idea to use https://pypi.python.org/pypi/pip-accel |
Original comment by @hpk42 Maybe we could do a "setup.py egg_info" if |
Original comment by @lukaszb I would vote against it. Passing |
Original comment by @hpk42 we could probably do a checksum of the setup.py and run a full (no |
Original comment by @tkf Can't we detect requirements before running pip? Or how about caching setup.py (or compare timestamp or checksum) and reinstall it without --no-deps when it is changed? |
Original comment by @hpk42 Some time ago someone else complained that reinstalling a package would always re-install the dependencies, increasing overall run time. Changing install_requires is a relatively rare event -- can you not issue --recreate on this occassion? |
Original comment by @tkf I guess a simple solution is to put the following in the first entry of
|
Reading through this my impression is that the existing functionality is already enough and the opinions differ if and how this should be solved. I would tend to close this as wontfix soonish - any objections? |
Actually it's not too hard to inspect the requirements of a package via setuptools |
@graingert actually its nondetermistic and broken to try and do so with just setuptools ^^ the amount of logic, sandboxing &more pip adds around to keep things sane is hard to copy |
@obestwalter I just ran into this issue recently, and it strikes me as very unexpected behavior. At the very least, the documentation needs to explicitly mention this behavior. Ideally |
I agree, that is the least we can do. |
Here is a recipe to reproduce this problem.
I can write dependency in tox.ini to force recreate, but I think it is simpler if tox reinstall package. I think it is as easy as removing --no-deps flag so I wonder why --no-deps is used in the first place. Is there any drawbacks? Wouldn't it be nice if we can disable this flag optionally?
The text was updated successfully, but these errors were encountered: