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 shakfu
Recipients erlendaasland, gregneagle, macmule, ned.deily, njs, ronaldoussoren, shakfu, tomgoddard
Date 2022-03-14.13:56:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647266218.77.0.404781733125.issue42514@roundup.psfhosted.org>
In-reply-to
Content
I have struggled with this exact issue in my py-js project (https://github.com/shakfu/py-js) which embeds a python3 interpreter in a max/msp plugin or in a relocatable folder (package) structure. For the latter case, Greg's solution, which is based on standard methods, has been absolutely crucial. Thank you!

I have found that trying to do the same with a python distro built with --enable-shared is basically impossible because in this case sys.prefix is hardcoded and it dos not respond (like the framework structure) to the same @rpath methods used by Greg.

It would be great for those who embed python for a fun or profit to have these issues addressed across all of the standard build structures.
History
Date User Action Args
2022-03-14 13:56:58shakfusetrecipients: + shakfu, ronaldoussoren, ned.deily, njs, erlendaasland, gregneagle, tomgoddard, macmule
2022-03-14 13:56:58shakfusetmessageid: <1647266218.77.0.404781733125.issue42514@roundup.psfhosted.org>
2022-03-14 13:56:58shakfulinkissue42514 messages
2022-03-14 13:56:58shakfucreate