Closed avara1986 closed 2 years ago
🤔 I wonder if this shouldn't be the default riot
behaviour, as opposed to the -s
option?
:thinking: I wonder if this shouldn't be the default
riot
behaviour, as opposed to the-s
option?
I think this is an other behavior.-s
skips the installation of packages in a new or existing virtualenv.
If I create a virtualenv, I could have a mistake and install different versions or I could install packages the project doesn't need, at this moment, the option -r
doesn't restart the environment
What are your thoughts about this? @P403n1x87
🤔 I wonder if this shouldn't be the default
riot
behaviour, as opposed to the-s
option?
@P403n1x87 you mean every time we do riot run
it recreates the virtualenv and re-installs the dependencies?
@P403n1x87 you mean every time we do
riot run
it recreates the virtualenv and re-installs the dependencies?
Yes, to ensure that we test with exactly what we declare, and remove any potential mess created while messing around with riot shell
inside the venvs. Currently, I'm doing rm -rf .riot
as a last resort. I wonder if this also answers your question, @avara1986 ? I'm not sure I understand what restart
means here. I think I might have missed some offline discussions?
@P403n1x87 as we talk, I added tests to check nested environments :muscle:
Description
riot
runsvirtualenv [directory]
to create a virtualenv. Ifvenv 01
directory exists and you runvirtualenv venv01
, the old virtualenv still has the same packages with no reset.Manually test
Output: