From 245f05d5f4b94ac2b3cabd8e30ca292cb1415fd5 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Fri, 28 Oct 2016 00:07:26 -0700 Subject: [PATCH] docs: allow python setup.py install --force to bypass checks ReadTheDocs needs this. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0467370e..191ff482 100644 --- a/setup.py +++ b/setup.py @@ -148,9 +148,10 @@ def check_external_program( command = next((arg for arg in sys.argv[1:] if not arg.startswith('-')), '') +forced = ('--force' in sys.argv) -if command.startswith('install') or \ +if not forced and command.startswith('install') or \ command in ['check', 'test', 'nosetests', 'easy_install']: check_external_program( program='tesseract', @@ -174,6 +175,8 @@ if command.startswith('install') or \ package='qpdf', version_check_args=['--version'] ) +else: + print('Skipping external program tests because of --force') if 'upload' in sys.argv[1:]: