Author grahamd
Recipients Henning.von.Bargen, Leslie, M.Kerr, eric.snow, grahamd, methane, ncoghlan, pitrou, pyscripter, steve.dower, vstinner
Date 2020-04-15.23:39:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586993964.21.0.733408086604.issue22213@roundup.psfhosted.org>
In-reply-to
Content
For the record. Since virtualenv 20.0.0 (or there about) switched to the python -m venv style virtual environment structure, the C API for embedding when using a virtual environment is now completely broken on Windows. The same workaround used on UNIX doesn't work on Windows.

The only known workaround is in the initial Python code you load, to add:

import site
site.addsitedir('C:/some/path/to/pythonX.Y/Lib/site-packages')

to at least force it to use the site-packages directory from the virtual environment.

As to mod_wsgi, means that on Windows the WSGIPythonHome directive no longer works anymore and have to suggest that workaround instead.
History
Date User Action Args
2020-04-15 23:39:24grahamdsetrecipients: + grahamd, ncoghlan, pitrou, vstinner, pyscripter, methane, eric.snow, steve.dower, Henning.von.Bargen, Leslie, M.Kerr
2020-04-15 23:39:24grahamdsetmessageid: <1586993964.21.0.733408086604.issue22213@roundup.psfhosted.org>
2020-04-15 23:39:24grahamdlinkissue22213 messages
2020-04-15 23:39:24grahamdcreate