Skip to content

Commit

Permalink
Autodetect availability of c extension
Browse files Browse the repository at this point in the history
This improves default behavior of setup.py in sense that py version of
frozendict is used for python versions which do not have C extension
available yet. This would probably reduce amount of issues similar to
[1-4] in future.

[1] Marco-Sulla#68
[2] Marco-Sulla#67
[3] Marco-Sulla#65
[4] Marco-Sulla#58
  • Loading branch information
arkamar committed Dec 3, 2022
1 parent cec2f09 commit 3488269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -164,7 +164,7 @@
impl = python_implementation()

if custom_arg == None:
if impl == "PyPy":
if impl == "PyPy" or not src_path.exists():
custom_arg = "py"
else:
custom_arg = "c"
Expand Down

0 comments on commit 3488269

Please sign in to comment.