From 711ba795f7abbae9d8315cda5a7221d6f18e13bc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 9 Feb 2011 00:45:16 +0000 Subject: ignore __pycache__ dir for scons and cmake installation (py3.2 caches modules here). --- SConstruct | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 03e61cd06b6..fe60d41c48d 100644 --- a/SConstruct +++ b/SConstruct @@ -489,11 +489,13 @@ if env['OURPLATFORM']!='darwin': dn.remove('.svn') if '_svn' in dn: dn.remove('_svn') - + if '__pycache__' in dn: # py3.2 cache dir + dn.remove('__pycache__') + dir = os.path.join(env['BF_INSTALLDIR'], VERSION) 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 if len(source)==0: env.Execute(Mkdir(dir)) -- cgit v1.2.3