Skip to content

Commit 21fe5e9

Browse files
committed
-
1 parent a0fcf8f commit 21fe5e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

garlicsim/garlicsim/bootstrap/bootstrap.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323

2424
frozen = getattr(sys, 'frozen', None)
25+
is_pypy = ('__pypy__' in sys.builtin_module_names)
2526

2627

2728
def __check_prerequisites():
@@ -68,8 +69,8 @@ def check_distribute():
6869
# Returning empty list because we didn't import `distribute`:
6970
return []
7071

71-
def check_pywin32():
72-
if not sys.platform == 'win32':
72+
def check_pywin32_on_cpython():
73+
if not sys.platform == 'win32' or is_pypy: # todo: should check CPython
7374
return []
7475
try:
7576
import win32api

0 commit comments

Comments
 (0)