Message415142
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)." |
|
Date |
User |
Action |
Args |
2022-03-14 14:22:51 | shakfu | set | recipients:
+ shakfu, ronaldoussoren, ncoghlan, vstinner, eric.snow, mathias |
2022-03-14 14:22:50 | shakfu | set | messageid: <1647267770.98.0.192594537141.issue18309@roundup.psfhosted.org> |
2022-03-14 14:22:50 | shakfu | link | issue18309 messages |
2022-03-14 14:22:50 | shakfu | create | |
|