ignore __pycache__ dir for scons and cmake installation (py3.2 caches modules here).
This commit is contained in:
@@ -489,11 +489,13 @@ if env['OURPLATFORM']!='darwin':
|
|||||||
dn.remove('.svn')
|
dn.remove('.svn')
|
||||||
if '_svn' in dn:
|
if '_svn' in dn:
|
||||||
dn.remove('_svn')
|
dn.remove('_svn')
|
||||||
|
if '__pycache__' in dn: # py3.2 cache dir
|
||||||
|
dn.remove('__pycache__')
|
||||||
|
|
||||||
dir = os.path.join(env['BF_INSTALLDIR'], VERSION)
|
dir = os.path.join(env['BF_INSTALLDIR'], VERSION)
|
||||||
dir += os.sep + os.path.basename(scriptpath) + dp[len(scriptpath):]
|
dir += os.sep + os.path.basename(scriptpath) + dp[len(scriptpath):]
|
||||||
|
|
||||||
source=[os.path.join(dp, f) for f in df if f[-3:]!='pyc']
|
source=[os.path.join(dp, f) for f in df if not f.endswith(".pyc")]
|
||||||
# To ensure empty dirs are created too
|
# To ensure empty dirs are created too
|
||||||
if len(source)==0:
|
if len(source)==0:
|
||||||
env.Execute(Mkdir(dir))
|
env.Execute(Mkdir(dir))
|
||||||
|
@@ -241,6 +241,7 @@ if(WITH_INSTALL)
|
|||||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/blender/${BLENDER_VERSION}/scripts
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/blender/${BLENDER_VERSION}/scripts
|
||||||
PATTERN ".svn" EXCLUDE
|
PATTERN ".svn" EXCLUDE
|
||||||
PATTERN "*.pyc" EXCLUDE
|
PATTERN "*.pyc" EXCLUDE
|
||||||
|
PATTERN "__pycache__" EXCLUDE
|
||||||
)
|
)
|
||||||
install(
|
install(
|
||||||
DIRECTORY ${CMAKE_SOURCE_DIR}/release/datafiles/brushicons/
|
DIRECTORY ${CMAKE_SOURCE_DIR}/release/datafiles/brushicons/
|
||||||
|
Reference in New Issue
Block a user