Skip to content

Commit b91917c

Browse files
committed
respect ignore_setup_py in build.py
1 parent 70f9224 commit b91917c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • pythonforandroid/bootstraps/common/build

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,12 @@ def make_package(args):
323323
f.write("P4A_MINSDK=" + str(args.min_sdk_version) + "\n")
324324

325325
# Package up the private data (public not supported).
326-
use_setup_py = get_dist_info_for("use_setup_py",
327-
error_if_missing=False) is True
326+
use_setup_py = (
327+
get_dist_info_for("use_setup_py", error_if_missing=False) is True
328+
and
329+
get_dist_info_for("ignore_setup_py", error_if_missing=False) is not True
330+
)
331+
328332
private_tar_dirs = [env_vars_tarpath]
329333
_temp_dirs_to_clean = []
330334
try:

0 commit comments

Comments
 (0)