Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As dkanbier said, Python on RHEL6 does not have the site.getsitepackages method. I think if you replace:

SITE_DIRS=$(python -c "import site; import os; print os.linesep.join(site.getsitepackages())")


    python -c "import sys; import site; import os; print (hasattr(site, 'getsitepackages') and os.linesep.join(site.getsitepackages()) or os.linesep.join(sys.path))"

That you'll end up with something that does the right thing.