[PyQt] distutils/kde questions

Giacomo Lacava g.lacava at gmail.com
Wed Dec 19 12:38:39 GMT 2007


For my small apps, I used to maintain my own ad-hoc little installer
scripts. I've finally given up on that and moved to distutils for my
last project, KDelicious.
However, I'm not really happy.

Since I need to place some .desktop files in specific KDE directories,
and these directories can be different depending on whether you want
to install the extension for everyone or just one user, I had to add a
custom "--useronly" option so that the installer knows where to really
put those files. This is not clean, but what other options do I have?
Adding a custom command seems like a lot of work when I only want to
tweak the behaviour of one single parameter in the setup() call.

I tried kdedistutils (from pykdeextensions), but using them would mean
introduce a further dependency, which I'd rather not. Did anybody try
to ship them with the installer (as opposed to requiring that the user
install them first)? Do they it work?

Also, the script has some requirements. Since distutils doesn't
support denedency checks, I currently have a very raw try/except block
before the actual setup() call, which will stop the installation; this
means breaking all the distutils commands, even when somebody doesn't
want to actually install the package. Again, not very clean. Any
suggestions?

cheers
-- 
Giacomo Lacava


More information about the PyQt mailing list