docs: allow python setup.py install --force to bypass checks

ReadTheDocs needs this.
This commit is contained in:
James R. Barlow
2016-10-28 00:07:26 -07:00
parent dda751f9e3
commit 245f05d5f4
+4 -1
View File
@@ -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:]: