anaynayak / buildnotify

A system tray based build status notification app for cctray.xml feeds.
https://anaynayak.github.io/buildnotify/
Other
29 stars 7 forks source link

Attempting build on clean environment pre-requires PyQt #10

Closed anaynayak closed 7 years ago

anaynayak commented 13 years ago

Originally reported by: Saager Mhatre (Bitbucket: dexterous, GitHub: dexterous)


Because setup.py imports VERSION from buildnotifylib.config, it also ends up importing PyQT4. Hence, attempting to run a 'python setup.py build' on a vanilla checkout fails with 'ImportError: No module named PyQt4'


anaynayak commented 13 years ago

Original comment by Anay Nayak (Bitbucket: Anay, GitHub: Anay):


I was silently hoping that PyQt would support [[https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators|ApplicationIndicators]] so that the application works without any hacks on Ubuntu natty and beyond. I haven't seen an update yet which provides this support and it has been quite some time since Natty has been released.

I still love Qt for all the stuff that it provides, but Gtk seems to be more in sync with the changes happening around AppIndicators. I'm willing to give up all the programmer love given by PyQt if it makes things easier for BuildNotify's primary target audience (Ubuntu users).

anaynayak commented 13 years ago

Original comment by Saager Mhatre (Bitbucket: dexterous, GitHub: dexterous):


Hmm... kind of goes against your your original reasoning //in favour of // PyQT, doesn't it? :)

Anyway, this could also be a good opportunity to move a lot of the poll cycles and events out of UI code.

Let me know when you start this, would like to help.

anaynayak commented 13 years ago

Original comment by Anay Nayak (Bitbucket: Anay, GitHub: Anay):


According to http://stackoverflow.com/questions/4628519/is-it-possible-to-require-pyqt-from-setuptools-setup-py it seems that it is not possible to have PyQt configured as a dependency in setup.py.

On a side note, I am thinking of migrating away from PyQt to something like PyGTK so that things are easier on Ubuntu Unity and Gnome3.

anaynayak commented 13 years ago

Original comment by Saager Mhatre (Bitbucket: dexterous, GitHub: dexterous):


//This// bug is intended to make setup.py independent of all packages required (pyqt, pytz, et al). Basically, it should be possible to run...

python setup.py install

... in a vanilla checkout to build and install the current version as well as get all the dependencies installed.

That said, I haven't yet managed a PyQt install using easy_install or pip. It appears the tarball on riverbankcomputing.com doesn't seem to be setuptools compatible. Otherwise I'd figured out how to make setup.py independent and was going to submit a pull request. :P

anaynayak commented 13 years ago

Original comment by Anay Nayak (Bitbucket: Anay, GitHub: Anay):


Other than PyQt, the project also has dependencies on python-dateutil, pytz which are needed to run the application. Is the intent of this bug to separate out the VERSION number so that generating a build is easier? or is there more to it?