← 输入框|bugs.python.org|刷新

➜

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.

作者 shakfu
收信人 eric.snow, mathias, ncoghlan, ronaldoussoren, shakfu, vstinner
日期 2022-03-14.14:22:50
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1647267770.98.0.192594537141.issue18309@roundup.psfhosted.org>
In-reply-to
内容
I have exactly the same need and use-case as Mathias in my project which includes a requirement to embed python3 in a relocatable folder structure w which serves as an application package (https://github.com/shakfu/py-js).

This can be done using the Framework structure, thanks to Greg Neagle's solution referenced in (https://bugs.python.org/issue42514), but not for any python builds with --enabled-shared.

In any case, providing options (at the c-level or otherwise, for embedded applications as described by Mathias would be ideal: "I can imagine to provide several functions to build up the pythonpath starting from something.
So say, have a 'get python path from argv[0]', a 'get python path from shared python library' and a 'get python path from prefix' function (I may miss a variant)."
历史
日期 用户 动作 参数
2022-03-14 14:22:51shakfu修改recipients: + shakfu, ronaldoussoren, ncoghlan, vstinner, eric.snow, mathias
2022-03-14 14:22:50shakfu修改messageid: <1647267770.98.0.192594537141.issue18309@roundup.psfhosted.org>
2022-03-14 14:22:50shakfu链接issue18309 messages
2022-03-14 14:22:50shakfu创建