-
Notifications
You must be signed in to change notification settings - Fork 4
Improve executable path detection #7
Comments
Hi @rpkilby, I am wondering would that interpreter detection not better be a job for tox directly or another plugin? Maybe you mean something different, but I would not like us to have to do duplicate work. |
Hi @obestwalter - this relates back to the issue of creating python3 venvs. There are more details in tox-dev/tox#630 (comment), but the gist is that it's not possible to create a python3 venv while working in an active virtualenv (which travis uses by default). To get around this limitation, you need to find the real python executable that was used to create the virtualenv, then use that binary to create the python3 venv. Below is how tox-venv currently determines the real executable: tox-venv/src/tox_venv/hooks.py Lines 29 to 41 in 5840166
The problem is that Instead of just assuming |
ah o.k. that is specific to using venv then. Thanks for the detailed explanation. |
Another possible case is when a linux distro provides multiple python 3 packages. eg, CentOS epel-release provides both python34 and python36 packages. The former is considered the "current" version of python, and provides both the Versions should be detected with decreasing specificity ( |
Improve unix
python3
detection. Right now, it's assumed that there is apython3
binary in thebin
directory. This isn't necessarily the case, such as when pyenv is misconfigured.The text was updated successfully, but these errors were encountered: