Commits

Jason R. Coombs committed 91872f9

Added support for selecting specific targets to build. By default, now attempts to build all targets

Comments (0)

Files changed (1)

jaraco/develop/python.py

 
 def build_python():
 	parser = ArgumentParser()
+	parser.add_argument('-t', '--target', dest='targets', default=[],
+		action='append',)
 	options = parser.parse_args()
 	vs = VisualStudio.find()
 	env = vs.get_vcvars_env()
 		# subprocess in Python 2 doesn't accept unicode for env
 		env = dict((k.encode(), v.encode()) for k,v in env.iteritems())
 	msbuild = find_in_path('msbuild.exe', env['Path'])
-	cmd = [msbuild, 'pcbuild.sln', '/target:python',
+	cmd = [msbuild, 'pcbuild.sln',
 		'/p:Configuration=Release', '/p:Platform=x64']
+	if options.targets: cmd[2:2] = ['/target:' + ';'.join(options.targets)]
 	subprocess.check_call(cmd, env=env)