]> git.ipfire.org Git - thirdparty/lxc.git/commit
build: Make setup.py run from srcdir to avoid distutils errors
authorDaniel Miranda <danielkza2@gmail.com>
Mon, 25 Aug 2014 21:16:43 +0000 (18:16 -0300)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 25 Aug 2014 23:10:47 +0000 (19:10 -0400)
commitf4eddfef90c41595905ff45a92ca6e9e954d279b
treed73cebd6743639ae3e766aa5b39787e9cdd75b3d
parent0efd7f7fc5255c9186ac073de9b47d5d93735eb8
build: Make setup.py run from srcdir to avoid distutils errors

distutils can't handle paths to source files containing '..'. It will
try to navigate away from the build directory and fail. To fix that,
before building the python module, transform all the path variables then
cd to the srcdir, and set the build directory manually.

This is hopefully the last needed fix to use separate build and
source diretories.

Signed-off-by: Daniel Miranda <danielkza2@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/python-lxc/setup.py.in