From c85265b4551acbc7adf41f47f612373e42e0176d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 28 Jul 2014 20:42:30 +0600 Subject: Make requests python package to be detected in the same way as numpy This solves missing requests package reported on the systems where it's located in dist-packages rather than in site-packages. To do this there's now a helper macros which handles both requests and numpy now and could be used for more packages in the future. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D686 --- source/creator/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/creator') diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 8deadb9c7b7..bd223b8d540 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -539,7 +539,7 @@ if(UNIX AND NOT APPLE) # Copy requests, we need to generalize site-packages if(WITH_PYTHON_INSTALL_REQUESTS) install( - DIRECTORY ${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/requests + DIRECTORY ${PYTHON_REQUESTS_PATH}/requests DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/site-packages PATTERN ".svn" EXCLUDE PATTERN "__pycache__" EXCLUDE # * any cache * -- cgit v1.2.3