Skip to content
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

Update Virtual Environment Handling for Python Version Changes #158

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oyale
Copy link
Contributor

@oyale oyale commented Feb 27, 2024

Without these steps, changing the Python version would not affect the existing virtual environment (venv).

When the venv is destroyed, it becomes necessary to reinstall Odoo.

Therefore, our first action is to check for the presence of an existing venv. If found, we verify its Python version. If this version does not match our desired one, we proceed to remove the virtualenv.

Additionally, in the when conditions for the Odoo installation task, we now include a check to determine if the venv was recently deleted.

Without this steps, changing the python version will not cause any effect in venv. 

When the venv is destroyed, Odoo needs to be reinstalled.
@oyale oyale changed the title feat: remove venv and reinstall odoo on python version change Update Virtual Environment Handling for Python Version Changes Feb 27, 2024
@oyale oyale added the test needed You can help by testing this branch label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test needed You can help by testing this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant