Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-03-04 22:39:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-04 22:40:47 +0400
commit7cb8b6f538b735e0e6019663b36d39b54491b5ac (patch)
tree665f2d11e5ab219ae21671b1589269aace8ac943 /source
parent9ecf73f7036c9d8482d95075916f48f9a7a806c1 (diff)
Build system: add cmake option to install requests
Diffstat (limited to 'source')
-rw-r--r--source/creator/CMakeLists.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 0f8de9f80b5..10421ef5fb9 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -522,7 +522,19 @@ if(UNIX AND NOT APPLE)
PATTERN "*.a" EXCLUDE # ./core/lib/libnpymath.a - for linking, we dont need.
)
endif()
-
+
+ # Copy requests, we need to generalize site-packages
+ if(WITH_PYTHON_INSTALL_REQUESTS)
+ install(
+ DIRECTORY ${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/requests
+ DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/site-packages
+ PATTERN ".svn" EXCLUDE
+ PATTERN "__pycache__" EXCLUDE # * any cache *
+ PATTERN "*.pyc" EXCLUDE # * any cache *
+ PATTERN "*.pyo" EXCLUDE # * any cache *
+ PATTERN "cacert.pem" EXCLUDE # for now we don't deal with security
+ )
+ endif()
unset(_target_LIB)
endif()