Organizing a Python project with C++ modules

View: New views
3 Messages — Rating Filter:   Alert me  

Organizing a Python project with C++ modules

by Randolph Fritz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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...?

Also, does PyDev provide any support for distutils?

--
Randolph Fritz
  design machine group, architecture department, university of washington
rfritz@... -or- rfritz333@...


------------------------------------------------------------------------------
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
pydev-code@...
https://lists.sourceforge.net/lists/listinfo/pydev-code

Re: Organizing a Python project with C++ modules

by Fabio Zadrozny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Randolph,

On Tue, Nov 3, 2009 at 9:11 PM, Randolph Fritz <rfritz333@...> 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@... -or- rfritz333@...
>
>
> ------------------------------------------------------------------------------
> 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
> pydev-code@...
> https://lists.sourceforge.net/lists/listinfo/pydev-code
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pydev-code mailing list
pydev-code@...
https://lists.sourceforge.net/lists/listinfo/pydev-code

Re: Organizing a Python project with C++ modules

by Randolph Fritz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> On Tue, Nov 3, 2009 at 9:11 PM, Randolph Fritz <rfritz333@...> wrote:
>> [description of mixed C++/Python project]

On 2009-11-05, Fabio Zadrozny <fabioz@...> wrote:
>
> Both approaches work... [...]

Thanks!  That helps a lot!

Randolph

--
Randolph Fritz
  design machine group, architecture department, university of washington
rfritz@... -or- rfritz333@...


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pydev-code mailing list
pydev-code@...
https://lists.sourceforge.net/lists/listinfo/pydev-code