Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
explictly specify targets to be used for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkulz committed Nov 22, 2016
1 parent 5ee4681 commit 2efc11d
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,12 @@

import os, sys, platform, subprocess, build

def get_build_targets():
map = {}
for k, v in build.BUILDERS.iteritems():
if not v in map:
map[v] = []
map[v].append(k)
map[v].sort()
return map

def get_targets():
if platform.system() == 'Windows':
return ['msvc2013-win32', 'msvc2013-win64']
elif platform.system() == 'Darwin':
builders = ['osx']
else:
builders = ['source_tarball', 'linux_schroot', 'mingw64_cross']

targets, map = [], get_build_targets()
for builder in builders:
targets.extend(map[builder])
return targets
PLATFORM_TARGETS = {
'Windows': ['msvc2015-win64', 'msvc2015-win32'],
'Darwin': ['osx-cocoa-x86-64', 'osx-carbon-i386'],
'Linux': ['source-tarball', 'linux-generic-amd64', 'linux-generic-i386',
'mingw-w64-cross-win64', 'mingw-w64-cross-win32']
}

def build_target(basedir, target):
build.message('*************** building: %s\n\n' % target)
Expand Down Expand Up @@ -73,7 +58,7 @@ def main():
build.shell('git submodule update')

status = {}
for target in get_targets():
for target in PLATFORM_TARGETS.get(platform.system(), []):
if not build_target(basedir, target):
status[target] = 'failed'
continue
Expand Down

0 comments on commit 2efc11d

Please sign in to comment.