Dear Calibre community, sorry for asking here but I could not find answers so far how to setup the complete Windows development environment for calibre. I just want to know if there is any more or less detailed description how to do it.
What I tried and what I want: I am a developer for embedded software and years ago I used Visual C++ to develop a GUI Control Monitor. Technology evolved and why not to learn Python and Qt now? Calibre is just a great program and I really enjoy using it. I like to learn from example and wish to analyze the calibre source code and its build environment. I followed the instructions in
http://manual.calibre-ebook.com/develop.html and succeeded with print ("Hello, world!").
But adding the line from “calibre import ipython” brought:
C:\Program Files (x86)\Bazaar\calibre\src>calibredb
Hello, world!
Python function terminated unexpectedly
cannot import name ipython (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 108, in run_entry_point
File "C:\Program Files (x86)\Bazaar\calibre\src\calibre\__init__.py", line 43, in <module>
from calibre import ipython
ImportError: cannot import name ipython
I changed the line to “from calibre.utils import ipython” and succeeded with loading without knowing it is correct now or not. Probably not, because “ipython(locals())” gave me:
C:\Program Files (x86)\Bazaar\calibre\src>calibredb
Hello, world!
Python function terminated unexpectedly
'module' object is not callable (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 108, in run_entry_point
File "C:\Program Files (x86)\Bazaar\calibre\src\calibre\__init__.py", line 41, in <module>
ipython(locals())
TypeError: 'module' object is not callable
Despite of this I wondered how to build all the *.exe and *.dll Files inside the binary calibre install directory. I found the link
http://oldbugs.calibre-ebook.com/wik...owsDevelopment, but it is more than 2 years old, so I do not know if it is the nowadays way to setup the complete Windows development environment for calibre.
I would expect some sort of make Environment. May be I just did not found the right link. Any hint would be very helpful.
teaage