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 # Author: Adrien Béraud #