On 6/28/06, Jimmy Retzlaff <jimmy@...> wrote:
> C=E9lio wrote:
> > Hi, i'm trying to add database Support to my python projet
> > (http://palabre.gavroche.net ), and Adodb works great for that.
> >
> > But I can't figure how to enable adodb in py2exe ?
> >
> > The only help I've seen is :
> > ADODB package Modules named adodb_xxx (like adodb_mysql) are not added
> > automatically, must be added explicitly
> >
> > But How ?
> > via : py_modules =3D ['adodb.adodb','adodb.adodb_mysql ' , ... ] in
> > setup.py?
>
> I haven't used adodb with py2exe, but adding the entire adodb package wou=
ld be the first thing I'd try...
>
> setup(
> console=3D["myapp.py"],
> options=3D{"py2exe": {"packages": ["adodb"]}}
> )
>
>
> Jimmy
>
Thanks a lot it seems to work a better. I foudna nother way , but i
had to list all the modules to include. This way is simpler :)
MySQL and SQLite are now working fine but not postgres (i don't have
other databases available to try )
Does ADODB only work with psycopg 1.x and not psycopg 2.x ?
thanks
C=E9lio
|