[New-bugs-announce] [issue38809] On Windows, build scripts should prefer using python.exe from an active virtual env

Tal Einat report at bugs.python.org
Fri Nov 15 02:23:46 EST 2019


New submission from Tal Einat <taleinat at gmail.com>:

On windows several .bat scripts call find_python.bat to find an appropriate python.exe. find_python.bat has no specific support for virtual envs, and usually ends up calling py.exe to find python.exe. Due to virtual envs not including a py.exe, this effectively ignores having an activated virtual env.

It is currently possible to build with the specific python that one wants by setting the PYTHON env var. However, this is a simplistic and non-standard solution compared to virtual envs.

IMO when there is an active virtual env, these scripts should certainly use python.exe from it!

----------
assignee: docs at python
components: Documentation
messages: 356649
nosy: docs at python, taleinat
priority: normal
severity: normal
status: open
title: On Windows, build scripts should prefer using python.exe from an active virtual env
type: enhancement
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38809>
_______________________________________


More information about the New-bugs-announce mailing list