Skip to content

Commit 3488269

Browse files
committed
Autodetect availability of c extension
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
1 parent cec2f09 commit 3488269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
impl = python_implementation()
165165

166166
if custom_arg == None:
167-
if impl == "PyPy":
167+
if impl == "PyPy" or not src_path.exists():
168168
custom_arg = "py"
169169
else:
170170
custom_arg = "c"

0 commit comments

Comments
 (0)