07-17-2011, 10:30 AM | #16 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Installed! Now running: bzr branch lp:calibre and could take a few minutes.
Do I need to get a Launchpad ID? |
07-17-2011, 10:31 AM | #17 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
Advert | |
|
07-17-2011, 10:32 AM | #18 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
07-17-2011, 10:36 AM | #19 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
I'm planning on starting with plugins.
By the way, where do all the files go that "bzr branch lp:calibre" is busy downloading? (On a Windows 7 system). |
07-17-2011, 10:45 AM | #20 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
You can move the created directory. |
|
Advert | |
|
07-17-2011, 11:04 AM | #21 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
I just opened a command prompt and typed the command. The command prompt's path is C:\User\username so I guess that's where it's going. Can I just cut and paste it to somewhere else or does Bazaar need to know about its location? On my start menu I now have a Bazaar Explorer. Will this be any use?
There is now a C:\User\username\calibre\.bzr folder with a few sub-folders but no significant volume of data, despite the bzr command having already downloaded over 240MB of data. Any estimate on how much it will download? Last edited by Agama; 07-17-2011 at 11:08 AM. |
07-17-2011, 11:09 AM | #22 | ||
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
It might be better to stay with the command line until you understand what bzr is doing. That will help avoid surprises. It is also what most people here are willing/able to help with, and what is documented in the calibre development pages. |
||
07-17-2011, 11:11 AM | #23 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Bzr downloads the repository, then recreates the source tree from that. You won't see any sources until it is very close to finished. IIRC, a new repository download is in excess of 300MB, and growing all the time.
|
07-17-2011, 12:05 PM | #24 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
After nearly 500MB this has finished and created a src folder with these sub-folders:
calibre, cherrypy, odf, pyPDF, routes and templite, (?but no python sub-folder?) Can I move this whole src folder to a different location, or just move the src/calibre folder? I now need to get up to speed in Python and then I'll try to rewrite my VBScript eBook scripts as calibre plugins. |
07-17-2011, 12:08 PM | #25 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You move the folder containing .bzr, src, icons, resources, etc. This should be named 'calibre'.
Also, check if there is a .bzr file in the parent folder (\users\username\.bzr). If there is one there, then you created a shared repository. In this case you must create a folder somewhere, then move both the .bzr and the calibre folders to that new folder. |
07-17-2011, 12:26 PM | #26 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
There's just a \users\username\calibre folder, containing .bzr, icons, resources etc. so I'll move this. There is no\users\username\.bzr folder.
Should there be a Python sub-folder somewhere in this structure? The Bazaar installer mentioned a bundled Python 2.6 interpreter. Is there a document describing the various sub-folders of the calibre source, (customize, db, gui2, library etc.)? |
07-17-2011, 12:28 PM | #27 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
How do I keep this source code up to date with each calibre release?
|
07-17-2011, 12:38 PM | #28 | |||
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
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:
Almost certainly the only folders you are interested in are src/calibre and resources. Quote:
|
|||
07-17-2011, 12:46 PM | #29 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Thanks for all the help, it's been much appreciated!
|
07-17-2011, 01:55 PM | #30 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Before I start on a plugin I am learning Python from the "Dive into Python" book. I have downloaded the sample .py files but I can't work out how to run one. Double-clicking just opens it in my text editor, so do I need to make a new association for .py files or is there a way to run one from a command prompt?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
IQ Is the IQ open source? | alexish | PocketBook | 1 | 01-30-2011 07:22 PM |
Open Source? | cipri | PocketBook | 6 | 11-10-2010 04:04 PM |
Open source | bradrice | Kindle Formats | 2 | 12-21-2009 09:30 AM |
Open source lrs2lrf | kovidgoyal | LRF | 14 | 07-25-2008 09:17 PM |
TrueCrypt V2.0 Open-Source | Alexander Turcic | Lounge | 1 | 06-21-2004 02:02 PM |