View Single Post
Old 04-23-2011, 01:14 PM   #4
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by kiwidude View Post
So... what should I do next?
You have calibre checked out and on disk. You have Aptana installed and the Python interpreter setup. As well as your excludes. Perfect.

Now you want to create a new PyDev Project for calibre. File -> New -> PyDevProject. Put in the project name (calibre). Uncheck "Use Default." Change the directory to the calibre root dir (D:\CalibreDev\work\calibre). Click "Finished".

You now have a calibre project in Aptana. Let it work for a bit to parse the project and setup things like auto-complete.

Now we need to get you're plugins setup. I recommend a separate project for each plugin. Again, create a new PyDev Project. Set the project name to the name of the plugin. Change the directory to the root directory for the plugin. E.G. D:\CalibreDev\plugins\APNXWriterPlugin. If you don't have the source for the plugin in a src sub folder uncheck "Create default 'src' folder...". Click Finish.

Right click on the plugin project. Select, Properties. Select "PyDev - PYTHONPATH" on the left. Set the src folder for the plugin. E.G. /APNXWriterPlugin/src. Now change to the "External Libraries" Tab. Select "Add source folder" and select caibre's source folder (D:\CalibreDev\work\calibre\src). Click Apply then Okay.

If you have an issue at some point where the auto complete isn't working go back into "External Libraries" and click "Force restore internal info".

That's my setup.
user_none is offline   Reply With Quote