Preparing for a point release

Richard Laager rlaager at
Fri Dec 8 20:42:53 UTC 2017

I agree that your system does not have /usr/local in its sys.path by

I think that's broken.

Here's the relevant RedHat bug:

It is closed with, "F27 will have this issue resolved.".

For existing systems, there are three solutions:


1) Ignore prefix and install to /usr. This is Fred Wright's solution and
is what is seemingly the point of I think this is
wrong; prefix should be respected unless explicitly overridden by

2) Set PYTHONPATH. Fred Wright said there was a consensus that this is

3) Create a .pth file in the appropriate place, which is somewhere under
/usr. There are probably existing ones:
find /usr/lib*/python2.7 -name "*.pth"

You'd want to do something like (as root):

cat > /usr/lib64/python2.7/site-packages/local.pth << EOF

mkdir -p /usr/local/lib64/python2.7/site-packages
mkdir -p /usr/local/lib/python2.7/site-packages


Given that this is fixed in the distro, I think the right trade-off is
to recommend #3, either in documentation and/or in a warning from waf if
the configured pythondir is not in sys.path. I would like to see the code removed, as it is creating new breakage.


More information about the devel mailing list