Skip to content

Commit

Permalink
docs: allow python setup.py install --force to bypass checks
Browse files Browse the repository at this point in the history
ReadTheDocs needs this.
  • Loading branch information
James R. Barlow committed Oct 28, 2016
1 parent dda751f commit 245f05d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -174,6 +175,8 @@ def check_external_program(
package='qpdf',
version_check_args=['--version']
)
else:
print('Skipping external program tests because of --force')


if 'upload' in sys.argv[1:]:
Expand Down

0 comments on commit 245f05d

Please sign in to comment.