Skip to content

Commit 7b805ef

Browse files
authored
Move --use-setup-py and --ignore-setup-py to generic_parser for create subcommand (#3350)
1 parent 70f9224 commit 7b805ef

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

pythonforandroid/toolchain.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,20 @@ def __init__(self):
332332
dest="blacklist_requirements",
333333
default='')
334334

335+
generic_parser.add_argument(
336+
'--use-setup-py', dest="use_setup_py",
337+
action='store_true', default=False,
338+
help="Process the setup.py of a project if present. " +
339+
"(Experimental!")
340+
generic_parser.add_argument(
341+
'--ignore-setup-py', dest="ignore_setup_py",
342+
action='store_true', default=False,
343+
help="Don't run the setup.py of a project if present. " +
344+
"This may be required if the setup.py is not " +
345+
"designed to work inside p4a (e.g. by installing " +
346+
"dependencies that won't work or aren't desired " +
347+
"on Android")
348+
335349
generic_parser.add_argument(
336350
'--bootstrap',
337351
help='The bootstrap to build with. Leave unset to choose '
@@ -497,19 +511,7 @@ def __init__(self):
497511
help='the directory with the app source code files' +
498512
' (containing your main.py entrypoint)',
499513
required=False, default=None)
500-
parser_packaging.add_argument(
501-
'--use-setup-py', dest="use_setup_py",
502-
action='store_true', default=False,
503-
help="Process the setup.py of a project if present. " +
504-
"(Experimental!")
505-
parser_packaging.add_argument(
506-
'--ignore-setup-py', dest="ignore_setup_py",
507-
action='store_true', default=False,
508-
help="Don't run the setup.py of a project if present. " +
509-
"This may be required if the setup.py is not " +
510-
"designed to work inside p4a (e.g. by installing " +
511-
"dependencies that won't work or aren't desired " +
512-
"on Android")
514+
513515
parser_packaging.add_argument(
514516
'--release', dest='build_mode', action='store_const',
515517
const='release', default='debug',

0 commit comments

Comments
 (0)