From aba6cc37fc02f70f7b417beab41851fc187c10f6 Mon Sep 17 00:00:00 2001 From: Fred Wenzel Date: Thu, 28 Apr 2011 09:50:48 -0700 Subject: [PATCH] Use python2.6 for update script, and added L10n compile step to script. --- bin/update_site.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) mode change 100755 => 100644 bin/update_site.py diff --git a/bin/update_site.py b/bin/update_site.py old mode 100755 new mode 100644 index 314ae4e..dbc2427 --- a/bin/update_site.py +++ b/bin/update_site.py @@ -23,14 +23,15 @@ ENV_BRANCH = { # 'environment': [PROJECT_BRANCH, VENDOR_BRANCH], - 'dev': ['base', 'master'], - 'stage': ['master', 'master'], + 'dev': ['base', 'master'], + 'stage': ['master', 'master'], 'prod': ['prod', 'master'], } GIT_PULL = "git pull -q origin %(branch)s" GIT_SUBMODULE = "git submodule update --init" SVN_UP = "svn update" +COMPILE_PO = "./compile.sh" EXEC = 'exec' CHDIR = 'chdir' @@ -54,6 +55,7 @@ def update_site(env, debug): commands += [ (CHDIR, os.path.join(here, 'locale')), (EXEC, SVN_UP), + (EXEC, COMPILE_PO), (CHDIR, here), ] elif os.path.exists(os.path.join(here, 'locale', '.git')): @@ -68,8 +70,8 @@ def update_site(env, debug): (EXEC, GIT_PULL % vendor_branch), (EXEC, GIT_SUBMODULE), (CHDIR, os.path.join(here)), - (EXEC, 'python vendor/src/schematic/schematic migrations/'), - (EXEC, 'python manage.py compress_assets'), + (EXEC, 'python2.6 vendor/src/schematic/schematic migrations/'), + (EXEC, 'python2.6 manage.py compress_assets'), ] for cmd, cmd_args in commands: