We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0fcf8f commit 21fe5e9Copy full SHA for 21fe5e9
garlicsim/garlicsim/bootstrap/bootstrap.py
@@ -22,6 +22,7 @@
22
23
24
frozen = getattr(sys, 'frozen', None)
25
+is_pypy = ('__pypy__' in sys.builtin_module_names)
26
27
28
def __check_prerequisites():
@@ -68,8 +69,8 @@ def check_distribute():
68
69
# Returning empty list because we didn't import `distribute`:
70
return []
71
- def check_pywin32():
72
- if not sys.platform == 'win32':
+ def check_pywin32_on_cpython():
73
+ if not sys.platform == 'win32' or is_pypy: # todo: should check CPython
74
75
try:
76
import win32api
0 commit comments