weechat-matrix icon indicating copy to clipboard operation
weechat-matrix copied to clipboard

Add support for python3 venvs

Open cubetastic33 opened this issue 4 years ago • 1 comments

Since python 3.5, python3 venvs are recommended - so can support for them be added? I found this issue where support for virtualenvs was added, and a person mentioned that the method didn't support python3 venvs.

cubetastic33 avatar Apr 24 '20 13:04 cubetastic33

As mentioned in #105 by @matthijskooijman - comment - creating a "activate_this.py" file in the bin folder of a Python3 venv is actually a functional workaround.

The similar approach was mentioned on StackOverflow as well.

I'm running openSUSE Tumbleweed, created the virtual environment by executing python3 -m ~/.weechat/python/venv and manually added the file ~/.weechat/python/venv/bin/activate_this.py, it's working without issues so far.

activate_this.py source

wombelix avatar Jun 11 '20 12:06 wombelix