Skip to content

Commit 1474bf6

Browse files
committed
Build: Fix env-var usage for the Limited API option.
1 parent 36023c5 commit 1474bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,15 +355,15 @@ def handle_arg(arg: str):
355355
if value:
356356
return handle_arg(value)
357357

358-
env_var_name = name.lstrip('-').upper().replace("-", "_")
358+
env_var_name = 'LUPA_' + name.lstrip('-').upper().replace("-", "_")
359359
env_var = os.environ.get(env_var_name)
360360
if env_var is None:
361361
return None
362362
return handle_arg(env_var)
363363

364364

365365
c_defines = [
366-
('CYTHON_CLINE_IN_TRACEBACK', 0),
366+
('CYTHON_CLINE_IN_TRACEBACK', '0'),
367367
]
368368
if has_option('--without-assert'):
369369
c_defines.append(('CYTHON_WITHOUT_ASSERTIONS', None))

0 commit comments

Comments
 (0)