Quote:
Originally Posted by eschwartz
The instructions explicitly state "You have two choices in setting up the development environment. You can install the calibre binary as normal and use that as a runtime environment to do your development."
You've chosen to look at the binary install development method, rather than setting up a Linux source build. If you didn't want to run someone else's premade binaries, then obviously you need to build them yourself...
But, are you trying to develop the C extension code? If not, what is wrong with using the pre-made binaries together with your modified python code?
What makes you think you're not running a main() method? That command runs:
Code:
from calibre.db.cli.main import main
sys.exit(main())
Which is definitely a main() method. It just happens to first execute calibre/__init__.py before doing anything else interesting.
|
I guess I just don't understand this whole 'use the binary as runtime' concept. Your explanation didn't make anything clearer to me in that regard.
I'm not familiar with python, but in the Java world, when I want to run any app from source, I compile the sources, look for the main class, and just run the thing. No precompiled binaries needed. Please explain to me at a kindergarten level why this is even an option because i don't get it.