View Single Post
Old 10-10-2021, 03:58 AM   #9
fake-name
Member
fake-name began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2008
Device: PRS-505
Quote:
Originally Posted by xxyzz View Post
I write the information of each package to a json file then call pip to install them and finally add the folder to sys.path. Please check out the code at https://github.com/xxyzz/WordDumb/bl...2/unzip.py#L51

FYI, mac can't load unsigned compiled library.
This seems to install the packages using the system python, not calibre python? How do you handle the fact that the system python may not match the calibre python?

I'm futzing with trying to get pip installed, but the fact that calibre ships a extremely cut-down `site` package is currently breaking it.

Also, the fact that building calibre with tweaks in the bypy layer is completely undocumented (it's actually worse, the documentation is /wrong/, not missing) doesn't help
fake-name is offline   Reply With Quote