View Single Post
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#7
Originally Posted by attila77 View Post
Easy people, Qt dependencies are still being ironed out. The python-qt4 I pushed to extras-testing is the first reference version that should be taken seriously under PR1.2.

Also, as a general rule of thumb with python to which pyqt is no exception - DEPEND ON WHAT YOU IMPORT. If you import QtGui and QtCore, then depend on those two. The python2.5-qt4(-doc) metapackages are for developers and tinkerers, NOT for applications.

Another thing - USE VERSIONED DEPENDENCIES. If you just toss in a generic python2.5-qt4-gui dependency, it does not say what version of Qt you want. So if someone did not upgrade to PR1.2, they might get the old, Qt4.5 version of PyQt4 which of course might not be what you want if your app is developed for Qt4.6.
I'm sorry to have now my comming out... But I'm a beginner (since 4 weeks learning with python and PyQt) - when I search here for "versioned dependencies" there are only 3 results, including this threat. Could you show me the way to a good documentation?

I'm using the py2deb package builder.
Currently I have this in the build.py:
Code:
    p.depends = "python2.5-qt4-core, python2.5-qt4-gui, python-osso, python-dbus, python2.5-qt4-sql"
Former I had this one:
Code:
    p.depends = "python2.5, python-osso, python-dbus, python2.5-qt4-sql"
This is the result of a EMail discussion with X-Fade. He helped me a lot, but it's actually also not really working.

As far as I understood you're saying I've done more than one mistake...

Actually I'm importing this in my code:
Code:
from PyQt4 import QtGui, QtCore, QtSql
import urllib2
import socket
import dbus
import dbus.glib
import time, threading
from os import path
from os import makedirs
How do I setup the dependancy correctly?