From 475b26048f9875c62a8a950bd287a7ae6af3d803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com> Date: Wed, 1 Jun 2016 20:29:55 -0400 Subject: [PATCH] cmake: pass $DESTDIR environnement var to setup.py --- python/CMakeLists.txt | 2 +- python/setup.py.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index cd175475..6727fffd 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -8,4 +8,4 @@ add_custom_target(python ALL COMMAND python3 setup.py build DEPENDS opendht opendht_cpp.pxd opendht.pyx) -install(CODE "execute_process(COMMAND python3 setup.py install WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") +install(CODE "execute_process(COMMAND python3 setup.py install --root=\$ENV{DESTDIR}/ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") diff --git a/python/setup.py.in b/python/setup.py.in index c4654d3e..b2d94c22 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -1,4 +1,4 @@ -# Copyright (C) 2015-2016 Savoir-faire Linux Inc. +# Copyright (C) 2015-2016 Savoir-faire Linux Inc. # Author: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> # Author: Adrien Béraud <adrien.beraud@savoirfairelinux.com> # -- GitLab