View Single Post
Old 04-13-2018, 01:18 PM   #1
gabox01
Junior Member
gabox01 began at the beginning.
 
Posts: 7
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