List Info

Thread: slightly harder n00b question




slightly harder n00b question
country flaguser name
United States
2007-09-04 13:23:20
Hi Again,

So, I have finished my first cherrypy program (yay!), and
now I have
to think about deploying it. But there are two things that
have to be
sorted out first:

1) As part of the program needs to be very fast, it will
have to be
rewritten in C/C++... Can anyone recommend a system to use?
I am
currently considering the boost.python library.

2) How do you deploy a system with C++ dlls?

Thank in Advance!

David


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: slightly harder n00b question
user name
2007-09-04 14:01:25
+ ctypes to use a c/c++ dll
+ rewritting in pyrex instead of c/c++ and creatign a c-fast
module
+ ...

all I can think of for now.

EuGeNe -- http://www.3kwa.com

On 9/4/07, Dr Mephesto <dnhknggooglemail.com> wrote:
>
> Hi Again,
>
> So, I have finished my first cherrypy program (yay!),
and now I have
> to think about deploying it. But there are two things
that have to be
> sorted out first:
>
> 1) As part of the program needs to be very fast, it
will have to be
> rewritten in C/C++... Can anyone recommend a system to
use? I am
> currently considering the boost.python library.
>
> 2) How do you deploy a system with C++ dlls?
>
> Thank in Advance!
>
> David
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: slightly harder n00b question
user name
2007-09-04 16:30:08
On 9/4/07, Dr Mephesto <dnhknggooglemail.com> wrote:
> 1) As part of the program needs to be very fast, it
will have to be
> rewritten in C/C++... Can anyone recommend a system to
use? I am
> currently considering the boost.python library.

How complex is the interface the c-code must expose to
Python? If it's
simple (a handful of functions with simple parameters/return
values)
you can write a straight-up c-extension module fairly
easily:
http://docs.pyt
hon.org/ext/intro.html

Haven't used other methods myself so I might not be the best
to judge.

> 2) How do you deploy a system with C++ dlls?

Depending on if you can compile on the target system, have a
look at:
http://docs.python.org/dist/describing-extensions.html


Another way (which I use most of the time) are setuptools
and Eggs:
ht
tp://peak.telecommunity.com/DevCenter/setuptools

You could have a look at how other people do it, for example
MySQLdb
which includes a C-module (_mysql):
http://mysql-python.svn.sourceforge.ne
t/viewvc/mysql-python/trunk/MySQLdb/

Arnar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )