We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ec935a commit f95a3cbCopy full SHA for f95a3cb
setuptools/tests/test_build_ext.py
@@ -178,6 +178,17 @@ def C(file):
178
assert example_stub.startswith(f"{build_lib}/mypkg/__pycache__/ext1")
179
assert example_stub.endswith(".pyc")
180
181
+ def test_finalize_options_multiple_call(self):
182
+ """
183
+ Regression test. Check that calling build_ext.finalize_options
184
+ more than once doesn't raise an exception.
185
186
+ extension = Extension('spam.eggs', ['eggs.c'], py_limited_api=True)
187
+ dist = Distribution(dict(ext_modules=[extension]))
188
+ cmd = build_ext(dist)
189
+ cmd.finalize_options()
190
191
+
192
193
class TestBuildExtInplace:
194
def get_build_ext_cmd(self, optional: bool, **opts) -> build_ext:
0 commit comments