Hello,
What's the best way to declare sqldrivers in a py2app setup.py file?
I'm in the throes of building my app for OSX, using py2ap for the
first time. One of the issues I'm still facing is how to include
PostgreSQL support and the QPSQL driver in the build process. I'm
building using tools and libraries from MacPorts, (python25) which
doesn't appear to have installed sqldrivers.
Does libqsqlpsql.dylib (which I have in my development downloads) need
to be copied to the app bundle manually? If so, to where?
My setup.py file is attached.
I've found numerous hits on how to build PyQt apps using py2app, but
none illustrate including db support files.
Thanks in advance!
Scott
from setuptools import setup
APP = ['Y-Film.py']
OPTIONS = {'argv_emulation': True, 'includes': ['sip', 'PyQt4._qt', 'PyQt4.QtSql']}
setup(
app=APP,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
# /opt/local/src/qt-mac-commercial-src-4.4.2/plugins/sqldrivers/libqsqlpsql.dylib
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt