Skip to content

Commit e86f346

Browse files
authored
Merge pull request kivy#1689 from JonasT/rename_blacklist_opt
Rename misguided shadowing --blacklist to --blacklist-requirements
2 parents 5aa322d + 50b7dc0 commit e86f346

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/source/buildoptions.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,18 +245,18 @@ options (this list may not be exhaustive):
245245
- ``--resource``: A key=value pair to add in the string.xml resource file.
246246

247247

248-
Blacklist (APK size optimization)
249-
---------------------------------
248+
Requirements blacklist (APK size optimization)
249+
----------------------------------------------
250250

251251
To optimize the size of the `.apk` file that p4a builds for you,
252252
you can **blacklist** certain core components. Per default, p4a
253253
will add python *with batteries included* as would be expected on
254254
desktop, including openssl, sqlite3 and other components you may
255255
not use.
256256

257-
To blacklist an item, specify the ``--blacklist`` option::
257+
To blacklist an item, specify the ``--blacklist-requirements`` option::
258258

259-
p4a apk ... --blacklist=sqlite3
259+
p4a apk ... --blacklist-requirements=sqlite3
260260

261261
At the moment, the following core components can be blacklisted
262262
(if you don't want to use them) to decrease APK size:

pythonforandroid/toolchain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def build_dist_from_args(ctx, dist, args):
171171
"""Parses out any bootstrap related arguments, and uses them to build
172172
a dist."""
173173
bs = Bootstrap.get_bootstrap(args.bootstrap, ctx)
174-
blacklist = getattr(args, "blacklist", "").split(",")
174+
blacklist = getattr(args, "blacklist_requirements", "").split(",")
175175
if len(blacklist) == 1 and blacklist[0] == "":
176176
blacklist = []
177177
build_order, python_modules, bs = (
@@ -310,10 +310,10 @@ def __init__(self):
310310
default='')
311311

312312
generic_parser.add_argument(
313-
'--blacklist',
313+
'--blacklist-requirements',
314314
help=('Blacklist an internal recipe from use. Allows '
315315
'disabling Python 3 core modules to save size'),
316-
dest="blacklist",
316+
dest="blacklist_requirements",
317317
default='')
318318

319319
generic_parser.add_argument(

0 commit comments

Comments
 (0)