[Bf-blender-cvs] [7cb9b49] master: Buildbot: De-duplicate some path definitions in pack target

Sergey Sharybin noreply at git.blender.org
Thu Dec 3 11:17:53 CET 2015


Commit: 7cb9b49f73f1c172e3cfc29cbf5dec74c0a10c26
Author: Sergey Sharybin
Date:   Thu Dec 3 15:08:36 2015 +0500
Branches: master
https://developer.blender.org/rB7cb9b49f73f1c172e3cfc29cbf5dec74c0a10c26

Buildbot: De-duplicate some path definitions in pack target

Should be no functional changes.

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

M	build_files/buildbot/slave_pack.py

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

diff --git a/build_files/buildbot/slave_pack.py b/build_files/buildbot/slave_pack.py
index 6b12c13..44ff385 100644
--- a/build_files/buildbot/slave_pack.py
+++ b/build_files/buildbot/slave_pack.py
@@ -36,6 +36,10 @@ builder = sys.argv[1]
 # Never write branch if it is master.
 branch = sys.argv[2] if (len(sys.argv) >= 3 and sys.argv[2] != 'master') else ''
 
+blender_dir = os.path.join('..', 'blender.git')
+build_dir = os.path.join('..', 'build', builder)
+install_dir = os.path.join('..', 'install', builder)
+
 upload_filename = None  # Name of the archive to be uploaded
                         # (this is the name of archive which will appear on the
                         # download page)
@@ -65,8 +69,6 @@ if builder.find('scons') != -1:
 
     buildbot_dir = os.path.dirname(os.path.realpath(__file__))
     config_dir = os.path.join(buildbot_dir, 'config')
-    build_dir = os.path.join('..', 'build', builder)
-    install_dir = os.path.join('..', 'install', builder)
 
     if builder.find('linux') != -1:
         scons_options += ['WITH_BF_NOBLENDER=True', 'WITH_BF_PLAYER=False',
@@ -136,7 +138,6 @@ if builder.find('scons') != -1:
 else:
     # CMake
     if 'win' in builder:
-        build_dir = os.path.join('..', 'build', builder)
         os.chdir(build_dir)
 
         files = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.zip')]
@@ -171,9 +172,6 @@ else:
             sys.exit(1)
 
     elif builder.startswith('linux_'):
-        blender_dir = os.path.join('..', 'blender.git')
-        build_dir = os.path.join('..', 'build', builder)
-        install_dir = os.path.join('..', 'install', builder)
 
         blender = os.path.join(install_dir, 'blender')
         blenderplayer = os.path.join(install_dir, 'blenderplayer')




More information about the Bf-blender-cvs mailing list