[PyQt] Why does SIP's configure.py default install sip.h into /usr/include ?

Russell Warren russ at perspexis.com
Mon Feb 9 18:00:03 GMT 2015


So no penalty to moving it around with --incdir for subsequent wrapper
compilations?

fwiw, `distutils.sysconfig.get_python_inc(prefix=sys.prefix)` might be
better, per this link:

https://groups.google.com/forum/#!topic/python-virtualenv/cGHNERdF1yE

Not sure how far back that prefix arg goes, though.

>>> import distutils
>>> import sys
>>> distutils.sysconfig.get_python_inc()
'/usr/include/python2.7'
>>> distutils.sysconfig.get_python_inc(prefix=sys.prefix)
'/home/russ/.virtualenvs/sip_fiddling/include/python2.7'
>>>

Russ



On Mon, Feb 9, 2015 at 12:49 PM, Phil Thompson <phil at riverbankcomputing.com>
wrote:

> get_python_inc
>




-- 
Russell Warren
Perspexis Technologies Inc.

This information is confidential and intended solely for the use of the
individual or entity to whom it is addressed.
If you have received this email in error, please notify the sender
immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150209/908fdc50/attachment.html>


More information about the PyQt mailing list