[PyQt] pyqtdeploy ubuntu site-packages versus /usr/local/lib/.../dist-packages

Phil Thompson phil at riverbankcomputing.com
Fri May 16 05:11:18 BST 2014


On 15/05/2014 11:14 pm, lloyd konneker wrote:
> I am trying pyqtdeploy on Ubuntu 14.04 and OSX.
> 
> I have some third-party packages installed using '>python3 setup.py
> install' and in Ubuntu they go to
> /usr/local/lib/python3.4/dist-packages.  (Actually the third-party is
> me, they are just separate projects, and it's possible that setup.py
> is not correct).  But on OSX, they seemed to go to a different places,
> a site-packages directory.
> 
> Using pyqtdeploy, under Locations>SitePackages,  on OSX pyqtdeploy
> shows said packages, but not on Ubuntu.
> 
> I tried adding /usr/local/lib/python3.4/dist-packages to PYTHONPATH,
> but that didn't make them show up as site packages in pyqtdeploy.
> 
> I would guess that its a convention/standardization problem, that
> Debian or Ubuntu argues against letting 'users' (as opposed to
> administrators) install to /usr/lib and insists they install to
> /usr/local/lib.
> 
> Should pyqtdeploy call these packages 'third party packages', and look
> in both places?
> 
> Its not a big problem, I suppose I can just sudo and copy the packages
> to where pyqtdeploy will find them.
> 
> Or have I made a mistake?

The assumption is that there is a single directory where all 3rd party 
packages have been installed (ie. site-packages). This assumption is 
based on another assumption that you will be using a Python installation 
you have built yourself (ie. without any distro specific complications) 
including 3rd party packages. I can see that using (pure Python) 3rd 
party packages installed in the distro's Python will be very convenient 
so I'll add it to a future version.

Phil


More information about the PyQt mailing list