View Single Post
Old 07-17-2011, 12:38 PM   #28
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Agama View Post
Should there be a Python sub-folder somewhere in this structure? The Bazaar installer mentioned a bundled Python 2.6 interpreter.
There is no python subfolder. Python is bundled with the calibre binary, which you must install as well. You will test by setting the environment variable as documented, then using calibre-debug -g to start using your source.

However, as you are building plugins, there is no particular reason to run from source. You could start the normal calibre, then install and test the plugin. Perhaps someone who does more plugin development will provide some best-practice hints.
Quote:
Is there a document describing the various sub-folders of the calibre source, (customize, db, gui2, library etc.)?
No.

Almost certainly the only folders you are interested in are src/calibre and resources.
Quote:
How do I keep this source code up to date with each calibre release?
Assuming you are not making changes to the calibre source, cd to the calibre folder (the one containing src) and run bzr pull. That will grab the newest source. If you are making changes, then you will need to commit those changes (bzr commit) then merge the changes from launchpad (bzr merge).
chaley is offline   Reply With Quote