We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67827a8 commit ee7a632Copy full SHA for ee7a632
setup.py
@@ -27,6 +27,29 @@
27
define_macros = []
28
libraries = []
29
30
+##
31
+## Workaround for https://github.com/pypa/cibuildwheel/issues/1487
32
33
+
34
+patch = False
35
+try:
36
+ import distutils.dist
37
+ if hasattr(distutils.dist.Distribution, "find_config_files"):
38
+ patch = True
39
+except Exception:
40
+ pass
41
42
+if patch:
43
44
+ def monkey_patched_find_config_files(self):
45
+ res = orig_find_local_files(self)
46
+ if os.path.isfile("setup.apsw"):
47
+ res.append("setup.apsw")
48
+ return res
49
50
+ orig_find_local_files = distutils.dist.Distribution.find_config_files
51
+ distutils.dist.Distribution.find_config_files = monkey_patched_find_config_files
52
53
##
54
## End of customizations
55
0 commit comments