I have an custom install of python 2.7
/opt/python7.2/ built from source using the following flags:
./configure --prefix=/opt/python-2.7/ --enable-shared and
make altinstall; make install on a RHEL 6.2 and RHEL 5.5 with a few 3rd party modules (Numpy, SciPy and all supporting libs) installed in the python site-packages dir.
I have no issues importing these 3rd party packages if I run python with the non root user that I installed them with, nor with root. This is tested by importing numpy and then testing with
numpy.test("full") However if I try importing these same packages as a different user I get an error saying that the module doesn't exist.
I have traced the issue down to the site-package permissions set to 700. I can change the sit-packages to -R 755 * and import and numpy and try run the tests but I find that there are now a bunch of python imports that fail, this is also due to the 700 permissions. But when i -R 755 * at
/opt/python2.7 ... nothing works
I have looked all over the internet for an answer for the following two questions: 1/ is there a flat that I am missing at python build || python install 2/ what folders can I change to 755 so that these 3rd party modules will run?