On 3/26/07, Greg Copeland <[EMAIL PROTECTED]> wrote:
>
>
> I took your example and ran with it since I understood what you were
> trying to do.  I now have:
> import os
> import glob
> import sqlalchemy.databases
> hiddenimports = []
> for f in
> glob.glob(os.path.join( os.path.dirname( sqlalchemy.databases.__file__ ),
> "*.py" ) ):
>     f = os.path.basename(f)
>     f = os.path.splitext(f)[0]
>     if f != "__init__":
>         hiddenimports.append(f)


You're appending filenames, not modulenames!


My app still isn't working yet.  I'll keep trying.  I'll update you so
> you can add the hook to the distribution once I have something that
> works.
>
> Greg
>
>
> On Mar 22, 6:26 pm, Giovanni Bajo <[EMAIL PROTECTED]> wrote:
> > On 22/03/2007 21.21, Greg Copeland wrote:
> >
> > > I'm having the hardest time getting a SQLAlchemy application to be
> > > packaged with PyInstaller.  Works great using cx_Freeze by using '--
> > > include-modules="sqlalchemy.databases.oracle"'.  What is PyInstaller's
> > > mechanism that does the same?
> >
> > I had a quick look to sqlalchemy. Try creating a file called
> > "hook-sqlalchemy.py" into the "hooks" directory of PyInstaller with the
> > following contents:
> >
> > ==== hook-sqlalchemy.py =====
> >
> > import sqlalchemy.databases
> > hiddenimports = []
> > for n in dir(sqlalchemy.databases):
> >      hiddenimports.append("sqlalchemy.databases." + n)
> >
> > =============================
> >
> > (totally untested, but I guess you get the idea). Let me know if it
> works...
> > --
> > Giovanni Bajo
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to