Skip to content

Commit

Permalink
setup.py: fix incorrect assert of PYMUPDF_SETUP_PY_LIMITED_API.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Oct 20, 2024
1 parent 42ec551 commit c52f130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ def log( text):
g_pymupdfb_sdist_marker = 'pymupdfb_sdist'

PYMUPDF_SETUP_PY_LIMITED_API = os.environ.get('PYMUPDF_SETUP_PY_LIMITED_API')
assert PYMUPDF_SETUP_PY_LIMITED_API in (None, '0', '1'), \
f'Should be "0", "1" or undefined: {PYMUPDF_SETUP_PY_LIMITED_API=}.'
assert PYMUPDF_SETUP_PY_LIMITED_API in (None, '', '0', '1'), \
f'Should be "", "0", "1" or undefined: {PYMUPDF_SETUP_PY_LIMITED_API=}.'
g_py_limited_api = (PYMUPDF_SETUP_PY_LIMITED_API != '0')

PYMUPDF_SETUP_URL_WHEEL = os.environ.get('PYMUPDF_SETUP_URL_WHEEL')
Expand Down

0 comments on commit c52f130

Please sign in to comment.