@@ -64,17 +64,27 @@ def read(*rnames):
6464 EXTENSIONS = []
6565 CMDCLASS = {}
6666else :
67- EXTENSIONS = {
68- "core" : [ "expression" , "numbers" , "rules" , "pattern" ] ,
69- "builtin" : [ "arithmetic" , "numeric" , " patterns" , "graphics" ] ,
67+ EXTENSIONS_DICT = {
68+ "core" : ( "expression" , "numbers" , "rules" , "pattern" ) ,
69+ "builtin" : ( " patterns" ,) ,
7070 }
7171 EXTENSIONS = [
7272 Extension (
7373 "mathics.%s.%s" % (parent , module ), ["mathics/%s/%s.py" % (parent , module )]
7474 )
75- for parent , modules in EXTENSIONS .items ()
75+ for parent , modules in EXTENSIONS_DICT .items ()
7676 for module in modules
7777 ]
78+ # EXTENSIONS_SUBDIR_DICT = {
79+ # "builtin": [("numbers", "arithmetic"), ("numbers", "numeric"), ("drawing", "graphics")],
80+ # }
81+ # EXTENSIONS.append(
82+ # Extension(
83+ # "mathics.%s.%s.%s" % (parent, module[0], module[1]), ["mathics/%s/%s/%s.py" % (parent, module[0], module[1])]
84+ # )
85+ # for parent, modules in EXTENSIONS_SUBDIR_DICT.items()
86+ # for module in modules
87+ # )
7888 CMDCLASS = {"build_ext" : build_ext }
7989 INSTALL_REQUIRES += ["cython>=0.15.1" ]
8090
0 commit comments