pcp
[Top] [All Lists]

Re: QA Status - python tests

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: QA Status - python tests
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 05 Dec 2012 09:45:42 +1100
Cc: Nathan Scott <nathans@xxxxxxxxxx>, pcp@xxxxxxxxxxx
In-reply-to: <y0mzk1to6ko.fsf@xxxxxxxx>
References: <1162586249.39888846.1354609821476.JavaMail.root@xxxxxxxxxx> <1354614677.4291.20.camel@xxxxxxxxxxxxxxxx> <1354648014.4291.24.camel@xxxxxxxxxxxxxxxx> <y0mzk1to6ko.fsf@xxxxxxxx>
On Tue, 2012-12-04 at 16:23 -0500, Frank Ch. Eigler wrote:
> Ken McDonell <kenj@xxxxxxxxxxxxxxxx> writes:
> 
> > I can get 707 to pass if
> >     PYTHONPATH=/usr/lib/python2.7/site-packages
> > is set in the environment, so it looks like we're installing the modules
> > in place where my version of python (2.7) is not looking for the
> > modules.
> 
> What do these report?
> 
> % python -c 'import sys; print sys.path'

Looks like everything you can hit with a big stick _except_ the place
pcp_python is installing our modules ... (note dist-packages, not
site-packages)

$ python -c 'import sys; print sys.path'
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7']

> % make -C src/python install_python

Didn't want to run this as root in case I changed the problem, but ...

$ make -C src/python install_python
make: Entering directory `/home/kenj/src/pcp/src/python'
python setup.py install --skip-build --root=${DIST_ROOT-/}
--record=../../python-pcp.list --prefix=/usr
running install
running install_lib
warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no
Python modules to install

running install_egg_info
Removing /usr/lib/python2.7/site-packages/pcp-0.2-py2.7.egg-info
error: /usr/lib/python2.7/site-packages/pcp-0.2-py2.7.egg-info:
Permission denied
make: *** [install_python] Error 1
make: Leaving directory `/home/kenj/src/pcp/src/python'


> (With the latter, you'll notice we're using python's own installer;
> see also src/include/builddefs.in)
> 
> 
> - FChE


<Prev in Thread] Current Thread [Next in Thread>