[CRIU] [PATCH] p.haul: Add pycriu to the pythonpath

Ruslan Kuprieiev kupruser at gmail.com
Fri May 8 12:25:23 PDT 2015


Hi Hui,

I've sent a patch "[PATCH] criu: crit-install: use $PREFIX with --prefix 
instead of $DESTDIR"
to fix your problem. Could you try it and tell me if it works for 
you?(i.e. you should be
able to just "make install" criu without altering PYTHONPATH)

Thanks,
Ruslan

On 08.05.15 21:46, Ruslan Kuprieiev wrote:
> Hi Hui,
>
> On 08.05.15 21:42, Hui Kang wrote:
>> Some python dist can not find the pycriu in the path.
>> So we need to explicitly add to the path.
>> The HOWTO also misses a command about how to compile the criu
>> RPC bindings
>>
>> Signed-off-by: Hui Kang hkang.sunysb at gmail.com 
>> <mailto:hkang.sunysb at gmail.com>
>> ---
>>  test/mtouch/HOWTO | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/test/mtouch/HOWTO b/test/mtouch/HOWTO
>> index 482adec..8dcac33 100644
>> --- a/test/mtouch/HOWTO
>> +++ b/test/mtouch/HOWTO
>> @@ -47,6 +47,11 @@ from one node ot another (nodes can be VMs).
>>         ... stats.proto -> ../criu/protobuf/stats.proto
>>
>>     * Compile CRIU RPC bindings with 'make'
>> +
>> +        # cd criu
>> +        # make crit install
>> +        # export PYTHONPATH=/local/lib/python2.7/dist-packages/
>> +
>
> Oh, I see what is going on... Looks like criu Makefile doesn't handle 
> DESTDIR properly
> when installing crit and pycriu, so crit-setup.py installs everything 
> in a wrong place.
>
> You should not have to use PYTHONPATH. I'll send a patch shortly.
>
>>     * Create _local_ directory for images
>>
>>         # mkdir -p /var/local/p.haul-fs/
>> --
>> 1.9.1
>>
>
> Thanks,
> Ruslan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150508/5feedc82/attachment.html>


More information about the CRIU mailing list