Print warning messages for any deprecated arguments that were passed.
(self, args)
| 728 | warning("Invoking this program via scripts which use CRLF instead of LF line endings will have undefined behaviour.") |
| 729 | |
| 730 | def warn_on_deprecated_args(self, args): |
| 731 | """ |
| 732 | Print warning messages for any deprecated arguments that were passed. |
| 733 | """ |
| 734 | |
| 735 | # Output warning if setup.py is present and neither --ignore-setup-py |
| 736 | # nor --use-setup-py was specified. |
| 737 | if project_has_setup_py(getattr(args, "private", None)): |
| 738 | if not getattr(args, "use_setup_py", False) and \ |
| 739 | not getattr(args, "ignore_setup_py", False): |
| 740 | warning(" **** FUTURE BEHAVIOR CHANGE WARNING ****") |
| 741 | warning("Your project appears to contain a setup.py file.") |
| 742 | warning("Currently, these are ignored by default.") |
| 743 | warning("This will CHANGE in an upcoming version!") |
| 744 | warning("") |
| 745 | warning("To ensure your setup.py is ignored, please specify:") |
| 746 | warning(" --ignore-setup-py") |
| 747 | warning("") |
| 748 | warning("To enable what will some day be the default, specify:") |
| 749 | warning(" --use-setup-py") |
| 750 | |
| 751 | # NDK version is now determined automatically |
| 752 | if args.ndk_version is not None: |
| 753 | warning('--ndk-version is deprecated and no longer necessary, ' |
| 754 | 'the value you passed is ignored') |
| 755 | if 'ANDROIDNDKVER' in environ: |
| 756 | warning('$ANDROIDNDKVER is deprecated and no longer necessary, ' |
| 757 | 'the value you set is ignored') |
| 758 | |
| 759 | def hook(self, name): |
| 760 | if not self.args.hook: |
no test coverage detected