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.

Author steve.dower
Recipients eric.snow, ned.deily, pablogsal, ronaldoussoren, steve.dower, vinay.sajip
Date 2022-03-14.18:04:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647281091.27.0.761443021613.issue46890@roundup.psfhosted.org>
In-reply-to
Content
The sys module gets initialised in _PySys_UpdateConfig() in Python/sysmodule.c. It gets called later in pylifecycle.c. But it ought to just copy directly from the config.

However, it's the site.py module that actually updates sys.prefix for the venv. So you may just be inspecting at the wrong point? Or possibly it's in a codepath that doesn't run on macOS because *previously* it was being set correctly in getpath instead of being deferred until later?
History
Date User Action Args
2022-03-14 18:04:51steve.dowersetrecipients: + steve.dower, vinay.sajip, ronaldoussoren, ned.deily, eric.snow, pablogsal
2022-03-14 18:04:51steve.dowersetmessageid: <1647281091.27.0.761443021613.issue46890@roundup.psfhosted.org>
2022-03-14 18:04:51steve.dowerlinkissue46890 messages
2022-03-14 18:04:51steve.dowercreate