File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
garlicsim/garlicsim/bootstrap Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 2222
2323
2424frozen = getattr (sys , 'frozen' , None )
25+ is_pypy = ('__pypy__' in sys .builtin_module_names )
2526
2627
2728def __check_prerequisites ():
@@ -69,7 +70,7 @@ def check_distribute():
6970 return []
7071
7172 def check_pywin32 ():
72- if not sys .platform == 'win32' :
73+ if not sys .platform == 'win32' or is_pypy : # todo: should check CPython
7374 return []
7475 try :
7576 import win32api
Original file line number Diff line number Diff line change @@ -30,7 +30,25 @@ proj.directory-list = [{'dirloc': loc('../../..'),
3030 'recursive': True,
3131 'watch_for_changes': True}]
3232proj.file-type = 'shared'
33+ proj.home-dir = loc('../../..')
3334proj.main-file = loc('../../../run_gui.py')
35+ proj.pypath = {None: ('custom',
36+ ':${WING:PROJECT_HOME}/garlicsim:;${WING:PROJECT_HOME}'\
37+ '/garlicsim;:${WING:PROJECT_HOME}/garlicsim_lib:;${WIN'\
38+ 'G:PROJECT_HOME}/garlicsim_lib;:${WING:PROJECT_HOME}/g'\
39+ 'arlicsim_wx:;${WING:PROJECT_HOME}/garlicsim_wx;'),
40+ loc('../../../run_tests.py'): ('custom',
41+ '')}
42+ proj.shared-attribute-names = ['proj.shared-attribute-names',
43+ 'proj.directory-list',
44+ 'proj.file-list',
45+ 'proj.file-type',
46+ 'proj.main-file',
47+ 'testing.test-file-list',
48+ 'testing.auto-test-file-specs',
49+ 'testing.test-framework',
50+ 'proj.home-dir',
51+ 'proj.pypath']
3452testing.auto-test-file-specs = ('test_garlicsim/test*.py',
3553 'test_garlicsim_lib/test*.py',
3654 'test_garlicsim_wx/test*.py')
Original file line number Diff line number Diff line change 55
66'''A little module to start the `garlicsim_wx` GUI without installing it.'''
77
8- import sys
8+ import sys
99import os .path
1010
1111
@@ -40,4 +40,4 @@ def start():
4040
4141
4242if __name__ == '__main__' :
43- start ()
43+ start ()
You can’t perform that action at this time.
0 commit comments