Created
May 31, 2016 14:51
-
-
Save zorun/5d2495ef5547e6df3a5ede68cc97dea1 to your computer and use it in GitHub Desktop.
Python packaging suggestion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt | |
index cd17547..22bf4a0 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})") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment