[Bf-blender-cvs] [8121fedbf5c] tmp_libupdate_34: Move usercustomize.py to less conspicuous location

Brecht Van Lommel noreply at git.blender.org
Thu Aug 25 15:21:21 CEST 2022


Commit: 8121fedbf5cbe1fdb8588746680a88e024261bb4
Author: Brecht Van Lommel
Date:   Thu Aug 25 14:44:11 2022 +0200
Branches: tmp_libupdate_34
https://developer.blender.org/rB8121fedbf5cbe1fdb8588746680a88e024261bb4

Move usercustomize.py to less conspicuous location

===================================================================

R072	release/scripts/usercustomize.py	release/windows/python/usercustomize.py
M	source/creator/CMakeLists.txt

===================================================================

diff --git a/release/scripts/usercustomize.py b/release/windows/python/usercustomize.py
similarity index 72%
rename from release/scripts/usercustomize.py
rename to release/windows/python/usercustomize.py
index 09b1be45ed9..8d752581183 100644
--- a/release/scripts/usercustomize.py
+++ b/release/windows/python/usercustomize.py
@@ -1,11 +1,9 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
+# Make shared libraries needed by modules available in standalone Python binary.
 
-#  Filename : usercustomize.py
-#  Author   : Brecht van Lommel
-#  Date     : 17/08/2022
-#  Purpose  : make shared libraries  needed by modules available in standalone Python binary
 import sys
 import os
+
 if sys.platform == 'win32':
     exe_dir, exe_file = os.path.split(sys.executable)
     if exe_file.startswith('python'):
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 7bb3dfa7d83..35b4fbacc03 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -389,11 +389,10 @@ if(WITH_PYTHON)
     PATTERN "__pycache__" EXCLUDE
     PATTERN "${ADDON_EXCLUDE_CONDITIONAL}" EXCLUDE
     PATTERN "${FREESTYLE_EXCLUDE_CONDITIONAL}" EXCLUDE
-    PATTERN "*usercustomize.py" EXCLUDE
   )
   if(WIN32)
     install(
-      FILES ${CMAKE_SOURCE_DIR}/release/scripts/usercustomize.py
+      FILES ${CMAKE_SOURCE_DIR}/release/windows/python/usercustomize.py
       DESTINATION ${TARGETDIR_VER}/python/lib/site-packages
     )
   endif()



More information about the Bf-blender-cvs mailing list