Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 04-13-2018, 01:18 PM   #1
gabox01
Junior Member
gabox01 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2018
Device: gabox01
Need help in setting up a Development environment

Hello,

Quote from the docs:

"The next step is to set the environment variable CALIBRE_DEVELOP_FROM to the absolute path of the src directory. So, following the example above, it would be /home/kovid/work/calibre/src. How to set environment variables depends on your Linux distribution and what shell you are using."

What's the reason behind this? I don't want to run any pre-made binaries, I'd like to run the whole thing from source, including the GUI. Any way to achieve that?

"That’s it! You are now ready to start hacking on the calibre code. For example, open the file src\calibre\__init__.py in your favorite editor and add the line:

print ("Hello, world!")
near the top of the file. Now run the command calibredb. The very first line of output should be Hello, world!"


I don't understand this.Why should I run calibredb after making changes to the source? Run what command with calibredb?

Sorry if I look dumb, but I would expect source files, libraries, and a main method to run. Nothing else.

Thanks
gabox01 is offline   Reply With Quote
Advert
Old 04-13-2018, 09:08 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 32,574
Karma: 9906320
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You are running the whole thing from source including the GUI.

And using calibredb is simply an easy way to check that you have setup things correctly.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Calibre development environment EngelEatos Development 2 02-13-2018 09:46 PM
Setting up a development environment ... BWinmill Kobo Developer's Corner 27 06-16-2014 08:21 AM
"Setting up a calibre development environment" documentation suggestion trying Development 1 03-30-2014 10:25 PM
Setting up Mac Calibre development environment? pdurrant Calibre 2 01-06-2009 07:10 AM
Setting up development environment tompe OpenInkpot 9 08-27-2008 02:26 PM


All times are GMT -4. The time now is 03:27 PM.


MobileRead.com is a privately owned, operated and funded community.