use consistent capitalization

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
nulano 2023-02-13 15:26:00 +00:00
parent eeb7c7c647
commit c5e1b5ad66
No known key found for this signature in database
GPG Key ID: B650CDF63B705766
2 changed files with 9 additions and 8 deletions

View File

@ -57,10 +57,10 @@ Run ``build_prepare.py`` to configure the build::
directory used to store cached dependencies (default:
'winbuild\depends')
--architecture {x86,x64,ARM64}
build architecture (default: same as host python)
--python PYTHON Python install directory (default: use host python)
build architecture (default: same as host Python)
--python PYTHON Python install directory (default: use host Python)
--executable EXECUTABLE
Python executable (default: use host python)
Python executable (default: use host Python)
--nmake build dependencies using NMake instead of Ninja
--no-imagequant skip GPL-licensed optional dependency libimagequant
--no-fribidi, --no-raqm

View File

@ -603,7 +603,8 @@ if __name__ == "__main__":
dest="depends_dir",
metavar="PILLOW_DEPS",
default=os.environ.get("PILLOW_DEPS", os.path.join(winbuild_dir, "depends")),
help="directory used to store cached dependencies (default: 'winbuild\\depends')", # noqa: E501
help="directory used to store cached dependencies "
"(default: 'winbuild\\depends')",
)
parser.add_argument(
"--architecture",
@ -616,21 +617,21 @@ if __name__ == "__main__":
else ("x86" if struct.calcsize("P") == 4 else "x64")
),
),
help="build architecture (default: same as host python)",
help="build architecture (default: same as host Python)",
)
parser.add_argument(
"--python",
dest="python_dir",
metavar="PYTHON",
default=os.environ.get("PYTHON"),
help="Python install directory (default: use host python)",
help="Python install directory (default: use host Python)",
)
parser.add_argument(
"--executable",
dest="python_exe",
metavar="EXECUTABLE",
default=os.environ.get("EXECUTABLE", "python.exe"),
help="Python executable (default: use host python)",
help="Python executable (default: use host Python)",
)
parser.add_argument(
"--nmake",
@ -654,7 +655,7 @@ if __name__ == "__main__":
args = parser.parse_args()
arch_prefs = architectures[args.architecture]
print("Target Architecture:", args.architecture)
print("Target architecture:", args.architecture)
if args.python_dir is None:
args.python_dir = os.path.dirname(os.path.realpath(sys.executable))