blob: f64402b023e34b4251de29da22ebb5cd66fd07c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Autodetect availability of C extension. Taken from upstream PR.
Upstream-PR: https://github.com/Marco-Sulla/python-frozendict/pull/69
diff --git a/setup.py b/setup.py
index 0325383..0667b59 100755
--- a/setup.py
+++ b/setup.py
@@ -163,7 +163,7 @@ if len(argv) > 1 and argv[1] in custom_args:
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"
--
2.39.1
|