Skip to content

Commit

Permalink
Convenient way to build a dependency for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 3, 2019
1 parent cb8b181 commit 24baafd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup/installers.py
Expand Up @@ -180,11 +180,16 @@ class BuildDep(Command):
description = (
'Build a calibre dependency. For e.g. build_dep windows expat.'
' Without arguments builds all deps for specified platform. Use windows 32 for 32bit.'
' Use build_dep all somedep to build a dep for all platforms.'
)

def run(self, opts):
args = opts.cli_args
build_dep(args)
if args and args[0] == 'all':
for x in ('linux', 'linux 32', 'macos', 'windows', 'windows 32'):
build_dep(x.split() + list(args)[1:])
else:
build_dep(args)


class ExportPackages(Command):
Expand Down

0 comments on commit 24baafd

Please sign in to comment.