Re: [Pydev-code] Organizing a Python project with C++ modules
Brought to you by:
fabioz
From: Fabio Z. <fa...@es...> - 2009-11-05 12:43:26
|
Hi Randolph, On Tue, Nov 3, 2009 at 9:11 PM, Randolph Fritz <rfr...@gm...> wrote: > I have a project with a Python GUI, some boost.python C++ > visualization modules, & some external libraries I am try to import to > Eclipse. I need to be able to build and debug these together. > > What's the best way to approach this problem? Establish two separate > Eclipse projects for the Python and C++ code? Or...? Both approaches work... If you choose to put them in the same project, you have to add the folder that has the dlls created as a source to your pythopath. If you create 2 projects, you still have to set the C++ project as a pydev project and add the source folder to the pythonpath, and you also have to add a reference to that project from your pydev project. Personally, I think separating projects is better (as it's easier to configure the C++ portion of things). Don't forget that you have to do a ctrl+2+kill (with focus on the pydev editor) before you recompile your libraries (this is needed because the python shell spawned may lock those libraries and so that the shell is restarted to get the new completions from those dlls). > > Also, does PyDev provide any support for distutils? > Not right now. Cheers, Fabio > > -- > Randolph Fritz > design machine group, architecture department, university of washington > rfritz@u.washington.edu -or- rfr...@gm... > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |