[PyQt] PyQt make error ubuntu 12.04

Phil Thompson phil at riverbankcomputing.com
Tue Feb 18 09:07:49 GMT 2014


On 17-02-2014 11:55 pm, David Boddie wrote:
> On Mon Feb 17 22:23:46 GMT 2014, Phil Thompson wrote:
>
>> I only ever use Python built from python.org, I never use a distros
>> version.
>>
>> Can you run...
>>
>> python -m sysconfig
>>
>> ...and see if the correct directory shows up as one of the paths?
>
> This doesn't print anything out. Should it? (I'm not trying to be 
> obtuse
> here, I don't follow the latest Python developments closely.)

Should do for Python v2.7, but I was after the info you show below.

> This is what I get if I use the get_paths() function, which should
> apparently show all the installation paths:
>
> Python 2.7.3 (default, Jan  2 2013, 13:56:14)
> [GCC 4.7.2] on linux2
> Type "help", "copyright", "credits" or "license" for more 
> information.
>>>> import sysconfig
>>>> sysconfig.get_paths()
> {'platinclude': '/usr/local/include/python2.7', 'platstdlib':
> '/usr/lib/python2.7', 'platlib': 
> '/usr/local/lib/python2.7/dist-packages',
> 'purelib': '/usr/local/lib/python2.7/dist-packages', 'stdlib':
> '/usr/lib/python2.7', 'scripts': '/usr/local/bin', 'include':
> '/usr/local/include/python2.7', 'data': '/usr/local'}
>
> I'm guessing that this is wrong, at least for the "include" entry, so 
> it
> may be time to report a bug against the python2.7 package in Debian.

Looks wrong to me. I wouldn't expect to see references to (for example) 
/usr/lib and /usr/local/lib. I wouldn't expect the distro version of any 
package to go anywhere near /usr/local.

> It seems that a workaround for Pablo would be to install Python from 
> source,
> then install sip and PyQt using that Python installation.
>
> Unless someone else can suggest an alternative solution...
>
> David

Phil


More information about the PyQt mailing list