This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: venv does not include pythonXX.lib
Type: behavior Stage: resolved
Components: Library (Lib) Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Antonio Vázquez Blanco, brett.cannon, vinay.sajip
Priority: normal Keywords:

Created on 2020-01-05 22:50 by Antonio Vázquez Blanco, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg359388 - (view) Author: Antonio Vázquez Blanco (Antonio Vázquez Blanco) Date: 2020-01-05 22:50
I've tryed to install mod_wsgi using pip lately in a venv. This installation process fails with a message about a missing venv\scripts\libs\python38.lib file as reported in https://github.com/GrahamDumpleton/mod_wsgi/issues/506

It seems that this file used to be included in virtual environments but the behaviour has changed. This library seems to be a dependency for some modules, shouldn't it be included in the virtual environment? Is this behaviour change desired? If so, how should modules link to python.lib?

Thanks in advance
msg359444 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2020-01-06 18:16
When have you seen this work previously? On my Windows 10 machine there is no Scripts\libs directory for Python 3.7, let alone a python37.lib file in any directory that I can find.
msg359516 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2020-01-07 16:27
The python38.lib file isn't present in any venv, whether created by virtualenv or "python -m venv". I believe the mod_wsgi build process may not cater for building in a venv on Windows.

When created with "python -m venv", a venv contains the file pyvenv.cfg with contents like this:

home = C:\Users\Vinay\AppData\Local\Programs\Python\Python38
include-system-site-packages = false
version = 3.8.1

and the location of python38.lib on this system is given by the libs directory relative to the home value in the above snippet.

I don't think this is a venv bug so I will probably close this issue soon, unless you provide more evidence of an actual problem in the venv package.
msg359572 - (view) Author: Antonio Vázquez Blanco (Antonio Vázquez Blanco) Date: 2020-01-08 09:48
If that is the intended way to proceed then I will patch mod_wsgi.

Sorry for the inconvenience and thank you very much for the pointers.

Thanks!
History
Date User Action Args
2022-04-11 14:59:25adminsetgithub: 83407
2020-01-08 09:48:51Antonio Vázquez Blancosetstatus: open -> closed
resolution: not a bug
messages: + msg359572

stage: resolved
2020-01-07 16:27:12vinay.sajipsetmessages: + msg359516
2020-01-06 18:16:41brett.cannonsetnosy: + vinay.sajip, brett.cannon
messages: + msg359444
2020-01-05 22:50:13Antonio Vázquez Blancocreate