Browse Source

deploy-ng: Allow platforms to be specified on the command line

This makes it easier to build for one platform even if multiple
platforms are specified in setup.py/cfg. For example:

python setup.py build_apps -p win_amd64

Or, for multiple platforms:

python setup.py build_apps -p win32,win_amd64
Mitchell Stokes 7 years ago
parent
commit
a42ebaea74
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/showutil/dist.py

+ 1 - 0
direct/src/showutil/dist.py

@@ -189,6 +189,7 @@ class build_apps(setuptools.Command):
     user_options = [
     user_options = [
         ('build-base=', None, 'directory to build applications in'),
         ('build-base=', None, 'directory to build applications in'),
         ('requirements-path=', None, 'path to requirements.txt file for pip'),
         ('requirements-path=', None, 'path to requirements.txt file for pip'),
+        ('platforms=', 'p', 'a list of platforms to build for'),
     ]
     ]
     default_file_handlers = {
     default_file_handlers = {
         '.egg': egg2bam,
         '.egg': egg2bam,