pcp
[Top] [All Lists]

Re: [pcp] Another build problem - python bits on Linux Mint 12

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Another build problem - python bits on Linux Mint 12
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 05 Mar 2014 19:15:45 +1100
Cc: PCP Mailing List <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1082118100.19105328.1393667279427.JavaMail.zimbra@xxxxxxxxxx>
References: <530FCCED.4000403@xxxxxxxxxxxxxxxx> <1082118100.19105328.1393667279427.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
On 01/03/14 20:47, Nathan Scott wrote:


----- Original Message -----
Platform - Linux Mint 12 Lisa
...
On this platform, python-all-dev pulls in BOTH python 2.6 and 2.7
...
Can someone who understand how the python build and packaging works please
investigate?

What does "pyversions -vr" say (needs to be run from top-level of the source
tree, oddly enough)?  This output is used to drive the build process (from
debian/rules, line ~160)

         for V in $(shell pyversions -vr); do \
             $(pkgpcp_python) $(MAKE) PYTHON=python$$V -C src/python install; \
         done

I am seeing this one two systems now ...

Linux Mint 12 (vm18)
kenj@vm18:~/src/pcp$ pyversions -vr
2.7 2.6

Debian 7.4 (vm21)
kenj@vm21:~/src/pcp$ pyversions -vr
2.7 2.6

And from Logs/pcp I see lines like

for V in 2.7 2.6; do \
export GZIP=-9q DIST_ROOT=`pwd`/debian/python-pcp; /usr/bin/make PYTHON=python$V -C src/python install; \
done

I think the problem is that the first make leaves 2.7 turds behind that are not remade for 2.6 ... adding /usr/bin/make -C src/python clean after the make install seems to fix this, but I don't know if that leaves the tree in a bozo state, and this sort of hack cannot possibly work for some other builds, like for tarball packaging.

It seems like you need to clone src/python for each version of Python that you want to build for, and descend into each of these in turn at each step in the build.

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