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