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

Better support for virtual python environments #68

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

auslaner
Copy link

As an amateur Python dev, I wanted to propose this PR as an alternative to handling the "externally managed environment" issue as mentioned in #66 and #67.

To me it seems inappropriate to delete a file by default without warning in Debian 12 as happens now in the master branch so I've removed that functionality and added in break_system_packages and virtualenv_site_packages as role variables which provides a workable alternative to installing packages for externally managed environments in Debian 12.

I've also added a task to install virtualenv via pip so this role can be used to create virtual environments on its own.

Also apologies to @socheatsok78 for submitting a PR for something you're also working on. Your work was helpful for thinking about this issue, I just wanted to go in a different direction with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant