Skip to content

Commit

Permalink
Add py_limited_api=True in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickJadoul committed Jan 30, 2021
1 parent 19db6d4 commit d6e85b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_limited_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from . import test_projects, utils

basic_project = test_projects.new_c_project(
setup_py_setup_args_add='py_limited_api=True',
setup_py_extension_args_add='py_limited_api=True',
)


Expand Down
5 changes: 3 additions & 2 deletions test/test_projects/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
{{ setup_py_add }}
setup(
ext_modules=[Extension('spam', sources=['spam.c'])],
ext_modules=[Extension('spam', sources=['spam.c'], {{ setup_py_extension_args_add }})],
{{ setup_py_setup_args_add | indent(4) }}
)
'''
Expand All @@ -80,7 +80,7 @@


def new_c_project(*, spam_c_top_level_add='', spam_c_function_add='', setup_py_add='',
setup_py_setup_args_add='', setup_cfg_add=''):
setup_py_extension_args_add='', setup_py_setup_args_add='', setup_cfg_add=''):
project = TestProject()

project.files.update({
Expand All @@ -93,6 +93,7 @@ def new_c_project(*, spam_c_top_level_add='', spam_c_function_add='', setup_py_a
'spam_c_top_level_add': spam_c_top_level_add,
'spam_c_function_add': spam_c_function_add,
'setup_py_add': setup_py_add,
'setup_py_extension_args_add': setup_py_extension_args_add,
'setup_py_setup_args_add': setup_py_setup_args_add,
'setup_cfg_add': setup_cfg_add,
})
Expand Down

0 comments on commit d6e85b3

Please sign in to comment.