Skip to content

Commit c0ea580

Browse files
committed
Set instead of tuple
1 parent 1cca727 commit c0ea580

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setuptools_rust/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ def cpython_feature(ext=True, binding=Binding.PyO3):
4040
elif binding is Binding.PyO3:
4141
if version > (3, 5):
4242
if ext:
43-
return ("pyo3/extension-module")
43+
return {"pyo3/extension-module"}
4444
else:
45-
return ()
45+
return {}
4646
else:
4747
raise DistutilsPlatformError("Unsupported python version: %s" % sys.version)
4848
elif binding is Binding.RustCPython:
4949
if (3, 3) < version:
5050
if ext:
51-
return ("cpython/python3-sys", "cpython/extension-module")
51+
return {"cpython/python3-sys", "cpython/extension-module"}
5252
else:
53-
return ("cpython/python3-sys",)
53+
return {"cpython/python3-sys"}
5454
else:
5555
raise DistutilsPlatformError("Unsupported python version: %s" % sys.version)
5656
else:

0 commit comments

Comments
 (0)