View Single Post
Old 07-12-2020, 04:01 PM   #7
Boilerplate4U
Enthusiast
Boilerplate4U began at the beginning.
 
Boilerplate4U's Avatar
 
Posts: 39
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
Quote:
Originally Posted by kovidgoyal View Post
The py3 branch. And if you want to run calibre from source using a binary read https://manual.calibre-ebook.com/develop.html
Thanks!

Fyi, the following settings are required by PyCharm to work on macOS (ie set by launcher "caliber-debug"). In the example below Calibre is cloned to "/Users/lars/src/calibre"

Code:
CloneRoot = /Users/lars/src/calibre
CALIBRE_DEVELOP_FROM = CloneRoot/src  <======
PHP Code:
sys.path
=========
/
Users/bob/lars/calibre/src         (env "CALIBRE_DEVELOP_FROM")
/
Applications/calibre.app/Contents/Resources/Python/lib/python2.7
/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/lib-dynload
/Applications/calibre.app/Contents/Resources/Python/site-packages
/Applications/calibre.app/Contents/Resources/Python

os
.environ
==========
CALIBRE_DEVELOP_FROM=/Users/lars/src/calibre/src
FONTCONFIG_PATH
=/Applications/calibre.app/Contents/Resources/fonts
FONTCONFIG_FILE
=/Applications/calibre.app/Contents/Resources/fonts/fonts.conf
PYTHONIOENCODING
=UTF-8
IPYTHONDIR
=/Users/lars/Library/Caches/calibre/ipython
SSL_CERT_FILE
=/Applications/calibre.app/Contents/Resources/resources/mozilla-ca-certs.pem

sys
.exec_prefix
===============
/
Applications/calibre.app/Contents/Resources/Python 
Boilerplate4U is offline   Reply With Quote